neoclide / coc-python

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

Getting completion for imports but not for user-created variables #234

Open Roulbac opened 4 years ago

Roulbac commented 4 years ago

I am using the Microsoft Python language server. Completion works fine for imports. When I create a variable in my script however, the completer doesn't detect it's type and show relevant completion.

Example

import matplotlib.pyplot as plt
fig, ax  = plt.subplots() # <-------- Completion worked fine
ax.... # <------- No completion here
rbhanot4739 commented 4 years ago

I also faced the same issue.

Roulbac commented 4 years ago

After further testing it turns out that this happens for some packages, not all. Matplotlib is one of them. OpenCV too.