elixir-lsp/vscode-elixir-ls

elixir command check is invalid

Opened this issue · 5 comments

It does not take into account asdf/rtx/mise on unix systems

Hi! At least for asdf, the command check fails for me because process.cwd() is / - not my project's folder, where I have .tool-versions so asdf's elixir shim will be available. Like in this issue: JakeBecker/vscode-elixir-ls#109

Exactly, that's the case

So, the solution is to do the following? (With whatever versions)

cd ~
asdf local elixir 1.17
asdf local erlang 27

The real solution would be to modify the check to execute elixir command on *nix via a shell script that detects and activates asdf/mise similarily to what launch.sh does. Maybe modifying launch.sh to accept a new param and simply exec into elixir

image

using latest mise

image