vs.language.cmake icon indicating copy to clipboard operation
vs.language.cmake copied to clipboard

Popup message spam

Open TankTheFrank opened this issue 8 years ago • 10 comments

I am getting spammed by "The "cmake" command is not found in PATH. Install it or use cmake.cmakePath in the workspace settings to define the CMake executable binary."

I don't care to use the editor as a make system so having to click "close" every few seconds is rather annoying when look at a cmake file.

TankTheFrank avatar Sep 29 '16 17:09 TankTheFrank

Hi, could you give me more information about your system ?

twxs avatar Sep 29 '16 18:09 twxs

This happens on any windows system where cmake is not installed or in PATH. If you just want to use the extension for syntax highlighting then this problem is really annoying.

parkjam avatar Apr 13 '17 10:04 parkjam

+1 on this (running on Windows), this is really annoying. I don't want to install CMake on Windows, I just want syntax highlighting.

jtanx avatar Aug 07 '17 09:08 jtanx

Same for me, on my Linux box as well.

Is there an option to disable the calls to cmake?

aurelienrb avatar Aug 21 '17 18:08 aurelienrb

I've found that as a workaround, overriding the path in the preferences:

"cmake.cmakePath": "",

Prevents the popups, although looking at the debug console, the extension is still trying to call cmake, just that this time, the empty path causes it to error out before it can display the popup messages.

jtanx avatar Aug 21 '17 21:08 jtanx

+1, completion doesn't seem to work without it either.. making this extension useless.

jrdmellow avatar Sep 03 '17 21:09 jrdmellow

The CMake is required by design. The CMake exécutable is used to provide all existing commands, etc of the current installed version. That make you a chance to discover New commands and make the completion list always uptodate. I could disable the warning, but the completion willl not work until the extension embed a json generated from a specific version of CMake(what I would avoid when I began to write the extension... )

twxs avatar Oct 20 '17 05:10 twxs

Hi @twxs. I appreciate your design choice, but on my system CMake is not installed where I'm editing (running vscode). For me, CMake runs in a docker container that builds my software. So I don't think vscode will be able to peek inside my docker image to see what version of cmake is in there. Really I just want syntax highlighting, as @parkjam says. I feel like I can live without completion.

Do you endorse the path "" workaround suggested by @jtanx or not? And if not, then what can be done to make it work with the version of cmake that runs in my toolchain docker container?

wyckster avatar Feb 14 '18 05:02 wyckster

any news on this issue?

aliridha1510 avatar May 07 '18 19:05 aliridha1510

I don't want to run CMake, I don't want command completion, I just want syntax highlighting. The workaround described has no effect.

scentoni avatar Aug 28 '20 23:08 scentoni