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

ElixirLS crashes in Zed #1112

Closed
PJUllrich opened this issue Aug 7, 2024 · 4 comments
Closed

ElixirLS crashes in Zed #1112

PJUllrich opened this issue Aug 7, 2024 · 4 comments

Comments

@PJUllrich
Copy link

Environment

  • Elixir & Erlang versions (elixir --version): 1.17.1-otp-27 & 27.0
  • Elixir Language Server version: 0.23.0
  • Operating system: macOS
  • Editor or IDE name (e.g. Emacs/VSCode): Zed
  • Editor Plugin/LSP Client name and version: ElixirLS 0.23.0

Current behavior

ElixirLS crashes on startup. This is the log

2024-08-07T13:13:45.805717Z [INFO] Language server with id 1 sent unhandled notification telemetry/event:
{
  "name": "lsp_request",
  "measurements": {
    "elixir_ls.lsp_request_time": 0
  },
  "properties": {
    "elixir_ls.elixir_release": "1.17",
    "elixir_ls.elixir_version": "1.17.1",
    "elixir_ls.erts_version": "15.0",
    "elixir_ls.lsp_command": "textDocument_codeAction",
    "elixir_ls.mix_env": "test",
    "elixir_ls.mix_target": "host",
    "elixir_ls.otp_release": "27"
  }
}
2024-08-07T13:13:46.970159Z [WARN] Generic lsp request to ElixirLS failed: {:DOWN, :code_server, {:get_object_code_for_loading, :idna}}
2024-08-07T13:13:46.97057Z [INFO] Language server with id 1 sent unhandled notification telemetry/event:
{
  "name": "lsp_request_error",
  "measurements": {},
  "properties": {
    "elixir_ls.elixir_release": "1.17",
    "elixir_ls.elixir_version": "1.17.1",
    "elixir_ls.erts_version": "15.0",
    "elixir_ls.lsp_command": "textDocument_completion",
    "elixir_ls.lsp_error": "internal_error",
    "elixir_ls.lsp_error_message": "{:DOWN, :code_server, {:get_object_code_for_loading, :idna}}",
    "elixir_ls.mix_env": "test",
    "elixir_ls.mix_target": "host",
    "elixir_ls.otp_release": "27"
  }
}
2024-08-07T13:13:46.979239Z [ERROR] invalid LSP message header "{removed_failing_handler,'Elixir.Logger.Backends.JsonRpc'}{removed_failing_handler,'Elixir.Logger.Backends.JsonRpc'}
2024-08-07 15:13:46.977747 {error,simple_handler_process_dead}
2024-08-07 15:13:46.977616 logger: removed_failing_handler handler: {'Elixir.Logger.Backends.JsonRpc','Elixir.Logger.Backends.JsonRpc'} log_event: #{meta=>#{line=>124,pid=><0.72.0>,time=>1723036426972265,file=>\"logger_backend.erl\",gl=><0.213.0>,mfa=>{logger_backend,handle_filter_failed,4},internal_log_event=>true},msg=>{report,[{logger,removed_failing_filter},{filter,{logger_translator,{fun 'Elixir.Logger.Utils':translator/2,#{otp=>true,sasl=>false,translators=>[{'Elixir.Logger.Translator',translate}]}}}},{owner,primary},{log_event,#{meta=>#{error_logger=>#{emulator=>true,tag=>error},pid=><0.50.0>,Content-Length: 364"

Expected behavior

@lukaszsamson
Copy link
Collaborator

Do you have a repro? Is it related to erlang/otp#8510? If the code_server crashes there's nothing we can do besides restarting the VM

@PJUllrich
Copy link
Author

Sorry, i don't really now. I'll close this one and will recheck it once the OTP bug is fixed. It if persists, I'll re-open this ticket. Thank you for your support! 💜

@josevalim
Copy link

Fixed in erlang/otp#8744

@guess
Copy link

guess commented Oct 25, 2024

Is there any workaround for this issue until it's merged? Or is it just use OTP26 for now?

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

No branches or pull requests

4 participants