You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm opening this issue to document a solution to a fatal startup error in the ElixirLS plugin for VSCode. The root cause has nothing to do with ElixirLS itself, but is rather an issue with the user's installation of Erlang that produces a non-obvious error message (at least, non-obvious for less-experienced elixir users like myself.) Hopefully this is helpful to someone else in the future. Thanks!
The problem
The language server crashes 5 times and gives up when VSCode starts because it encounters a match error while invoking Application.ensure_all_started(:language_server, :temporary) in ElixirLS.LanguageServer.CLI. The match error is: No match of right hand side value: {:error, {:edoc, {'no such file or directory', 'edoc.app'}}}.
The Root Cause
This is because on Fedora 32 (and likely other distros), the base installation of erlangdoes not ship with the edoc utility; this must be installed separately with dnf install erlang-edoc. Once erlang-edoc is installed, the language server starts like normal.
I'm opening this issue to document a solution to a fatal startup error in the ElixirLS plugin for VSCode. The root cause has nothing to do with ElixirLS itself, but is rather an issue with the user's installation of Erlang that produces a non-obvious error message (at least, non-obvious for less-experienced elixir users like myself.) Hopefully this is helpful to someone else in the future. Thanks!
The problem
The language server crashes 5 times and gives up when VSCode starts because it encounters a match error while invoking
Application.ensure_all_started(:language_server, :temporary)
in ElixirLS.LanguageServer.CLI. The match error is:No match of right hand side value: {:error, {:edoc, {'no such file or directory', 'edoc.app'}}}
.The Root Cause
This is because on Fedora 32 (and likely other distros), the base installation of
erlang
does not ship with the edoc utility; this must be installed separately withdnf install erlang-edoc
. Onceerlang-edoc
is installed, the language server starts like normal.Environment
The text was updated successfully, but these errors were encountered: