microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
910 stars 130 forks source link

Python Intellisense not showing all module members/function arguments #2018

Open Tokusei opened 4 years ago

Tokusei commented 4 years ago

Environment data

Expected behaviour

Accessing package namespace should list all the member classess/functions, and display autocomplete information, such as function signatures and relevant documentation

Actual behaviour

import numpy as np 
np...

this should list all class members, In this case intellisense shows the autocomplete dialogue but some class members are missing (Classes, Funcs etc) np.array is missing.

after entering a class which is not listed in the autocomplete dialogue, a list of members will display (also partially incomplete)


#No autocomplete dialogue for function params
np.character.cumprod()
np.arange(..

pressing ctrl+space will just show suggested function arguments, but no function signature/doc window(not sure what this is called) will show

Edit: I should make clear that most classes/functions are showing for a module, but some are missing, If I type them in anyway, Then it will load and display their members.

Also, Most functions are displaying the signature/input arg window, but some of them are not for example np.array() and np.arange() will not display function arguments when autocompleted. np.delete() will display its arguments

Steps to reproduce:

Using the platform configuration listed above

Tokusei commented 4 years ago

Hi, I have installed kite and the autocomplete functionality seems robust when writing .py files, However it seems that it is not able to run in a .ipynb notebook file, and the notebooks still have missing members and signatures

jakebailey commented 4 years ago

Please provide the info as in: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue

May be similar to #1847.