gilbertbw
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 cleanormix clean --depsin ElixirLS with custom commandmixClean
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_lsdirectory, then restart your editor
I have no .elixir_ls directory
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Hello,
I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter).
The diffic...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
gamache
I am running into the same problem.
I’m on a Mac M1 MBP.
elixir --versionreports:VS Code reports:
bdarla
I also run into the same problem in my new MBP M2. It might has to do with Erlang/OTP 26 or asdf itself.
The workaround was to install Erlang and Elixir via Homebrew where I noticed that it installed the latest version of Erlang/OTP 25 (not 26).
gamache
Rolling back to OTP 25 worked for me as well.
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.”
moogle19
OTP 26 is currently not supported, see: Not starting on OTP26 · Issue #886 · elixir-lsp/elixir-ls · GitHub
jameskent
I know. I’ve presented errors to help create a solution.
v1d3rm3
Thanks.
Getting OTP 25.3.2 with elixir 1.14.4 in asdf worked.
lukaszsamson
ElixirLS 0.15.1 released with support for OTP 26.0.2+
Aadmaa
Starting out using Elixir and ran into this on Windows. It may be worth noting for others that the chocolatey installation for Elixir/OTP at the time of writing is a little behind - just enough so that ElixirLS doesn’t start properly.
The fact the the extension is not working right due to the language server crashing is not obvious from vscode. You have to open the log (Ctrl-Shft-P, Developer: Open Extension Logs Folder) and look at the log; and also look at the Output for the ElixirLS extension.
To resolve it I just had to uninstall via chocolatey, and reinstall via the “Using Windows installers” methods here: Installing Elixir - The Elixir programming language - this way you can get versions that are up to date.
UPDATE: See @lukaszsamson note below - indeed OTP 26 proved unstable. I uninstalled OTP and used chocolatey to install a v25 version of OTP; then used the Windows installer link here Elixir 1.15.7 on Erlang 25. ElixerLS is running once again.
lukaszsamson
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