-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ElixirLS can't find Elixir installation #408
Comments
There is no
|
Same here. I fixed it by manually pasting |
I actually was maybe a bit hasty in claiming it was run as the root user, it's maybe just not picking up the changes I'm making in my bashrc, where I'm sourcing kiex. I tried creating a Manually overriding Running the |
Can you try making the changes in your
Can you try running the Working output should look roughly like:
At which point it should just hang/wait for input. I usually then press "enter" and I get an expected error:
|
My .bash_profile sources my .bashrc, so that should work right?
|
Maybe |
@TBK145 so it is working fine when run from terminal. VSCode extension just runs |
I echo'd the path and it returned But my |
Well, I guess it isn't. Here's what it outputs in VSCode on my machine (macOS) when I add this snippet to
|
I guess my
And the language_server.sh still echoed the same PATH as before: |
Do you start vscode from a shell or from the graphical launcher? |
NobbZ solution should work for loading .bashrc, or setting the "Integrated Shell" option in VSCode to There's few other possible solutions in this post of stack. |
I'm starting vscode from the Gnome 'Activities' button. When I start it from my terminal it works indeed. |
There is no reason why any program started from your GUI should read your shells configuration. To mitigate that, the ElixirLS startup script indeed searches at a well known location for a hint whether or not If you use something else to manage your elixir version than And if elixir-lsp/vscode-elixir-ls#3 was fixed, you could easily maintain a local fork with a patched launcher which would find any other managed elixir version you like. If you do not use VScode, but another editor with a more generic LSP client that uses a configured location for the LSP server anyway, you can already today patch accordingly. |
Right, maybe this should be a part of the readme/ installation guide? Also, I would think that kiex would be part of this startup script as well, as the Readme suggests to install Erlang and Elixir using kerl and kiex: https://github.com/elixir-lsp/elixir-ls#supported-versions
Also, when starting from the GUI or the terminal, this |
@TBK145 |
Closing due to lack of OPs response |
Environment
Logs
I have Elixir installed with kiex (and Erlang with kerl), however ElixirLS apparently can't find my Elixir installation. After a bit of troubleshooting it seems that the 'launch.sh' is executed as the wrong user, root instead of my own user.
The text was updated successfully, but these errors were encountered: