gilbertbw

gilbertbw

ElixirLS not working - Runtime terminating during boot

Hi, I am trying to get ElixerLS setup in VSCode but getting an error.

This is what I get in the Output tab:

[Info  - 10:14:54 AM] Started ElixirLS v0.13.0
[Info  - 10:14:54 AM] ElixirLS built with elixir "1.12.3" on OTP "22"
[Info  - 10:14:54 AM] Running on elixir "1.14.4 (compiled with Erlang/OTP 26)" on OTP "26"
[Warn  - 10:14:54 AM] OTP compiled without EEP48 documentation chunks. Language features for erlang modules will run in limited mode. Please reinstall or rebuild OTP with approperiate flags.
[Info  - 10:14:54 AM] Elixir sources not found (checking in /home/build/elixir). Code navigation to Elixir modules disabled.
Runtime terminating during boot ({badarg,[{io,put_chars,[standard_error,[_]],[{_},{_},{_}]},{Elixir.Kernel.CLI,exec_fun,2,[{_},{_}]},{Elixir.Kernel.CLI,run,1,[{_},{_}]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done
[Error - 10:14:56 AM] The ElixirLS - live_view_studio server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 10:14:56 AM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:14:56 AM] ElixirLS - live_view_studio client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 10:14:56 AM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 

Environment

I am running code . from a WSL2 environment.

I used ASDF to install Elixir and Erlang, and I’m using the latest versions.

$ elixir --version
Erlang/OTP 26 [erts-14.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

Elixir 1.14.4 (compiled with Erlang/OTP 26)

Basic troubleshooting steps

I have tried following the Troubleshooting steps in the readme..

  • Restart ElixirLS with a custom command restart

I ran Elixir: Restart Language Server and got an error messagebox:

Command 'Elixir: Restart language server' resulted in an error (Cannot read properties of undefined (reading 'capabilities'))
  • Run mix clean or mix clean --deps in ElixirLS with custom command mixClean

I ran Elixir: Trigger mix clean --deps in language server and got an error messagebox:

Command 'Elixir: Trigger mix clean --deps in language server' resulted in an error (Cannot read properties of undefined (reading 'capabilities'))
  • Restart your editor (which will restart ElixirLS)

This had no effect.

  • After stopping your editor, remove the entire .elixir_ls directory, then restart your editor

I have no .elixir_ls directory

Marked As Solved

moogle19

moogle19

Also Liked

lukaszsamson

lukaszsamson

ElixirLS Core Team

ElixirLS 0.15.1 released with support for OTP 26.0.2+

lukaszsamson

lukaszsamson

ElixirLS Core Team

Please note that OTP 26.0 - 26.1.2 has critical bugs on Windows making ElixirLS unusable. 26.0 will crash on start, 21.1 will partially work but crash often in runtime. Until a fix for OTP 26 writes corrupted messages to stdout in latin1 mode on Windows · Issue #7838 · erlang/otp · GitHub is released I recommend downgrading to OTP 25

jameskent

jameskent

The same problem. OTP 25.3.2 with elixir 1.14.4 is working excellent, OTP 26.0 with elixir 1.14.5 generate errors: “ElixirLS - sgf-parsing client: couldn’t create connection to server.”

Starting ElixirLS release v0.14.6
Running in /home/leszek/exercism/elixir/sgf-parsing
[Info  - 12:45:25 PM] Started ElixirLS v0.14.6
[Info  - 12:45:25 PM] Running in /home/leszek/exercism/elixir/sgf-parsing
[Info  - 12:45:25 PM] ElixirLS built with elixir "1.14.5" on OTP "26"
[Info  - 12:45:25 PM] Running on elixir "1.14.5 (compiled with Erlang/OTP 26)" on OTP "26"
[Info  - 12:45:25 PM] Protocols are not consolidated
Runtime terminating during boot ({badarg,[{io,put_chars,[standard_error,[_]],[{_},{_},{_}]},{Elixir.Kernel.CLI,exec_fun,2,[{_},{_}]},{Elixir.Kernel.CLI,run,1,[{_},{_}]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done
[Error - 12:45:27 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 12:45:27 PM] Connection to server got closed. Server will restart.
true
[Error - 12:45:27 PM] ElixirLS - sgf-parsing client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
jameskent

jameskent

I know. I’ve presented errors to help create a solution.

lukaszsamson

lukaszsamson

ElixirLS Core Team

You are running a not supported elixir rc version. Please try on official release. Also please include some actual logs. Note that OTP < 26.0.2 is broken on all platforms so make sure your elixir instal actually uses 26.1.2

Where Next?

Popular in Questions Top

dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
Kagamiiiii
Student &amp; New to elixir. Nice language. I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
Phillipp
Hey, I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs &amp; Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New

We're in Beta

About us Mission Statement