-
Notifications
You must be signed in to change notification settings - Fork 196
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
LS crashes when running the vscode extension #208
Comments
This is the popup that I get when I start vscode with elixir ls fork
|
@palash25 Is there any output above what you posted? I would expect to see the startup messages before any crashes. The startup messages should look something like:
|
@axelson I have provided a link to a gist that contains the full output |
@palash25 do you also get an error from running the language server in a terminal for this project? What do you get if you follow these rough steps?
|
I hadn't run this project locally but when I tried to build and run it today I got a compilation error
|
I have the same environment as the OP. I think the problem started after a vscode update. It's not specific to a given project. This is my output when I open a brand new elixir project: https://gist.github.com/polmuz/c373045403c36c53786ebf9efed0bf5d I tried to download and compile the project and I got:
I had to When I run the compiled language server I get this until I press enter and it crashes:
|
I was getting the same error/output (I mean: view>output>ElixirLS) as @palash25 I don't know if that is of any help. |
@asincrono by latest update of VSCode are you referring to 1.44.2? https://github.com/microsoft/vscode/releases Or do you mean the latest release of vscode-elixir-ls? (Since the fork was very recently merged back). It seems very plausible that this issue is related to a non-full installation of Erlang. Probably the previous version of the extension did not rely on as many erlang features. I can only easily test on Ubuntu 19.10, but I don't get the same error when I only install @polmuz does installing |
@axelson it's working for me now, I saw an update screen today when I opened vscode and when I went to my test elixir project it asked me to compile something related to dialyzer and now everything works. Regarding on how I installed elixir, originally I installed it adding the erlang solutions repo for ubuntu as instructed here https://elixir-lang.org/install.html#unix-and-unix-like, that worked fine until ~3 days ago when I started getting this error. Yesterday I tried installing elixir with asdf, but I had the same problem. Same error message (and it was using asdf version ( I'm 90% sure the issue was related to a vscode update but I don't know how to test different vscode versions on my system easily. If you have an idea on how to do that I'm happy to help chasing the bug down. Otherwise, it seems to be gone now on my system. Thanks for the help! |
iirc I used this guide to install both https://elixir-lang.org/install.html#unix-and-unix-like |
@axelson the version I have right now is 1.44.2. Everything is working fine. I think the stuff @polmuz saw was the (re)build of the PTL. I saw the same thing. There was problably not a full instalation, as when I did de "apt install esl-erlang" there were packages that were not installed. I'm sorry I can't be of more help. |
All right, I also did |
@axelson should we add this in the Readme? something like "in case of a crash message install any missing dependencies using apt install esl-erlang" |
@palash25 Yes, I think that would be a great addition to the troubleshooting section of the readme |
Hey everyone, I have been also facing the same issue and I have tried everything that was suggested above in this thread but i still haven't been able to resolve this issue |
@gupta82anish What OS are you using ? I had the same problem on Fedora 32, and I just solved it by installing |
@gupta82anish what OS and version are you using and exactly how did you install elixir and erlang? |
@axelson @thomasnaudin I am running Ubuntu 18.04 LTS, and I installed Erlang and Elixir by following this guide https://elixir-lang.org/install.html#unix-and-unix-like |
@gupta82anish but |
@axelson I know, but it didn't help. ElixirLS still keeps crashing. I have given the link to the gist log if it helps? |
I tried running
Any idea about this? |
@gupta82anish I'm not sure. Maybe you could do a |
Just wanted to share my recent experience with a persistent crash. I was using the forked version of ElixirLS for ages and it worked great, then one day after an update it just crashed persistently. I gave up in the end and went back to the old version of the extension and it was working again at least so left it at that. Recently it started crashing again, I realise now because the forked extension has updated the old extension so I'm getting the same problem as before. After some digging, I discovered that the extension was using an old Thanks for all your work on this. Hope this might help someone else. |
Environment
Troubleshooting
.elixir_ls
directory, then restart your editor (couldn't find this directory)Crash report template
Delete this section if not reporting a crash
If using a client other than VS Code, please try VSCode's "ElixirLS Fork: Elixir support and debugger" extension. Does it reproduce your failure? Yes both the vscode extensions give me the same error and I disable one of them while running the other
Create a new Mix project with
mix new empty
, then open that project with VS Code and open an Elixir file. Is your issue reproducible on the empty project? If not, please publish a repo on Github that does reproduce it.It gave the same error
Check the output log by opening
View > Output
and selecting "ElixirLS" in the dropdown. Please include any output that looks relevant. (If ElixirLS isn't in the dropdown, the server failed to launch.)Here is the output
Check the developer console by opening
Help > Toggle Developer Tools
and include any errors that look relevant.The text was updated successfully, but these errors were encountered: