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

"CMake: Select A Kit" Is missing in visual studio code

Open DanelOfficial opened this issue 1 year ago • 9 comments

Brief Issue Summary

i wanted to type CMake: Select A Kit but its missing

CMake Tools Diagnostics

{
  "os": "win32",
  "vscodeVersion": "1.85.2",
  "cmtVersion": "1.16.32",
  "configurations": [],
  "cpptoolsIntegration": {
    "isReady": false,
    "hasCodeModel": false,
    "activeBuildType": "",
    "buildTypesSeen": [],
    "requests": [],
    "responses": [],
    "partialMatches": [],
    "targetCount": 0,
    "executablesCount": 0,
    "librariesCount": 0,
    "targets": []
  },
  "settings": []
}

Debug Log

No response

Additional Information

bandicam 2024-01-29 19-22-47-503

DanelOfficial avatar Jan 29 '24 16:01 DanelOfficial

@DanelOfficial I don't recognize those two commands "Select CMake Configuration" or "Select CMake Project".

Do you have a CMakeLists.txt in your folder? One thing you could try is to reset the CMake Tools extension CMake: Reset CMake Tools Extension State, though it may reset some of your settings.

Could you share a zip of your project so that I can see what might be going on?

gcampbell-msft avatar Jan 29 '24 16:01 gcampbell-msft

@DanelOfficial I don't recognize those two commands "Select CMake Configuration" or "Select CMake Project".

Do you have a CMakeLists.txt in your folder? One thing you could try is to reset the CMake Tools extension CMake: Reset CMake Tools Extension State, though it may reset some of your settings.

Could you share a zip of your project so that I can see what might be going on?

i got a lot CMakeLists CMakeLists.txt CMakeLists (1).txt CMakeLists (2).txt CMakeLists (3).txt CMakeLists (4).txt CMakeLists (5).txt CMakeLists (6).txt CMakeLists (7).txt CMakeLists (8).txt CMakeLists (9).txt CMakeLists (10).txt CMakeLists (11).txt CMakeLists (12).txt

i can't send a zip file of my project its too big

DanelOfficial avatar Jan 29 '24 17:01 DanelOfficial

I assume one of those is in your workspace root folder?

Did you attempt to reset the cmake tools extension state?

gcampbell-msft avatar Jan 29 '24 17:01 gcampbell-msft

I assume one of those is in your workspace root folder?

Did you attempt to reset the cmake tools extension state?

Yeah i tried to reset the cmake tools extension state

DanelOfficial avatar Jan 29 '24 17:01 DanelOfficial

What is the value of cmake.useCMakePresets in your settings? If it's set to always, that command won't appear. If you aren't using CMakePresets.json, then you could possibly set this to never and you should see this command appear.

gcampbell-msft avatar Jan 29 '24 17:01 gcampbell-msft

What is the value of cmake.useCMakePresets in your settings? If it's set to always, that command won't appear. If you aren't using CMakePresets.json, then you could possibly set this to never and you should see this command appear.

Its never

DanelOfficial avatar Jan 30 '24 06:01 DanelOfficial

@DanelOfficial Interesting, this is definitely an odd bug.

If you could create a minimal repro that we could investigate with, as well as attempt the repro with the cmake.loggingLevel set to debug, and then send us the log, that would be most helpful.

gcampbell-msft avatar Jan 30 '24 14:01 gcampbell-msft

is there any more documentation on this so called bug? i found this post and only this post and that's it, virtually zero other mention

septanesium avatar Apr 10 '24 20:04 septanesium

@Septanesium Are you using CMake Kits or CMake Presets?

gcampbell-msft avatar Apr 11 '24 19:04 gcampbell-msft

@septanesium Does this issue still work in the most recent CMake Tools extension version?

gcampbell-msft avatar Jun 24 '24 15:06 gcampbell-msft

@septanesium Please let us know if these issues still repro, for now, I'm going to close this issue because those commands no longer exist in the product.

gcampbell-msft avatar Jun 24 '24 15:06 gcampbell-msft