Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hints, Suggestions, Autocomplete not working for numpy, matplotlib... #14686

Closed
ShlomiRex opened this issue Nov 10, 2020 · 17 comments
Closed

Hints, Suggestions, Autocomplete not working for numpy, matplotlib... #14686

ShlomiRex opened this issue Nov 10, 2020 · 17 comments
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug investigating We are looking into the cause of the issue

Comments

@ShlomiRex
Copy link

test

Environment data

  • VS Code version: 1.50.1
  • Extension version (available under the Extensions sidebar): Microsoft Python v2020.10.332292344
  • OS and version: Windows, Linux, macOS (all of them same problem)
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.2 64 bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv (with numpy installed)
  • Relevant/affected Python packages and their versions: any external package (numpy, matplotlib...)
  • Relevant/affected Python-related VS Code extensions and their versions: Microsoft Python v2020.10.332292344
  • Value of the python.languageServer setting: ?

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

I installed Pylance as suggested above, still same problem

Expected behaviour

Show documentation or function parameters for numpy.array

Actual behaviour

No showing anything

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Press CTRL+SPACE
@ShlomiRex ShlomiRex added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Nov 10, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Nov 10, 2020
@ericsnowcurrently ericsnowcurrently added area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. investigating We are looking into the cause of the issue and removed triage labels Nov 11, 2020
@ericsnowcurrently
Copy link
Member

Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority.

If you think your issue is more of a question or configuration problem rather than a bug, please ask on Stack Overflow with the visual-studio-code and python labels for help.

Thanks for your understanding and patience!

@vdobrovolskii
Copy link

Hi, can confirm this also affects me — after the update autocompletion for pytorch and numpy stopped working. Same vscode / python extension versions as for the topic starter

@JanHomann
Copy link

JanHomann commented Nov 13, 2020

I can also confirm the issue. Matplotlib seems to be okay. Pandas is fine too on my end.
Actually, it only doesn't seem to work with np.array. All other np functions seem to work. Also, it seems like from the symbol that np.array is not identified as function, but 'import'.

image

image

Python extension version: v2020.11.358366026

VSCode:
Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-11T01:11:34.018Z

numpy 1.16.6

Python 3.7.4

Value of the python.languageServer setting: Pylance and Microsoft language server are affected.

@VitaliiUr
Copy link

I have the same problem

@shraddhazpy
Copy link

Suggestions and autocomplete not working for me either

@BenjaminJenney
Copy link

Not working for me as well!

@aamattos
Copy link

aamattos commented Feb 9, 2021

Same problem here

@enkeyz
Copy link

enkeyz commented Feb 9, 2021

Same problem.

@jcntrl
Copy link

jcntrl commented Feb 11, 2021

Can confirm this is an issue for me as well. Seems to be isolated to numpy module but inconsistently as some functions within numpy work; other modules' Intellisense works ok.

MacOS v11.2.
VSCode v1.53.1
Python3 (several versions)

Screen Shot 2021-02-11 at 08 51 04

Screen Shot 2021-02-11 at 08 45 31

Screen Shot 2021-02-11 at 08 48 19

Screen Shot 2021-02-11 at 08 46 17

@uluturki
Copy link

I am having the same issue with numpy, and scipy. I'm using VSCode from Windows with WSL2 and use conda as the package manager if it's relevant. I'll come back to edit this message with details when I get a chance.

@thsubaku9
Copy link

Came here to report the same issue. Using vscode on M1 Mac Air and certain functions just aren't showing up in auto prompt (for e.g. frexp and ldexp)

@AabyWan
Copy link

AabyWan commented Mar 18, 2021

Observing the same issues where some numpy functions seems to not work.

  • Python 3.8.5

  • numpy 1.20.1

  • VScode Version: 1.54.3
    Electron: 11.3.0
    Chrome: 87.0.4280.141
    Node.js: 12.18.3
    V8: 8.7.220.31-electron.0
    OS: Windows_NT x64 10.0.21332

test

@kimadeline
Copy link

Which language server are you using?

@kimadeline kimadeline added info-needed Issue requires more information from poster triage and removed investigating We are looking into the cause of the issue labels Mar 23, 2021
@ShlomiRex
Copy link
Author

ShlomiRex commented Mar 24, 2021

Which language server are you using?

Hi. After almost half a year and this issue still open.
Currently, I don't experience the same problem. (I changed python, installed new os, new vscode...)
So I may want to ask the people who got the same problem to contribute their language setting.

So, please replay with your python language setting:
@AabyWan
@thsubaku9
@uluturki
@jcntrl
@enkeyz
@aamattos
@BenjaminJenney
@shraddhazpy
@VitaliiUr
@vdobrovolskii

@JanHomann Says:

Value of the python.languageServer setting: Pylance and Microsoft language server are affected.

@Aman-A
Copy link

Aman-A commented Mar 25, 2021

Not one of the previous people, but I'm experiencing (I think) the same problem, with all python packages at the moment. All intellisense hints/suggestsions/autocomplete are stuck on "loading".
Screen Shot 2021-03-25 at 7 27 01 PM
Screen Shot 2021-03-25 at 7 27 54 PM

Even "go to definition" gets stuck both for functions from packages (e.g. numpy), as well as functions defined in the same directory. The blue line loading animation at the top of the window just keeps going for a while before it seems to give up.

I just upgraded to VSCode 1.54.3, which I think initiated the problem. I'm on macOS Mojave (10.14.6) and using miniconda3 with conda environments. The environment seems to load fine, and the linter seems to be aware of which packages are installed. Using Jedi for python language server (version 0.18.0), pylint version 2.7.2. And Linting for python is enabled in my User and Workspace settings.json.

@AabyWan
Copy link

AabyWan commented Mar 31, 2021

Which language server are you using?

@ShlomiRex @kimadeline

I use the following language server:

Name: Pylance
Id: ms-python.vscode-pylance
Description: A performant, feature-rich language server for Python in VS Code
Version: 2021.3.3
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance

@kimadeline kimadeline removed the info-needed Issue requires more information from poster label Apr 6, 2021
@kimadeline kimadeline added investigating We are looking into the cause of the issue and removed triage labels Apr 6, 2021
@kimadeline
Copy link

There are known issues with Pylance:

Please follow these issues, since the stubs are provided/used by Pylance.

@Aman-A, please open a separate issue, since it sounds like nothing was working, instead of incomplete autocompletions.

Closing since the original issue was resolved.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug investigating We are looking into the cause of the issue
Projects
None yet
Development

No branches or pull requests