-
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
Unable to use the extension when cmake.sourceDirectory
is a subdirectory
#3121
Comments
I am having the same issue |
cmake.sourceDirectory
is a subdirectory
I also have the same issue. |
Same issue here.... |
+1. Tried cleaning every vscode cache I could find on osx. Happens on linux containers too. Also confirmed that version 1.13.45 does not have the issue. 1.14 is a poison pill. |
I have a PR out to fix this. Until we release an update, you have a few options:
|
I've been working with @benmcmorran to prep a patch release which should go out pretty soon. You can take one of the steps above or wait a little bit for the official patch. |
The fix for this issue is included in version |
Confirmed this is a fix! Thanks for the fast turn-around on this. |
It seems fixed for me too, thank you for the quick reaction! |
Brief Issue Summary
Starting version 1.14.29, the extension fails to work when the source directory is not the root of the workspace.
Whether the project is already configured or not, the
CMake/Build
tab inOUTPUT
reads:For reference, the workspace path is
/users/ganyu/git/dsda-doom
, and the top-level CMakeLists.txt is located in the subdirectoryprboom2
, and set through this workspace setting:When this error happens, the CPU usage skyrockets, and no command from the status bar or the command palette have any effect.
It should be noted that this issue does not happen when then CMakeLists.txt is at the root of the directory.
CMake Tools Diagnostics
Debug Log
Additional Information
Here is a sample project to reproduce the issue:
Content of
toplevel/.vscode/settings.json
:Content of
toplevel/subdir/CMakeLists.txt
:The text was updated successfully, but these errors were encountered: