Open GDYendell opened 4 years ago
I am using the Remote Developement extension to work from home. I thought I would remote into my work machine properly and run VSCode there to see if I could reproduce the problem. It did not work and since doing this I can no longer get the build working at all. If i comment out the cmakePath again it makes no difference; I always get the following:
[main] Building folder: odin-data
[rollbar] Unhandled exception: Unhandled Promise rejection: configure Error: connect ENOENT /tmp/cmake-server-0.5592704707103693 {}
If I do Ctrl-Shift-P Cmake: Configure. The Post-folder-open appears to happen if I click the prompt to configure after reloading the window.
This sounds a lot like #1137. Are you able to use a newer version of cmake? There seems to be an issue with cmake server with the Remote SSH extension.
Linking #603 here as well.
Using cmake 3.17.0 seems to work. Swapping back to 3.9.6 (and using clear cache and reconfigure) breaks it again. Thanks!
I don't think this is just a Remote Development problem, though. If I remote to my machine (NoMachine + ssh -X) and run VSCode there, I get the same behaviour; it works with 3.17.0 and it does not with 3.9.6.
Is there any way to catch this and give a reasonable error about the cmake version?
If I had a list of all the broken versions of CMake, we could probably do this. 😉 Probably the better thing to do is promote the latest version of CMake when an older one is detected. I think 3.15 is a good minimum version at this point.
I think an error saying try CMake 3.15+ would be great.
Brief Issue Summary
I have successfully got my project to configure (and build):
I would like to use a different version of cmake than is installed in /usr/bin/cmake. When I set
cmake.cmakePath
, making my fullsettings.json
the following:I get this output:
(If I comment out the
cmake.cmakePath
, it works, as in the first snippet.)Expected:
I would expect this to work as it does if I run the full command on the command line:
Platform and Versions
Other Notes/Information
Thanks!