elixir-lsp / elixir-ls

A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol"
https://elixir-lsp.github.io/elixir-ls/
Apache License 2.0
1.42k stars 188 forks source link

function ElixirLS.LanguageServer.CLI.main/0 is undefined (module ElixirLS.LanguageServer.CLI is not available) #1103

Open slondr opened 2 weeks ago

slondr commented 2 weeks ago

Environment

Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]

Elixir 1.17.0 (compiled with Erlang/OTP 26)

Current behavior

When I run M-x lsp in an elixir-mode or elixir-ts-mode buffer, I get an error.

Process elixir-ls stderr<1> finished

Process elixir-ls stderr finished
** (UndefinedFunctionError) function ElixirLS.LanguageServer.CLI.main/0 is undefined (module ElixirLS.LanguageServer.CLI is not available)
    ElixirLS.LanguageServer.CLI.main()
    nofile:1: (file)
    (stdlib 6.0) erl_eval.erl:904: :erl_eval.do_apply/7
    (elixir 1.17.0) lib/code.ex:572: Code.validated_eval_string/3
slondr commented 2 weeks ago

In case this is relevant: I have ASDF installed, but do not install Elixir using ASDF. I am just using the elixir version shipped by Arch.