We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If CMakeUserPresets.json is present (and even if empty), build presets are duplicated. If CMakeUserPresets is deleted, the problem goes away.
{ "os": "win32", "vscodeVersion": "1.93.1", "cmtVersion": "1.19.52", "configurations": [ { "folder": "d:\\Repos\\Glow", "cmakeVersion": "3.30.4", "configured": false, "generator": "Visual Studio 17 2022", "usesPresets": true, "compilers": {} } ], "cpptoolsIntegration": { "isReady": false, "hasCodeModel": false, "activeBuildType": "", "buildTypesSeen": [], "requests": [], "responses": [], "partialMatches": [], "targetCount": 0, "executablesCount": 0, "librariesCount": 0, "targets": [] }, "settings": [ { "communicationMode": "automatic", "useCMakePresets": "auto", "configureOnOpen": false } ] }
No response
Basic example preset files to reproduce issue:
CMakePresets.json:
{ "$schema": "https://raw.githubusercontent.com/Kitware/CMake/master/Help/manual/presets/schema.json", "version": 9, "cmakeMinimumRequired": { "major": 3, "minor": 30, "patch": 0 }, "configurePresets": [ { "name": "MSBuild", "generator": "Visual Studio 17 2022", "architecture": { "strategy": "set", "value": "x64" }, "toolset": { "strategy": "set", "value": "host=x64" }, "binaryDir": "${sourceDir}/build/Visual Studio 17 2022/MSVC" } ], "buildPresets": [ { "name": "Debug", "configuration": "Debug", "configurePreset": "MSBuild" }, { "name": "Release", "configuration": "Release", "configurePreset": "MSBuild" } ] }
CMakeUserPresets.json
{ "$schema": "https://raw.githubusercontent.com/Kitware/CMake/master/Help/manual/presets/schema.json", "version": 9, "cmakeMinimumRequired": { "major": 3, "minor": 30, "patch": 0 } }
This will cause Debug and Release build presets to show up twice in the dropdown selection list.
The text was updated successfully, but these errors were encountered:
gcampbell-msft
Successfully merging a pull request may close this issue.
Brief Issue Summary
If CMakeUserPresets.json is present (and even if empty), build presets are duplicated. If CMakeUserPresets is deleted, the problem goes away.
CMake Tools Diagnostics
Debug Log
No response
Additional Information
Basic example preset files to reproduce issue:
CMakePresets.json:
CMakeUserPresets.json
This will cause Debug and Release build presets to show up twice in the dropdown selection list.
The text was updated successfully, but these errors were encountered: