vs.language.cmake icon indicating copy to clipboard operation
vs.language.cmake copied to clipboard

The include property in CMakePresets.json does not work for me.

Open kurtisalexander opened this issue 3 years ago • 1 comments

Issue Type: Bug

When using the include property in CMakePresets.json with vscode, the included presets file is ignored and vscode shows an error. For this CMakePresets.json: { "version": 4, "cmakeMinimumRequired": { "major": 3, "minor": 23, "patch": 0 }, "include": [ "/cyflex/system/CMakePresetsCommon.json" ]

}

I get this error: [presetController] Invalid kit contents CMakePresets.json (/home/my_username/cyflex_src/CMakePresets.json): [presetController] >> : should NOT have additional properties: include

Extension version: 0.0.17 VS Code version: Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:49:24.808Z) OS version: Linux x64 5.4.17-2136.306.1.3.el8uek.x86_64 Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 3900)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 0, 0, 1
Memory (System) 30.86GB (7.81GB free)
Process Argv --unity-launch --crash-reporter-id 3faab0d2-f637-43d9-8f39-d42afe0d7699
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebugcf:30475217

kurtisalexander avatar Apr 29 '22 12:04 kurtisalexander

@kurtisalexander

I think that this is an issue with a different extension.

https://github.com/microsoft/vscode-cmake-tools

I am currently working with the latest pre release version and include works for me.

eladmaimoni avatar Feb 09 '23 16:02 eladmaimoni