python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

Python Intellisense not showing all module members/function arguments

Open Tokusei opened this issue 5 years ago • 2 comments

Environment data

  • VS Code version: 1.44.2
  • Python Extension version (available under the Extensions sidebar): 2020.5.76608-dev
  • IntelliCode Extension version (available under the Extensions sidebar): 1.2.6
  • OS and version: W10 18362.19h1
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.1/64Bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: numpy
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info microsoft/vscode-python#3977): No
  • Value of the python.languageServer setting: Microsoft

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 avatar Apr 30 '20 03:04 Tokusei

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

Tokusei avatar Apr 30 '20 07:04 Tokusei

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.

jakebailey avatar Apr 30 '20 17:04 jakebailey