elixir-lsp / vscode-elixir-ls

Elixir language support and debugger for VS Code, powered by ElixirLS.
https://marketplace.visualstudio.com/items?itemName=JakeBecker.elixir-ls
MIT License
545 stars 106 forks source link

elixir command check is invalid #406

Open lukaszsamson opened 9 months ago

lukaszsamson commented 9 months ago

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

pineman commented 5 months ago

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: https://github.com/JakeBecker/vscode-elixir-ls/issues/109

lukaszsamson commented 5 months ago

Exactly, that's the case

Morzaram commented 2 months ago

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

cd ~
asdf local elixir 1.17
asdf local erlang 27
lukaszsamson commented 2 months ago

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

tyoc213 commented 2 months ago
image

using latest mise

image