Trolleger

Trolleger

Elixir LS on Vscode WSL container suddenly not working. Using MISE

Recently I’ve been getting errors with Elixir LS, they sort of went away after removing deps and the elixir ls folder at first but now I think it’s literally broken. and I don’t know why

So when the extension tries to start up it gives

Running /home/andrew/.vscode-server/extensions/jakebecker.elixir-ls-0.30.0/elixir-ls-release/launch.sh
Preferred shell is zsh, relaunching
Looking for asdf install
asdf not found
Looking for mise executable
mise not found
Looking for vfox executable
vfox not found
init terminating in do_boot ({undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done
[Error - 6:36:49 PM] Server process exited with code 1.
[Error - 6:36:50 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Info  - 6:36:50 PM] Connection to server got closed. Server will restart.
true
[Error - 6:36:50 PM] ElixirLS - BetterDiscord client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
Running /home/andrew/.vscode-server/extensions/jakebecker.elixir-ls-0.30.0/elixir-ls-release/launch.sh
Preferred shell is zsh, relaunching
Looking for asdf install
asdf not found
Looking for mise executable
mise not found
Looking for vfox executable
vfox not found
init terminating in do_boot ({undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

And I do believe that I have the proper things installed as shown by the following commands,

~/projects/BetterDiscord on master *1 !1 ?1 ❯ where elixir                                                                                                                at 18:38:14
/home/andrew/.local/share/mise/installs/elixir/1.18.4/bin/elixir
/mnt/c/ProgramData/chocolatey/lib/Elixir/tools/bin/elixir
~/projects/BetterDiscord on master *1 !1 ?1 ❯ elixir --version                                                                                                            at 18:38:19
Erlang/OTP 27 [erts-15.2.7.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit:ns]

Elixir 1.18.4 (compiled with Erlang/OTP 25)
~/projects/BetterDiscord on master *1 !1 ?1 ❯ where erl                                                                                                                   at 18:38:22
/home/andrew/.local/share/mise/installs/erlang/27.3.4.2/bin/erl
/usr/bin/erl
/bin/erl
~/projects/BetterDiscord on master *1 !1 ?1 ❯ erl --version                                                                                                               at 18:38:25
Erlang/OTP 27 [erts-15.2.7.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit:ns]

Eshell V15.2.7.1 (press Ctrl+G to abort, type help(). for help)
1> 

maybe the issue is confliction? Because what happens for me at least is when I mise implode and remove and run elixir –version I get a similar thing like the init terminating But honestly I’m no elixir expert so I ask unto you guys for help and what I can do

~/projects/BetterDiscord on master *1 !1 ?1 ❯ mise implode                                                                                                        took 5s at 18:38:35
remove /home/andrew/.local/state/mise ? Yes
remove /home/andrew/.local/share/mise ? Yes
remove /home/andrew/.cache/mise ? Yes
remove /home/andrew/.local/bin/mise ? Yes
_mise_hook_precmd:1: no such file or directory: /home/andrew/.local/bin/mise                                                                                                          
~/projects/BetterDiscord on master *1 !1 ?1 ❯ elixir --version                                                                                                    took 3s at 18:40:53
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}}
init terminating in do_boot ({undef,[{elixir,start_cli,[],[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done
_mise_hook_precmd:1: no such file or directory: /home/andrew/.local/bin/mise                                                                                                          
~/projects/BetterDiscord on master *1 !1 ?1 ❯    

I can give more details, well the final detail I suppose is that in my backend folder the .elixir_ls folder is not being made there anymore, maybe I deleted it one too many times? I can give more details, but I tried searching up and this really is bugging me! That’s all, any help would be really really appreciated

edit: I even tried with ADSF But I still get the errors! This is so confusing

edit 2: I uninstalled elixir from all my paths and everything on windows that I could, I also within file explorer deleted the extension in the vscode folder and reinstalled it but still Nothing!
edit 3:

one more thing, maybe it’s a vscode issue in general not being able to find stuff because now in Lexical I get things like this, maybe vscode can’t access my path or version managers or anything else? I really don’t know :confused: I’m using WSL Ubuntu on win11

2026-01-01 20:24:57.035 [info] Starting Lexical in directory /home/andrew/projects/BetterDiscord/backend
2026-01-01 20:24:57.035 [info] Starting lexical at "/home/andrew/.vscode-server/data/User/globalStorage/lexical-lsp.lexical/lexical_install/lexical/bin/start_lexical.sh"
2026-01-01 20:24:57.877 [info] No activated version manager detected. Searching for version manager...

2026-01-01 20:24:58.286 [info] Could not activate a version manager. Trying system installation.

2026-01-01 20:24:58.765 [info] /home/andrew/.vscode-server/data/User/globalStorage/lexical-lsp.lexical/lexical_install/lexical/bin/start_lexical.sh: line 21: elixir: command not found

2026-01-01 20:24:58.767 [info] [Error - 8:24:58 PM] Server initialization failed.
2026-01-01 20:24:58.767 [info]   Message: Pending response rejected since connection got disposed
  Code: -32097 
2026-01-01 20:24:58.767 [info] [Info  - 8:24:58 PM] Connection to server got closed. Server will restart.
2026-01-01 20:24:58.767 [info] true
2026-01-01 20:24:58.767 [info] [Error - 8:24:58 PM] Lexical client: couldn't create connection to server.
2026-01-01 20:24:58.767 [info]   Message: Pending response rejected since connection got disposed
  Code: -32097 
2026-01-01 20:24:58.776 [info] [Error - 8:24:58 PM] Server process exited with code 127.

Marked As Solved

Trolleger

Trolleger

Nevermind, the shell values were not loaded (or whatever) I just had to open vscode from the ubuntu shell!

Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
yawaramin
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function: -dialyzer...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

Other popular topics Top

skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39297 209
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
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 47930 226
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

We're in Beta

About us Mission Statement