vscode-cmake-tools
vscode-cmake-tools copied to clipboard
Custom compiler (chc12.exe) : Annoying error messages due to wrong command line options
Brief Issue Summary
The extension keeps looping over commands which are failing due to wrong command line options. This is uterly annoying, since every 10 seconds an error message apperas.
This extension should stop with such an endless loop of error messages.
Why is it even running a command upon start of vscode/project? I would try to change those command line options, but those error messages and the contiously "ping" drives me to insanity. Also not even a single hint where to find a corresponding setting
CMake Tools Diagnostics
{
"os": "win32",
"vscodeVersion": "1.79.2",
"cmtVersion": "1.14.34",
"configurations": [
{
"folder": "PROJECT_FOLDER",
"cmakeVersion": "3.20.0",
"configured": false,
"generator": "Unix Makefiles",
"usesPresets": false,
"compilers": {
"C": "PATH/chc12.exe"
}
}
],
"cpptoolsIntegration": {
"isReady": false,
"hasCodeModel": false,
"activeBuildType": "",
"buildTypesSeen": [],
"requests": [],
"responses": [],
"partialMatches": [],
"targetCount": 0,
"executablesCount": 0,
"librariesCount": 0,
"targets": []
},
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "auto",
"configureOnOpen": null
}
]
}
Debug Log
No response
Additional Information
@kuch3n Thanks for reporting the issue!
In order for us to investigate this, we will need some information for better reproduction steps. Is there a way that you could give us a sample project to reproduce with? How do you have your custom compiler configured to be used?
Any information you can provide that will allow us to more easily get a repro would help us investigate and solve your issue.
Thanks!
For an example project just create an empy one like described here: https://code.visualstudio.com/docs/cpp/cmake-linux
VSCode asks to configure the project, choose yes and Freescale - Code Warrior 12 as a kit:
{
"name": "Freescale - Code Warrior 12",
"compilers": {
"C": "C:\\cool\\path\\to\\HCS12_CW\\Prog\\chc12.exe"
},
"isTrusted": true
},
sorry for the previos rent
Hi @kwintAl, thanks for your demo project and repro steps, reproduced this issue on environment: VS Code: v1.99.2 C/C++: v1.25.0(pre-release) CMake Tools: v1.21.14(pre-release)
Details please see following video:
@gcampbell-msft FYI.