elixir-lsp / coc-elixir

Elixir language server extension based on elixir-ls for coc.nvim
MIT License
168 stars 11 forks source link

Go to definition not working with `elixir_ls` `v0.9.0` #65

Closed tdtadeu closed 2 years ago

tdtadeu commented 2 years ago

Installed plugins:

Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'elixir-lsp/coc-elixir', {'do': 'yarn install && yarn prepack'}

ElixirLS installation:

I installed elixir_ls from source following the Server fails to start procedure we have in our README. Following that installs version 0.9.0.

Problem:

With that setup go to definition does not work and displays the error [coc.nvim] definition not found.

The language server output - CocCommand workspace.showOutput elixir - is clear of errors, it shows that ElixirLS v0.9.0 has started, all Elixir and Erlang/OTP versions match those I have on my machine and MIX ENV and MIX TARGET also do.

If I run :CocList services I can see elixir listed as [running].

Downgrading elixir_ls to v0.7.0 solves the issue.

Environment:

NVIM: v0.6.0 Node: 17.2.0 Elixir: 1.13.1 Erlang/OTP: 24.1.4

tdtadeu commented 2 years ago

This is awkward 🤔

Now I'm trying to reproduce the problem and I can't. I started upgrading from 0.7.0, going through each minor version until I reached 0.9.0 and it works fine now. I also built elixir_ls from master and it's still working without a problem now.

I don't know what the problem was before, but it seems to have resolved itself.