-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Intellisense for site-packages doesn't work as intended #720
Comments
@frynio
@kjgfcdb Please could you too install the Insiders build of the extension. NOTE: I'm not referring to the Insiders Build of VS Code. |
@DonJayamanne Unfortunately the Insiders build of the extension still fails to fix this problem, here is the screen shot. Interpreter: 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. import numpy as np
np. |
@frynio I unfortunately can't directly reproduce: I did have to wait for the Jedi cache to warm up, though. @kjgfcdb What version of NumPy are you running? For me on CPython 3.6.3 and numpy 1.14.1 I am getting intellisense. |
@kjgfcdb |
@brettcannon The NumPy that I am running is numpy 1.14.1. |
@kjgfcdb
import jedi
source = """
import numpy as np
np.
"""
script = jedi.Script(source=source, line=3, column=3, path='one.py')
completions = script.completions()
print(len(completions)) |
@DonJayamanne OK, the output is |
I still can't reproduce, even with |
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 |
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. |
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:
train_data
or anything. The pop-up showed up, because after writing a dot I pressed Ctrl+SpaceIt 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:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: