Skip to content

just and just-lsp binary discovery does not use $PATH #90

Description

@iloveitaly

I use mise for installing the just and just-lsp binaries. There's two ways to reference mise binaries, shims or direct version references.

When using shims:

  "vscode-just.lspPath": "${HOME}/.local/share/mise/shims/just-lsp",
  "vscode-just.justPath": "${HOME}/.local/share/mise/shims/just",

The $PWD matters, since the shims look at the current directory in order to determine what version to use. Here's the error you'll get in the just logs if you're not in the proper directory.

Command failed: ${HOME}/.local/share/mise/shims/just --dump
mise ERROR No version is set for shim: just
Set a global default version with one of the following:
mise use -g just@1.40.0
mise use -g just@1.42.4
mise use -g just@1.46.0

If you use specific versions:

  "vscode-just.lspPath": "${HOME}/.local/share/mise/installs/cargo-just-lsp/0.3.3/bin/just-lsp",
  "vscode-just.justPath": "${HOME}/.local/share/mise/installs/just/1.46.0/just",

Things work fine, but if you update the Just or Just LSP binaries, you have to update your settings.

Requested change: when executing the specified just and LSP binaries, the current working directory should be the workspace root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions