vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

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

Open kuch3n opened this issue 2 years ago • 4 comments

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

grafik grafik grafik

kuch3n avatar Jul 03 '23 06:07 kuch3n

@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!

gcampbell-msft avatar Jul 06 '23 16:07 gcampbell-msft

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

kuch3n avatar Jul 11 '23 06:07 kuch3n

I encountered the same issue, maybe this mwe could help:

mwe.zip

kwintAl avatar Apr 10 '25 09:04 kwintAl

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:

Image

@gcampbell-msft FYI.

Amy-Li03 avatar Apr 14 '25 06:04 Amy-Li03