Running v0.22.8 I get this in the lsp log of my neovim: "[Next LS] Runtime for folder xy failed to initialize" happening for every project.
I built next-ls from source and started it manually to see what exactly fails. The spawned port for the following command failed with {:error, :portdown}: /Users/nd/src/next-ls/_build/dev/lib/next_ls/priv/cmd /Users/nd/.asdf/installs/elixir/1.16.2/bin/elixir --no-halt --sname nextls-runtime-1717491548466058959 --cookie LYFPZNMONKRMJBOFPKDE -S mix loadpaths --no-compile
Changing the command to /Users/nd/src/next-ls/_build/dev/lib/next_ls/priv/cmd elixir --no-halt --sname nextls-runtime-1717491548466058959 --cookie LYFPZNMONKRMJBOFPKDE -S mix loadpaths --no-compile (using the elixir shim instead of the full path), it works.
I think it's an issue in my environment and read through https://github.com/asdf-vm/asdf-elixir/issues/111 and adjent issues but I can't find a good solution (except the change mentioned above), so I wonder if somebody else has solved this better?
Running
v0.22.8
I get this in the lsp log of my neovim:"[Next LS] Runtime for folder xy failed to initialize"
happening for every project.I built next-ls from source and started it manually to see what exactly fails. The spawned port for the following command failed with
{:error, :portdown}
:/Users/nd/src/next-ls/_build/dev/lib/next_ls/priv/cmd /Users/nd/.asdf/installs/elixir/1.16.2/bin/elixir --no-halt --sname nextls-runtime-1717491548466058959 --cookie LYFPZNMONKRMJBOFPKDE -S mix loadpaths --no-compile
Executing that by hand, I get:
Changing the command to
/Users/nd/src/next-ls/_build/dev/lib/next_ls/priv/cmd elixir --no-halt --sname nextls-runtime-1717491548466058959 --cookie LYFPZNMONKRMJBOFPKDE -S mix loadpaths --no-compile
(using the elixir shim instead of the full path), it works.I think it's an issue in my environment and read through https://github.com/asdf-vm/asdf-elixir/issues/111 and adjent issues but I can't find a good solution (except the change mentioned above), so I wonder if somebody else has solved this better?