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

Replace Logger.warn with JsonRpc warning #109

Merged
merged 1 commit into from
Jan 30, 2020
Merged

Replace Logger.warn with JsonRpc warning #109

merged 1 commit into from
Jan 30, 2020

Conversation

axelson
Copy link
Member

@axelson axelson commented Jan 28, 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

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 axelson merged commit d8277fa into elixir-lsp:master Jan 30, 2020
@axelson axelson deleted the remove-logger-calls branch January 30, 2020 17:43
@hauleth
Copy link

hauleth commented Jan 30, 2020

How was that causing a problems? I cannot deduce that from the PR

@axelson
Copy link
Member Author

axelson commented Jan 30, 2020

Discussed this in the elixir slack, but the issue happens when you compile elixir-ls under 1.9 (or lower) and then run it on 1.10 (which has removed Logger.__should_log__/1)

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 this pull request may close these issues.

Exception from Logger when running on a 1.10 project
2 participants