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

Exception from Logger when running on a 1.10 project #107

Closed
axelson opened this issue Jan 28, 2020 · 0 comments · Fixed by #109
Closed

Exception from Logger when running on a 1.10 project #107

axelson opened this issue Jan 28, 2020 · 0 comments · Fixed by #109

Comments

@axelson
Copy link
Member

axelson commented Jan 28, 2020

07:00:03.587 [error] GenServer ElixirLS.LanguageServer.Server terminating
** (UndefinedFunctionError) function Logger.__should_log__/1 is undefined or private
    (logger 1.10.0) Logger.__should_log__(:warn)
    (language_server 0.2.28) lib/language_server/server.ex:164: ElixirLS.LanguageServer.Server.handle_info/2
    (stdlib 3.10) gen_server.erl:637: :gen_server.try_dispatch/4
    (stdlib 3.10) gen_server.erl:711: :gen_server.handle_msg/6
    (stdlib 3.10) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

Note: this doesn't affect the vscode extension because the vscode extension doesn't hit this code path because it usually supplies a workspace/didChangeConfiguration message.

axelson added a commit that referenced this issue Jan 30, 2020
On Elixir 1.10 `Logger.__should_log__/1` has been removed which causes an
exception. This shows that we should look at alternative mechanisms to run
elixir-ls that will always run it under the elixir version that it was initially
compiled with.

Fixes #107
axelson added a commit that referenced this issue Jun 14, 2020
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

Successfully merging a pull request may close this issue.

1 participant