-
Notifications
You must be signed in to change notification settings - Fork 474
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
command 'cmake.build' not found #157
Comments
Did you install the extension |
@jayphelps, as @wtianyi said, does installing the twxs.cmake extension help? I have it listed in |
Yes, installing Feel free to close when you believe you've solved the issue preventing it from being installed automatically. Thanks for your help! |
I do have the same problem as @jayphelps but I already had Cmake (from twxs) installed |
I needed to uninstall both CMake, and CMake Tools extensions. After re-installing them, everything worked again. |
@kriegalex, are you still seeing this problem? Did this first start after the 0.9.5 update? |
@vector-of-bool I just started getting this issue today also. |
The same error appears in issue #163, but it may be a different issue. Check over there if the listed solution above doesn't work for you. |
I just tried to uninstall, restart and reinstall, still having this problem. I don't know when it started because I have this problem since day one, but I only tried VS Code + CMake recently. I am working with Visual Studio 2015 and CMake 3.8 aside, that's why I didn't really go further. This is the output of the Developer Tools :
The second error can be removed by disabling CMake server (cmake.useCMakeServer=false). |
@vector-of-bool I set |
I had the same problem. few days ago, I installed this extension on my PC and everything worked well. but yesterday, I installed it to my Laptop(Windows), the problem occured. and I tried everything like uninstall them and reinstall them one by one. but it's not working. if i turn cmake.useCMakeServer to false. it'll working, but it build project to "vscproject" instead of "MinGW Makefiles". |
OK guys, problem solved!
|
I just checked: since vector-of-bool.cmake-tools depends on twxs.cmake extension, VS code automatically install the latter and doesn't allow to disable or uninstall it separately. |
So, I've just pushed 0.9.7:
As such, I'm going to close this issue and ask that anyone with any further issues open a new ticket using the new error messages that appear during a failed initialization. Thanks for the help, everyone! |
With a fresh install of vscode + cmaketools, if I try to run any of the commands I just get an error that the command is not found. e.g.
command 'cmake.build' not found
. None of the options show up in the toolbar, as well. Tried in 6 different cmake based projects I have on my box, same results.Someone else posted the same issue on SO: https://stackoverflow.com/questions/44122346/vs-code-cmake-cmake-build-not-found but since it hasn't (yet) received a response I figured I'd cross post it here for more eyes. If you know the answer, you could add it to the SO question and then we can copy/link the answer here. 🎈
It's
possibleprobable that we're just missing something obvious. If that's the case, happy to update the README so others don't make it too.EDIT:
Solution
there's a bug preventing a dependency from being installed. You need to install this additional extension https://marketplace.visualstudio.com/items?itemName=twxs.cmake
The text was updated successfully, but these errors were encountered: