next-ls icon indicating copy to clipboard operation
next-ls copied to clipboard

Task terminating

Open tcoopman opened this issue 8 months ago • 2 comments

I wanted to test out next-ls in helix, but I can't seem to get it to work, this is what I get in my logs:

2023-10-25T15:36:59.573 helix_lsp::transport [ERROR] nextls err: <- StreamClosed
2023-10-25T15:37:02.285 helix_term::application [ERROR] received malformed notification from Language Server: Unhandled
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "15:37:02.169 [error] Task #PID<0.215.0> started from #PID<0.193.0> terminating\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "** (stop) exited in: GenServer.call(#PID<0.205.0>, {:compile, [force: false]}, :infinity)\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "    ** (EXIT) shutdown: :nodedown\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "    (elixir 1.15.6) lib/gen_server.ex:1074: GenServer.call/3\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "    (next_ls 0.14.1) lib/next_ls.ex:880: anonymous fn/3 in NextLS.handle_info/2\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "    (elixir 1.15.6) lib/task/supervised.ex:101: Task.Supervised.invoke_mfa/2\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "    (elixir 1.15.6) lib/task/supervised.ex:36: Task.Supervised.reply/4\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "Function: #Function<1.27393220/0 in NextLS.handle_info/2>\n"
2023-10-25T15:37:02.285 helix_lsp::transport [ERROR] nextls err <- "    Args: []\n"

I'm on Mac, elixir 1.15.6, nextls from git (just compiled with flake.nix) Deleted the _build and .elixir-tools folders but that didn't help.

All Go to definition requests fail with: "No definition found"

tcoopman avatar Oct 25 '23 13:10 tcoopman

Hmm, that message should have been printed to stderr, which helix should be ignoring.

I'll try to reproduce to confirm my suspicion.

Thanks for the report!

mhanberg avatar Oct 25 '23 14:10 mhanberg

If you have anything you want me to try let me know

tcoopman avatar Oct 25 '23 14:10 tcoopman