-
Notifications
You must be signed in to change notification settings - Fork 461
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
CMake Tools 1.13.40 fails to pick up CMakeUserPresets.json (only on first start after updating?) #2952
Comments
I hit the same issue and after struggling to get things working googled to find out how to install a previous version. |
@dbenson2000 we are investigating this issue, meanwhile, can you try reloading the window or running "CMake: Delete cache and reconfigure" to see if it works or not? |
I experienced more or less the same problems with 1.13.40. I tried running command |
Actually, I think I have a repro. It involves reloading the window when a file which is not in any of the workspace folders is focused. Focusing any file from one of the workspace folders or using the other workarounds from my previous comment does address this problem. |
@bobbrow I'm not 100% sure (since I couldn't reliably reproduce the issue anyway once it worked), but explicitely selecting the subproject might work. I had actually hidden this button in the status bar (because it was getting a bit too busy), otherwise I would probably had figured out that this was the issue hmm... ...maybe that's also a sign that CMake Tools shouldn't clutter the status bar like that ;) For instance maybe it makes sense to unify the build and debug target? It's kinda awkward that those are selected separately. Different topic though ;) |
Can confirm selecting my presets is gone since the last update... |
We are working on #1582 for 1.14 which will remove the buttons from the status bar |
Brief Issue Summary
After updating to 1.13.40, CMake Tools fails to pick up my CMakeUserPresets.json file,
CMake: Build
does nothing no build or debug target is selected, and selecting one is not possible, in short: nothing works :)This happened to me both on macOS and Windows (so now the second time on Windows I'm writing this ticket).
...ok, weird: after setting the logging output to debug as requested below, and restarting, it suddenly worked.
AHA: starting another time it doesn't work again, really weird.
Then starting again, it picks up the configuration and now it seems like it's consistently working. Very confusing.
CMake Tools Diagnostics
Debug Log
After pressing F7 for build:
Additional Information
This is the CMakeUserPresets.json file:
The text was updated successfully, but these errors were encountered: