pest-ide-tools icon indicating copy to clipboard operation
pest-ide-tools copied to clipboard

VS Code: find `pest-language-server` in $PATH

Open flying-sheep opened this issue 10 months ago • 3 comments

Describe the bug

After installing a system package on Linux that provides /usr/bin/pest-language-server, I saw the popup about not finding the LS and about installing it via cargo install

To Reproduce

Steps to reproduce the behavior:

  1. Install pest-language-server in $PATH, but not in the cargo bin directory
  2. Install extension
  3. witness it not finding the server in the standard location for executables.

Expected behavior

$PATH gets searched first for the binary.

Environment (please complete the following information):

  • OS: Linux
  • Editor vscode
  • Server Version: 0.3.11

flying-sheep avatar Feb 26 '25 08:02 flying-sheep

Yes, the VSCode extension should definitely check PATH in hindsight. For now, you can use the "pestIdeTools.serverPath": "/path/to/binary" config option in your VSCode settings.

Jamalam360 avatar Feb 26 '25 13:02 Jamalam360

Doing that as a workaround, but it’s cumbersome. I have to make sure the setting isn’t synced and set it differently on different machines.

So fixing this would still be appreciated!

flying-sheep avatar Feb 26 '25 14:02 flying-sheep

Now I’m using this extension on MacOS and Linux, which makes it really uncomfortable without this.

flying-sheep avatar Apr 23 '25 09:04 flying-sheep