Closed mthierman closed 2 weeks ago
@mthierman I am working on a fix. However, our cmake.allowUnsupportedPresetsVersions
setting is designed for schema versions that we don't yet support. Therefore, if you want to workaround this for now, while still adding the schema, you could set your schema version to 9 or above, which we don't support / have yet. This will all the cmake.allowUnsupportedPresetsVersions
to take effect.
However, I am creating a PR now for the schema issue.
Brief Issue Summary
Before version 8 presets were supported, the extension was probably ignoring the
$schema
property. Now when I set"$schema": "https://raw.githubusercontent.com/Kitware/CMake/master/Help/manual/presets/schema.json",
the extension prints an error message and nothing populates in the presets dropdown.Per the CMake documentation (https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html#format):
"$schema An optional string that provides a URI to the JSON schema that describes the structure of this JSON document. This field is used for validation and autocompletion in editors that support JSON schema. It doesn't affect the behavior of the document itself. If this field is not specified, the JSON document will still be valid, but tools that use JSON schema for validation and autocompletion may not function correctly. This is allowed in preset files specifying version 8 or above."
cmake.allowUnsupportedPresetsVersions
no longer works, I have to delete the schema line from my preset JSON.CMake Tools Diagnostics
Debug Log
Additional Information
No response