vscode-cmake-tools
vscode-cmake-tools copied to clipboard
Schema validation for cmake-variants.yaml doesn't work
Brief Issue Summary
https://vector-of-bool.github.io/docs/vscode-cmake-tools/variants.html says:
Note: CMake Tools provides a YAML validation schema, which is only checked in the editor when using the YAML Support by Red Hat extension.
I installed YAML Language Support but get the error:
Cannot Load content for: cmake-tools-schema:///schemas/variants-schema.json. Unknown schema: 'cmake-tools-schema'
Expected:
- Create file
cmake-variants.yaml
in project root directory - open file
- get schema based auto completion
Apparent Behavior:
- Create file
cmake-variants.yaml
in project root directory - open file
- click on
variants-schema.json
shown directly above line 1 - get error listed above.
CMake Tools Log
[variant] Loaded new set of variants
[kit] Successfully loaded 8 kits from /home/user/.local/share/CMakeTools/cmake-tools-kits.json
Other Logs
The output window for "YAML Support" is completely empty.
Platform and Versions
- Operating System: Ubuntu 20.04.3 LTS
- CMake Version: 3.16
- VSCode Version: 1.16.1
- CMake Tools Extension Version: 1.8.1
- Compiler/Toolchain: GCC 9.3
- Red Hat YAML Language Support: 0.22.0
Other Notes/Information
~/.vscode/extensions/ms-vscode.cmake-tools-1.8.1/dist/schema
contains schemas in several languages
A created cmake-variants.json
file gets successfully validated against the schema.
@TSlivede, thank you for opening this report. We reproduce the problem. We will investigate and fix this.