elixir-lsp / coc-elixir

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

coc-elixir is not working #17

Closed eddy147 closed 4 years ago

eddy147 commented 4 years ago

Description None of the features of coc-elixir in neovim are working for me.

Reproduction steps

Screenshot from 2020-05-10 12-18-05

My setup Ubuntu v18.04 neovim v0.4.3 checkhealth is OK for coc

amiralies commented 4 years ago

Can you pase elixir output channel logs? :CocCommand workspace.showOutput elixir

eddy147 commented 4 years ago

[coc.nvim] Channel "elixir" not found ok that is at least clear there is something not right

amiralies commented 4 years ago

is coc-elixir available in :CocList extensions ?

eddy147 commented 4 years ago

(Thx for your swift response) Yes, attached screenshot: Screenshot from 2020-05-10 16-45-40

amiralies commented 4 years ago

Can you start server in command line ? i.e. running $ .config/coc/extensions/node_modules/coc-elixir/els-release/language_server.sh in shell

eddy147 commented 4 years ago

Screenshot from 2020-05-10 17-27-09 does this mean the server is running?

:CocCommand workspace.showOutput elixir gives the same output (channel not found)

amiralies commented 4 years ago

The output in shell means you can run the compiled server (which is shipping by coc-elixir) on your machine, The only thing I can think of now is that the file type is not correct. Try this: open your elixir file, enter :set ft=elixir and see if it works

eddy147 commented 4 years ago

That seemed to do the trick! Screenshot from 2020-05-10 18-02-26

Thank you so much for your time. One question I have left: Is it part of the coc-elixir to see syntax coloring or should I do that with a different setting/plugin? Thx again

amiralies commented 4 years ago

You have to install vim-elixir for syntax highlights. It also fixes your filetype problem

eddy147 commented 4 years ago

Thx so much! 👍