Closed bigardone closed 1 year ago
👆 came here to report this as well. (happening with nvim-lspconfig too, not just coc.nvim).
Have you tried rebuilding elixir-ls? I cannot reproduce that.
@scohen There may be some issues with protocol consolidation after all
This isn't due to protocol consolidation, it's due to a project's builds tainting elixir_ls's modules. When a project builds, it overwrites all the enumerable protocols that elixir_ls outputs. I removed document's protocol implementations because of this, as there's no way to work around this reliably. Landing https://github.com/elixir-lsp/elixir-ls/pull/773/files will fix this, though I'm struggling to understand how the experimental protocol was enabled in the first place.
Maybe we should disable protocol consolidation on the project build?
hmm, interesting, I don't know if that'll fix it, because it will re-make the protocol dispatch module, which might have the same effect as consolidation.
Now that I'm thinking a bit more, the default build mix env is test
, which by default doesn't consolidate protocols.
The fix is to carry forward without document defining the Enum protocol (which is a crying shame, because that's so convenient)
I, too, came to report this. Doom emacs on Ubuntu; asdf: 1.14.0-otp-25 Tried rebuilding - there are various warnings - but I'm new to this game. Crashes whenever a character is input.
I'm struggling to understand how the experimental protocol was enabled in the first place
@scohen Experimental.Server
is started as an app child and PacketRouter
was dispatching messages to both old and experimental servers. I disabled the experimental one for now.
Thanks for the fix - working now.
Environment
Current behavior
An error saying that Elixir LS has crashed rises every time I open an Elixir file.
Expected behavior
The server shouldn't crash.