pappasam / coc-jedi

coc.nvim wrapper for https://github.com/pappasam/jedi-language-server
MIT License
229 stars 9 forks source link

No completion for non-stdlib packages (in pipenv) #62

Open themightyoarfish opened 1 year ago

themightyoarfish commented 1 year ago

I must be doing something totally wrong, but after CocInstall coc-jedi and placing this in my init.vim (using dein package manager)

call dein#add('pappasam/coc-jedi', { 'build': 'yarn install --frozen-lockfile && yarn build', 'branch': 'main' })

I get some suggestions for e.g. standard imports

image

However I get nothing for non-standard packages installed via pip inside the current virtualenv, or pipenv.

What steps should I take here to investigate this? Is it related to the python interpreter used by neovim?

This is on macos and the neovim version is

NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

Are there any diagnostics I can look at to sort this out?

themightyoarfish commented 1 year ago

I now installed jedi-language-server inside the virtualenv currently activated, and now I do get some suggestions, even though they take a while to show up.

However, this does not work inside pipenv. I'm not sure if there's a special relationship between the virtualenv and my neovim install, but I'm not sure where to look for problems.

osnieltx commented 5 months ago

Same here, using pyenv I don't get the completions