microsoft / microsoft/vscode-cmake-tools
Custom compiler (chc12.exe) : Annoying error messages due to wrong command line options
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
### 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
```shell
{
"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



Contributor guide
Research direction
Start with the CMake Tools configure-on-open flow and custom compiler command handling, using the supplied win32 diagnostics and chc12.exe configuration to reproduce the repeated failures. Done means invalid command-line options do not trigger an endless error loop, and the relevant configuration path or setting is discoverable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake, typescript
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100