Closed dornbirndevelops closed 2 months ago
@dornbirndevelops Thanks for the issue! We will have this fixed shortly, as we are in the process of releasing our 1.19 official version in the coming week or so. It will get fixed hopefully in the next couple days in pre-release, and then the official release behind it, if everything goes to plan 👍
Thanks for helping us by using pre-release!
We verified this issue on CMake Tools: v1.19.47 (pre-release) and it has been fixed:
Thank you very much @gcampbell-msft ! I verified the current state of main, including the changes from https://github.com/microsoft/vscode-cmake-tools/pull/4008. They also fixed my original problems in https://github.com/microsoft/vscode-cmake-tools/issues/3974. Looking forward to the next extension release 🎉
FTR: cmake.configureOnEdit
does not have to be set to true
.
Brief Issue Summary
A completely valid CMakeUserPresets.json cannot be parsed with the currently latest pre-release.
Consider the following CMake presets configuration for the steps below:
Create a
CMakePresets.json
file with the content from before. Run theCMake: Select Configure Preset
command. Observation: Configure Preset from file is shown as expectedNow, rename the
CMakePresets.json
file to aCMakeUserPresets.json
file. Run theCMake: Select Configure Preset
command. Observation: Configure Preset from file is not shown anymore. Additionally, the editor highlights an error in line 1 "Could not find configure preset 'default' in preset 'default'".CMake Tools Diagnostics
Debug Log
Additional Information
BEFORE: content of
CMakeUserPresets.json
gets recognized and parsed inv1.18.44
when reloading the window.AFTER: content of
CMakeUserPresets.json
is not recognized and therefore not parsed inv1.19.46
when reloading the window.