Repository navigation
Intellisense for site-packages doesn't work as intended #720
Copy link
Copy link
Closed
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster
Description
Environment data
VS Code version: Newest
Python Extension version: 2018.1.0
Python Version: 3.6.4
OS and version: Windows 10 x64
Actual behavior
Intellisense does not work, sometimes partially work I guess
Expected behavior
Well I guess it should work all the time
Steps to reproduce:
- I opened a project dir in vs code
- I write a code like this:
- It doesn't even suggest
train_dataor anything. The pop-up showed up, because after writing a dot I pressed Ctrl+Space
It works good for my own classe (if I make some dummy class Foo then it shows available methods after the dot). It may sometimes show up but like after 5-10 seconds? I guess thats too much and I remember working with this extension without that trouble. It does something like this:
I tried it on multiple machines (with Linux too), fresh installations, new files/folders, nothing does work. My settings.json:
{
"editor.renderWhitespace": "all",
"window.zoomLevel": 0,
"vim.disableExtension": false,
// Python setting
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.pyc": true,
"**/*.idea": true,
"**/*.cache": true,
"**/*__pycache__": true
},
"workbench.editor.enablePreview": false,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"sync.autoDownload": true,
"sync.autoUpload": true,
"sync.forceDownload": false,
"sync.anonymousGist": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressUpdateNotice": false,
"suppressWelcomeNotice": true
},
"window.menuBarVisibility": "default",
"vim.otherModesKeyBindings": [
{
"before": [
"^"
],
"after": [
"z",
"z"
]
}
],
}
Am I doing something wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster


Activity
[-]Intellisense doesn't work[/-][+]Intellisense for site-packages doesn't work as intended[/+]kjgfcdb commentedon Feb 8, 2018
Same problem encountered.
Intelligence for function
opendoes not work.And this is what developer's tool shows

Is this the problem of my network?
DonJayamanne commentedon Feb 26, 2018
@frynio
The Python version will be displayed on the bottom left of the VS Code status bar.
Please check the tooltip to identify the path of the python interpreter.
pandasis installed in the Python interpreter used by VS Code (see above)We've fixed a number of issues related to intellisense and its possible this too has been resolved in the dev version (to be released within a week or so).
Chen Dengbo (@kjgfcdb) Please could you too install the Insiders build of the extension.
NOTE: I'm not referring to the Insiders Build of VS Code.
kjgfcdb commentedon Feb 27, 2018
Don Jayamanne (@DonJayamanne) Unfortunately the Insiders build of the extension still fails to fix this problem, here is the screen shot.

Interpreter:
python 3.5.2 (downloaded from python.org)
This problem occurs when I import the numpy library and type "np.". Then the intellisense crashes and error message appears in developer's tool again and again.
brettcannon commentedon Mar 1, 2018
@frynio I unfortunately can't directly reproduce:
I did have to wait for the Jedi cache to warm up, though.
Chen Dengbo (@kjgfcdb) What version of NumPy are you running? For me on CPython 3.6.3 and numpy 1.14.1 I am getting intellisense.
3 remaining items
DonJayamanne commentedon Mar 20, 2018
Chen Dengbo (@kjgfcdb)
Please could you try the following:
pip install jedikjgfcdb commentedon Mar 21, 2018
Don Jayamanne (@DonJayamanne) OK, the output is
912, and it seems that this problem only occurs when I usenumpy. For other packages likejedi,matplotliband so on, the intelligence works very well.brettcannon commentedon Apr 3, 2018
I still can't reproduce, even with
from numpy import *. Chen Dengbo (@kjgfcdb) do you have any sample code you can provide which consistently triggers this? Otherwise you can wait until our experimental analysis engine becomes available.julKali commentedon Apr 6, 2018
I can confirm this bug. For me it's not only numpy but also scipy and matplotlib (these are the ones I tested).
See this issue: microsoft/vscode#47360
brettcannon commentedon May 7, 2018
Closing due to lack of response for more info. If the info is provided in the future we will be happy to re-open this.