Skip to content
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

Incorrect "cmake.additionalKits" setting breaks CMake extension: "command 'cmake.*' not found" #2382

Closed
rustyx opened this issue Feb 15, 2022 · 1 comment · Fixed by #2384
Labels
bug a bug in the product Feature: kits

Comments

@rustyx
Copy link

rustyx commented Feb 15, 2022

Brief Issue Summary

After adding any folder1 to "cmake.additionalKits" (e.g. "cmake.additionalKits": [ "C:\\TEMP" ]) and restarting VSCode:

command 'cmake.build' not found
command 'cmake.selectConfigurePreset' not found
command 'cmake.selectActiveFolder' not found
Or in other words:
command 'cmake.*' not found

CMake Tools Diagnostics

command 'cmake.logDiagnostics' not found 🙂

Debug Log

[main] Safe constructing new CMakeTools instance
[variant] Constructing VariantManager
[main] Constructing new CMakeTools instance
[main] Starting CMakeTools second-phase init
[variant] Loaded new set of variants
[main] CMakeTools instance initialization complete.
[kit] Reading kits file C:\Users\me\AppData\Local\CMakeTools\cmake-tools-kits.json
[kit] Successfully loaded 16 kits from C:\Users\me\AppData\Local\CMakeTools\cmake-tools-kits.json
[kit] Not reading non-existent kits file: c:\Projects\proj1\ctest\.vscode\cmake-kits.json
[kit] Reading kits file C:\TEMP

Ext host log:

[exthost] [error] Activating extension ms-vscode.cmake-tools failed due to an error:
[exthost] [error] Error: EISDIR: illegal operation on a directory, read

1 I know it's wrong to specify a folder in cmake.additionalKits, the point of this bug report is that it would be nice if this was reported accordingly instead of silently crashing.

@bobbrow
Copy link
Member

bobbrow commented Feb 15, 2022

Thanks for the bug report. I'm testing a fix for this.

@bobbrow bobbrow added bug a bug in the product Feature: kits labels Feb 15, 2022
@bobbrow bobbrow linked a pull request Feb 15, 2022 that will close this issue
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug a bug in the product Feature: kits
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants