-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Environment
- OS and Version: Windows_NT x64 10.0.22621
- VS Code Version: 1.84.2 (system setup)
- C/C++ Extension Version: v1.18.5
- If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce
Bug Summary:
Using a C/C++ configuration in .vscode\c_cpp_properties.json that is configured for "compileCommands" with compile_commands.json:
...
"configurations": [
{
"name": "compile_commands Target",
"includePath": [
"${workspaceFolder}/**"
],
"windowsSdkVersion": "10.0.19041.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64",
"compileCommands": "${workspaceFolder}/.vscode/compile_commands.json"
}
],
"version": 4
"compile_commands.json" is about 31Mbytes. It is from a cross-compilation. The Output C/C++ Configuration Warnings shows lots of:
[11/20/2023, 5:39:47 PM] Unable to resolve configuration with compilerPath "C:///bin/x86_64-linux-gnu-gcc.exe". Using "cl.exe" instead.
"compile_commands.json" contains:
[
{
"arguments": [
"C:///bin/x86_64-linux-gnu-gcc.exe",
"-D",
... lots more lines of defines ...
"-I..//include",
... lots more lines of include paths ...
various other compiler options,
],
"directory": "C:\directory\directory\directory",
"file": "../directory/directory/directory/directory/file.c",
"output": "C:\directory\directory\directory\\file.o"
},
Expected behavior:
Not expecting to see the warning and expecting the Intellisense to use the cross compiler.
Configuration and Logs
Using a C/C++ configuration in .vscode\c_cpp_properties.json that is configured for "compileCommands" with compile_commands.json:
...
"configurations": [
{
"name": "compile_commands Target",
"includePath": [
"${workspaceFolder}/**"
],
"windowsSdkVersion": "10.0.19041.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64",
"compileCommands": "${workspaceFolder}/.vscode/compile_commands.json"
}
],
"version": 4
Other Extensions
No response
Additional context
No response