Closed rpbaptist closed 11 months ago
Most likely there's something wrong with either your elixir or OTP install. After rtx activate the launch script attempts to exec an install script via elixir command, and that fails. It looks like your elixir is built for other OTP version than the one that rtx activates
Thanks for the hint. After some debugging of the launch script I found the following error:
=ERROR REPORT==== 21-Dec-2023::12:23:42.261095 ===
beam/beam_load.c(184): Error loading module 'Elixir.Kernel':
This BEAM file was compiled for a later version of the runtime system than the current (Erlang/OTP 25).
To fix this, please re-compile this module with an Erlang/OTP 25 compiler.
(Use of opcode 182; this emulator supports only up to 180.)
I am using OTP 26 in my project along with Elixir 1.15.7. I cleaned all my deps and the build. I'm not sure where this OTP 25 complied BEAM file is coming from.
Closing as this is not ElixirLS issue
Environment
Elixir & Erlang versions (elixir --version):
erlang 26.1.2
elixir 1.15.7-otp-26
0.17.10
Ubuntu 23.04
Current behavior
When launching
launch.sh
orlanguage_server.sh
a crash immediately occurs. Both in Neovim, Sublime Text and directly from the command line:Expected behavior
I expect the LS to start.