neoclide / coc-python

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

Autocompletion through Coc vs VS Code #321

Open iukej opened 3 years ago

iukej commented 3 years ago

Hi all,

1) When putting Coc side by side with VS Code, the same (local, not standard Python package) has a different set of autocomplete suggestions. Coc has a handful of the correct module.

LHS is Coc, RHS is VS Code. As you can see, the Python paths are identical, they both point to

"/Users/username/anaconda3"

coc_nvim_against_vscode_codecomplete_redac

2) It's extremely slow to autocomplete.

When I set python.pythonPath as "/Users/username/anaconda3/bin/python" (at python itself), it's extremely fast but only includes packages that come with MPLS. To get everything else, I've appended

"/Users/username/anaconda3/lib/python3.7/site-packages"

to python.autoComplete.extraPaths, and it becomes just as slow as using the original

"/Users/username/anaconda3" within the python.pythonPATH.

I've attached a snapshot of :CocInfo in case it's helpful for context.

brokenautocomplete_redac
chemzqm commented 3 years ago

Sorry, I can't fix those issues with coc-python

chemzqm commented 3 years ago

Try other alternatives