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.
I use
misefor installing thejustandjust-lspbinaries. There's two ways to reference mise binaries, shims or direct version references.When using shims:
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.
If you use specific versions:
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.