Closed aegatlin closed 3 years ago
When trying manual server. please check if language server script exists (/Users/[my comp's name]/.elixir_ls/release/language_server.sh
in your first snippet).
You can also download a relaese from here https://github.com/elixir-lsp/elixir-ls/releases/tag/v0.7.0
It existed. I checked every time and it was there. I couldn't make much sense of the file, but it was there. Can share if you'd like
it's strange. I've released a new version with latest language server to npm can you try that?
Yeah, you fixed it! :D v7 seems to have solved the problem.
For posterity: All I did was run :CocUpdate (outside of my elixir project, just to be safe). It showed that it updated to v7, and it then successfully reported a warning. So everything seems fine.
I'll close the issue for now, and will comment here again if it comes back. Thanks for the speedy replies!
I upgraded to Elixir 1.12 via asdf, and erlang 24. The LS stopped working. I came here and found the manual solution. I tried it. It started failing for a different reason. I rolled back in
~/.elixir-ls/...
to the asdf lang versions you recommend in the manual solution file.release-tool-versions
. I copied it directly to a local.tool-versions
and installed them via asdf. It still didn't work. Here is the output from :CocOpenLog. The error was the same no matter the lang versions I used:I've never personally used the
spawn
command, so I'm pretty lost as to what's wrong here, and can't debug myself. I'm on zsh and there is nospawn
executable in my path.For additional context, when I reset (so, deleted
~/.elixir-ls
, wiped my local/.elixir-ls/
in my codebase) and opened VSCode, it worked just fine. It created the local/.elixir-ls
and also showed some warnings, etc. Then when I opened it in vim, it errored out again in the original way, with:CocOpenLog
giving no real debug info...And with
:CocCommand workspace.showOutput
giving the following multiple times before choosing not to attempt another restart (I'm omitting seemingly repeated stack traces):