Skip to content
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

Crash in WSL #897

Closed
arafatm opened this issue Jun 1, 2023 · 1 comment
Closed

Crash in WSL #897

arafatm opened this issue Jun 1, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@arafatm
Copy link

arafatm commented Jun 1, 2023

Precheck

  • Do a quick search and make sure the issue has not yet been reported
  • Do not use the issues tracker for guidance, questions or support (try Elixir Forum, Stack Overflow, Slack, etc. instead)
  • If using a client other than VS Code, please try VSCode's "ElixirLS: Elixir support and debugger" extension. Does it reproduce your failure?

Environment

  • Elixir & Erlang versions (elixir --version): 1.14.5 (asdf)
  • Elixir Language Server version: OTP 26 (asdf)
  • Operating system: Ubuntu 22.04.2 (WSL)
  • Editor or IDE name (e.g. Emacs/VSCode): VSCode
  • Editor Plugin/LSP Client name and version: ElixirLS v0.14.7: 6 May 2023

Current behavior

Server fails to start in Ubuntu 22.04 on WSL. I used asdf to install elixir 1.14.5 and Erlang 26.0. I have the WSL extention installed in VSCode. I followed the installation instructions for VScode as listed and also went through the troubleshooting section.

I also tried to run in a docker container using the Dev Containers extension and received the same error.

Starting ElixirLS release v0.14.6
Running in /home/arafatm/code/empty
[Info  - 6:50:13 PM] Started ElixirLS v0.14.6
[Info  - 6:50:13 PM] Running in /home/arafatm/code/empty
[Info  - 6:50:13 PM] ElixirLS built with elixir "1.14.5" on OTP "26"
[Info  - 6:50:13 PM] Running on elixir "1.14.5 (compiled with Erlang/OTP 24)" on OTP "26"
[Info  - 6:50:13 PM] Protocols are not consolidated
[Info  - 6:50:13 PM] 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 - 6:50:15 PM] Server initialization failed.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:50:15 PM] The ElixirLS - empty server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 6:50:15 PM] ElixirLS - empty client: couldn't create connection to server.
  Message: Pending response rejected since connection got disposed
  Code: -32097 
[Error - 6:50:15 PM] Restarting server failed
  Message: Pending response rejected since connection got disposed
  Code: -32097 

I tried with a minimal mix new empty

Expected behavior

I'd expect that having installed elixir and erlang, when I enable the VSCode extension for it to work? I also tried to find documentation on how to start the server manually on the command line but wasn't able to.

@lukaszsamson
Copy link
Collaborator

See #886

@lukaszsamson lukaszsamson added the duplicate This issue or pull request already exists label Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants