Recently I switched over to coc.nvim, and when trying to edit a Python file, I encountered the following error:
[coc.nvim]: UnhandledRejection: Launching server "jedi" using command jedi-language-server failed.
The first problem turned out to be that while I had jedi installed, I didn’t install jedi-language-server. This can be done using:
pip install -u jedi-language-server
Next, coc.nvim
couldn’t find the jedi-language-server
executable, despite it being on my $PATH. The solution was to specifically define it in ~/.vim/coc-settings.json
:
{
"jedi.executable.command": "/home/guyru/.local/bin/jedi-language-server",
}
Currently I’m removing coc.nvim from my neovim (https://github.com/ik5/dotvim/tree/devel/no_coc).
It takes too much resources, but fails with LSP (not just Jedi).
For example it executed each LSP server more than once, if I opened few editors of the same language (not the same project).