pappasam / coc-jedi

coc.nvim wrapper for https://github.com/pappasam/jedi-language-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default POSIX installation may not work perfectly for Conda

pappasam opened this issue · comments

@hanspinckaers this is the shell command we currently run to set up a virtualenv-friendly jedi-language-server: https://github.com/pappasam/coc-jedi/blob/master/src/jlsExecutable.ts#L46

This may related to this issue: davidhalter/jedi#1540

Eg, could be fixed with the next Jedi release.

I will test it as soon as that commit is in a release!

@hanspinckaers would you be able to test if the latest release fixes this issue for you?

I updated jedi, reinstalled coc-jedi, coc-jedi installed the jedi-language-server successfully. But sadly, no completions for numpy or other packages installed by conda.

Oh well... at least we're on the latest version!

@hanspinckaers question: how does Conda manage virtual environments? If it's different than cpython, maybe we'll need to create a conda-compatible virtualenv creator function...

Hi @pappasam, Sorry, I don't know exactly how Conda manages the environments. I'm pretty sure it just changes PYTHONPATH when switching environments, although I'm not sure if that's what you mean.