Type: LanguageService
Describe the bug
- OS and Version: Windows (any version)
- VS Code Version: any
- C/C++ Extension Version: 0.25.0
- Other extensions you installed (and if the issue persists after disabling them): none
- A clear and concise description of what the bug is.
To Reproduce
Example configuration in c_cpp_properties.json triggering the issue:
{
"env": {
"vc.path": "<path_to_your_msvc_installation>",
...
},
"configurations": [
{
...,
"compilerPath": "${vc.path}\\bin\\HostX64\\x64\\cl.exe",
"intelliSenseMode": "msvc-x64",
...
}
]
}
Problems reported for the above configuration: intelliSenseMode msvc-x64 is incompatible with compilerPath.
Expected behavior
No problems reported, as the expanded compilerPath is a valid compiler for msvc-x64 mode.
Additional context
In function isCompilerIntelliSenseModeCompatible, util.extractCompilerPathAndArgs is called with the unexpanded compiler path, which only expects expanded paths.
|
let compilerPathAndArgs: util.CompilerPathAndArgs = util.extractCompilerPathAndArgs(configuration.compilerPath); |
Type: LanguageService
Describe the bug
To Reproduce
Example configuration in
c_cpp_properties.jsontriggering the issue:Problems reported for the above configuration:
intelliSenseMode msvc-x64 is incompatible with compilerPath.Expected behavior
No problems reported, as the expanded
compilerPathis a valid compiler formsvc-x64mode.Additional context
In function
isCompilerIntelliSenseModeCompatible,util.extractCompilerPathAndArgsis called with the unexpanded compiler path, which only expects expanded paths.vscode-cpptools/Extension/src/LanguageServer/configurations.ts
Line 406 in 3251ee5