Linux: Add support for snaps of CMake
See original GitHub issueI have just installed Ubuntu 19.10 and used the Software installer application to install Visual Studio Code and CMake 3.15. I cloned my repository from GitHub and whenever I try to call CMake configure in Visual Studio code I get an error message: Bad CMake executable /snap/bin/cmake
. CMake seems to run fine in a terminal.
VS Code/CMake extension used to run just fine out-of-the-box in previous version of Ubuntu.
When I try to enter the path manually I get error messages like these:
[rollbar] Unhandled exception: Unhandled Promise rejection: configure TypeError: Cannot read property ‘on’ of undefined {} [rollbar] Unhandled exception: Error during CMake upgrade TypeError: Cannot read property ‘on’ of undefined {“version”:“3.13.2”,“linuxURL”:“https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.sh",“windowsURL”:"https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-win64-x64.msi”}
Actually /snap/bin/cmake
is not an executable but a link if I recall correctly.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:17
- Comments:20 (11 by maintainers)
Top GitHub Comments
It works when you use
/snap/cmake/current/bin/cmake
asCMake Path
. All snap executables seem to be just symbolic links to/usr/bin/snap
, and that seems to work fine when called from a terminal but apparently not from the CMake extension in VSCode …There are two entries related to CMake Path. Which one is the correct one:
@hheld Setting
/snap/cmake/current/bin/cmake
did the job!Thank you!
I also have the twxs’s extension (which I hope will be absorbed into CMake Tools) but I don’t think that it is causing that duplication.