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 #41

Closed andrepaes closed 3 years ago

andrepaes commented 3 years ago

It seems only go to definition not work here.

This is my configs:

Screen Shot 2020-11-15 at 20 36 54 Screen Shot 2020-11-15 at 20 37 28

It's very strange as the other features work properly but when i try to <C-]> it shows me a messages:

Screen Shot 2020-11-15 at 20 40 07

Can someone help me? Thanks in advance

soundmonster commented 3 years ago

Go to definition stopped working for me too, after I updated elixir-ls and cos-elixir to the latest versions on Nov 16.

Edit: I've rebuilt Elixir-LS using my local Elixir/OTP versions, purged the .elixir_ls folders in my projects, and go to definition works again now!

camilacremoneze commented 3 years ago

I am not sure if this happens to u as well. I have different Elixir projects/versions and for some of them go to definition works, but for others does not. I have the same Andrepaes config and I have already rebuilt .elixir_ls following this thread https://github.com/elixir-lsp/coc-elixir/issues/1. Funny thing is that the projects in which go to definition works is not the same always, it seems it depends of the elixir version in which you compile .elixir_ls. Anyone can help me here? I have tried also to build an script to recompile .elixir_ls every time I access a different project, but it doesnt seem this is the way to go. Thanks.

andrepaes commented 3 years ago

@soundmonster @camilacremoneze have u found a solution?

andrepaes commented 3 years ago

i have found this article with something that maybe could be in the project readme. putting this into the init.vim worked fine for me: nmap gd (coc-definition)