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

fresh install doesn't work #913

Closed
ConnorRigby opened this issue Jun 21, 2023 · 3 comments
Closed

fresh install doesn't work #913

ConnorRigby opened this issue Jun 21, 2023 · 3 comments

Comments

@ConnorRigby
Copy link

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):
Erlang/OTP 26 [erts-14.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

Elixir 1.15.0 (compiled with Erlang/OTP 26)
  • Elixir Language Server version: v0.15.0
  • Operating system: linux 6.3.8
  • Editor or IDE name (e.g. Emacs/VSCode): VSCode
  • Editor Plugin/LSP Client name and version:
Version: 1.79.2
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:59:55.818Z
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.3.8-arch1-1

image
image
image
image

Current behavior

setup a brand new machine. Installed Elixir and Erlang via asdf. Installed a fresh instance of VSCode, no settings sync or anything. Brand new install. No other extensions. Just ElixirLS.

ElixirLS logs. If using Visual Studio Code, 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.)

no logs

If relevant include VSCode extension logs. Check the developer console by opening Help > Toggle Developer Tools.

no logs

If relevant include Language Server Protocol/Debug Adapter Protocol messages trace. In VSCode turn on tracing in Settings > Extensions > ElixirLS > Elixir LS › Trace: Server.

no logs

reproduction:

install the extension on a fresh linux + code install

Expected behavior

the extension should work

@ConnorRigby
Copy link
Author

i've debugged a bit further, if i run code . in the project i want to use, it works. I'm not sure where the extension is getting it's environment from, but it fails in a different way. I get this message

Info  - 12:40:23 PM] ElixirLS built with elixir "1.15.0" on OTP "26"
[Info  - 12:40:23 PM] Running on elixir "1.15.0 (compiled with Erlang/OTP 26)" on OTP "26"
[Info  - 12:40:23 PM] Protocols are not consolidated
[Info  - 12:40:23 PM] Elixir sources not found (checking in /home/runner/work/elixir/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,[{_},{_}]},{elixir,start_cli,0,[{_},{_}]},{init,start_em,1,[]},{init,do_boot,3,[]}]})

Crash dump is being written to: erl_crash.dump...done

@metabren
Copy link

I believe this is an issue with OTP 26. You'll need to use OTP 25 for the time-being. I ran into the same thing. #886 is tracking it.

@lukaszsamson
Copy link
Collaborator

Please refer to compatibility matrix. OTP 26 is not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants