Я подключен к компьютеру с Linux через удаленное соединение — SSH.
- Операционная система и версия: Apple M1 Pro Mac OS Sonoma 14.4.1
- Версия кода VS: 1.88
- Версия расширения C/C++: самая последняя
- ОС удаленной машины (SSH): Fedora Linux 38 (Server Edition)
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/lib64/ccache/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}
Я попробовал множество решений, включая удаление всех других расширений, чтобы изолировать ошибку. Я также удалил каталоги .vscode и .vscode-server, .cache и т. д. При повторном открытии VSCode автоматически создается папка .vscode-server, что и ожидается. При этом функции IntelliSense недоступны.
Вот журнал диагностики:
~~~~~~~~~~~~~~~~~**Log Diagnostics**~~~~~~~~~~~~~~~~~~~~~~~~
-------- Diagnostics - 4/25/2024, 6:12:59 PM
Version: 1.19.9
Current Configuration:
{
"name": "Linux",
"includePath": [
"/home/accts/ckk25/**"
],
"defines": [],
"compilerPath": "/usr/lib64/ccache/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-clang-x64",
"compilerPathIsExplicit": true,
"cStandardIsExplicit": true,
"cppStandardIsExplicit": true,
"intelliSenseModeIsExplicit": true,
"compilerPathInCppPropertiesJson": "/usr/lib64/ccache/clang",
"mergeConfigurations": false,
"browse": {
"path": [
"/home/accts/ckk25/**",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
}
}
cpptools version (native): 1.19.9.0
Translation Unit Mappings:
[ /home/accts/ckk25/cs223Main/hw5/Island.cpp - source TU]:
[ /home/accts/ckk25/cs223Main/hw7/main.cpp - source TU]:
Translation Unit Configurations:
[ /home/accts/ckk25/cs223Main/hw5/Island.cpp ]:
Process ID: 708586
Memory Usage: 79 MB
Compiler Path: /usr/lib64/ccache/clang
Includes:
/usr/include/c++/13
/usr/include/c++/13/x86_64-redhat-linux
/usr/include/c++/13/backward
/usr/lib64/clang/16/include
/usr/local/include
/usr/include
Standard Version: c++17
IntelliSense Mode: linux-clang-x64
Other Flags:
--clang
--clang_version=160006
[ /home/accts/ckk25/cs223Main/hw7/main.cpp ]:
Process ID: 708552
Memory Usage: 104 MB
Compiler Path: /usr/lib64/ccache/clang
Includes:
/usr/include/c++/13
/usr/include/c++/13/x86_64-redhat-linux
/usr/include/c++/13/backward
/usr/lib64/clang/16/include
/usr/local/include
/usr/include
Standard Version: c++17
IntelliSense Mode: linux-clang-x64
Other Flags:
--clang
--clang_version=160006
Total Memory Usage: 183 MB
------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 40666
Подробнее здесь: https://stackoverflow.com/questions/783 ... tellisense