-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
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
CMakePresets.json schema is too restrictive #1963
Comments
It looks like we are going to need to make the schema check optional when the presets file version is higher than what we support. Thanks for reporting this! |
Hi @bobbrow, why validate it at all? Just run |
Kitware's recommendation to IDEs is to get the information out of the presets file and invoke the CLI with those parameters instead of using |
Tagging: @esweet431 |
I have also seen this recommendation but cannot find it anymore. Maybe they removed it? Can you link it? |
The recommendation is part of the IDE integration guide: https://cmake.org/cmake/help/latest/guide/ide-integration/index.html#presets |
Brief Issue Summary
I cannot add the new CMake 3.21 feature "conditions" to the CMakePresets.json without breaking cmake-tools. Or any other feature that might come.
The plugin validates the CMakePresets.json and does not load it.
The same issue was seen here #1934, but this Issue is for a more general issue.
Apparent Behaviour
Tooltip:

And no preset found:

Code:
Expected:
It should leave the validation to cmake.exe. e.g. you could run cmake --list-presets and then offer those shown (this will also implicitly enable the condition feature).
CMake Tools Log
Platform and Versions
The text was updated successfully, but these errors were encountered: