Skip to content

cannot parse cmake.generator correctly #4020

Description

@nicolgo

Brief Issue Summary

my previous setting of cmake.generator is "Visual Studio 15 2017 Win64", it work well before, but when I update the extension to v1.19.49 today, it cannot parse the string correctly,

[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -SC:/Users/dell/Documents/repos/fpcserver -Bc:/Users/dell/Documents/repos/fpcserver/build-RelWithDebInfo -G "Visual Studio 15 2017" -A " Win64"

but I change the setting to "cmake.generator": "Visual Studio 15 2017Win64", it can parse correctly.

CMake Tools Diagnostics

{
  "os": "win32",
  "vscodeVersion": "1.85.1",
  "cmtVersion": "1.19.49",
  "configurations": [
    {
      "folder": "c:\\Users\\dell\\Documents\\repos\\fpcserver",
      "cmakeVersion": "3.26.4",
      "configured": false,
      "generator": "Visual Studio 15 2017",
      "usesPresets": false,
      "compilers": {}
    }
  ],
  "cpptoolsIntegration": {
    "isReady": false,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "automatic",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -SC:/Users/dell/Documents/repos/fpcserver -Bc:/Users/dell/Documents/repos/fpcserver/build-RelWithDebInfo -G "Visual Studio 15 2017" -A " Win64" exited with code: 1

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in the productmore info neededMore info is needed from the community for us to properly triage and investigate.regressionused to work and no longer does. Regressions are typically high prioritytriage

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions