neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

Jedi ignores extra paths #230

Closed radimsuckr closed 4 years ago

radimsuckr commented 4 years ago

I've got following extra paths configuration in my CocConfig.

"python.autoComplete.extraPaths": [
    "./var/site-packages"
]

But Jedi ignores this as an extra path while MPLS works just fine with it. How do I configure Jedi autocompletion to use relative directories for autocompletion? I've got Jedi in version 0.17.0-1.

theangryangel commented 4 years ago

The fix was merged into master under https://github.com/neoclide/coc-python/pull/201, but it's not been released yet.

If you need to run with this fix, until coc-python has a release, the following should work

  1. Install coc-python like normal
  2. Head to your ~/.config/coc/extensions/node_modules/coc-python directory
  3. wget https://patch-diff.githubusercontent.com/raw/neoclide/coc-python/pull/201.patch
  4. patch -p 1 < 201.patch && rm 201.patch
  5. Restart nvim if it was already running

Alternatively you can run from master

radimsuckr commented 4 years ago

Hi @theangryangel, I applied the patch and it works just fine now, thank you!

I hope new release with this fix will come very soon. 🙂