microsoft / microsoft/vscode-cmake-tools

Custom compiler (chc12.exe) : Annoying error messages due to wrong command line options

Open
#3,226 4 comments 0 reactions 0 assignees View on GitHub
bug Feature: build
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

![grafik](https://github.com/microsoft/vscode-cmake-tools/assets/977721/78772bff-3c33-4d5a-8f93-617e22ba1eb5)
![grafik](https://github.com/microsoft/vscode-cmake-tools/assets/977721/5735e245-3842-419d-904f-affb85af87d2)
![grafik](https://github.com/microsoft/vscode-cmake-tools/assets/977721/ef473750-e424-4e17-be9c-c1049c67aacc)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.