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

Logger interception can fail #947

Closed
lukaszsamson opened this issue Jul 18, 2023 · 5 comments
Closed

Logger interception can fail #947

lukaszsamson opened this issue Jul 18, 2023 · 5 comments

Comments

@lukaszsamson
Copy link
Collaborator

an exception was raised:
    ** (RuntimeError) build without intercepted logger []
(language_server 0.15.1) lib/language_server/build.ex:109: ElixirLS.LanguageServer.Build.reload_project/0

Originally reported in https://elixirforum.com/t/error-in-mixproject-with-elixirls/57099

@ndrean
Copy link

ndrean commented Jul 20, 2023

It still happens on a regular basis. The detail is below. The current solution is to erase/reinstall or restart Language server.

an exception was raised:
    ** (RuntimeError) build without intercepted logger []
        (language_server 0.15.1) lib/language_server/build.ex:109: ElixirLS.LanguageServer.Build.reload_project/0
        (language_server 0.15.1) lib/language_server/build.ex:20: anonymous fn/3 in ElixirLS.LanguageServer.Build.build/3
        (stdlib 5.0.2) timer.erl:270: :timer.tc/2
        (language_server 0.15.1) lib/language_server/build.ex:14: anonymous fn/3 in ElixirLS.LanguageServer.Build.build/3
        (kernel 9.0.2) global.erl:477: :global.trans/4ElixirLS
elixir -v
Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]
Elixir 1.15.4 (compiled with Erlang/OTP 26)

JakeBecker.elixir-ls

@lukaszsamson
Copy link
Collaborator Author

@ndrean Please post a minimal repro

@ndrean
Copy link

ndrean commented Aug 22, 2023

Looks like your update did the trick.

@lukaszsamson
Copy link
Collaborator Author

Looks like your update did the trick.

Good to hear that but I'd still want to know how the the language server ended up erroring in that place

@ndrean
Copy link

ndrean commented Aug 22, 2023

It didn't matter which repo I was working on, all had the same error, so a minimal repo didn't make sense. Now it's just gone. Must have been the Elixir version?

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

No branches or pull requests

2 participants