-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add support for querying kcc compiler #13470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @Mathias-Buder-Bose . Thanks for your feature request. Currently, the compiler detection/querying logic in the C/C++ Extension supports only MSVC, GCC, Clang and compilers derived from GCC or Clang (which still support the same arguments). For now, I'd suggest not using |
linking to #6931 |
Hi @Colengms, Thank you for your quick reply. I’m using a build system that combines Conan, CMake, and Artifactory. In this setup, the
|
Hi @Mathias-Buder-Bose . It's possible to override the compiler used by You could potentially implement a script that outputs your compiler's predefines and system include paths (in a format matching what is returned by a GCC/Clang compiler query) and use that as your |
Hi @Colengms, thanks a lot for that. I'll give it a try! |
@Colengms, I wrote a script that parses my I'm looking forward to the implementation of this feature request. |
Environment
1.99.0
(user setup)4437686ffebaf200fa4a6e6e67f735f3edf24ada
2025-04-02T21:35:19.530Z
34.3.2
11161073
132.0.6834.210
20.18.3
13.2.152.41-electron.0
10.0.19045
3.30.0
ms-vscode.cpptools
1.24.5
Bug Summary and Steps to Reproduce
Summary
VS Code fails to correctly query the kcc compiler when using a compile_commands.json generated by
CMake
. It attempts to call the compiler with -x c++ which is not recognized by kcc, leading to fallback behavior and broken IntelliSense. In addition, the initialization at startup takes forever.Steps to Reproduce
kcc
).CMAKE_EXPORT_COMPILE_COMMANDS
in WindowsExpected Behavior
VS Code should use the flags and definitions from compile_commands.json and correctly provide IntelliSense without trying to query the compiler directly.
Actual Behavior
VS Code attempts to invoke the compiler with:
But kcc doesn't support the -x option and fails with:
Then VS Code falls back to default or broken IntelliSense behavior.
Possible Fixes / Suggestions
Configuration and Logs
c_cpp_properties.json
C/C++: Log Diagnostics
KCC help command
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: