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

The intellisense is not work in this case #181

Closed
DonJayamanne opened this issue Nov 14, 2017 · 6 comments
Closed

The intellisense is not work in this case #181

DonJayamanne opened this issue Nov 14, 2017 · 6 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

Comments

@DonJayamanne
Copy link

DonJayamanne commented Nov 14, 2017

From @zhoudotnet on September 20, 2017 12:45

Environment data

VS Code version: 1.15
Python Extension version: 0.7
Python Version: 3.6
OS and version: win10

Actual behavior

I created 2 files: a.py and b.py.
b.py:

def Speak(self, id):
    pass

a.py:

import b
c1 = 1   # type: b
c2: b = 1

In a.py file, the pythonVSCode plugin can not identify c1, and there are no intellisense for c1. But the pythonVSCode plugin can identify c2, there are intellisense information for c2.

Copied from original issue: DonJayamanne/pythonVSCode#1223

@brettcannon brettcannon added awaiting 1-verification area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug labels Nov 14, 2017
@DonJayamanne DonJayamanne self-assigned this Jan 11, 2018
@MikhailArkhipov
Copy link

With jedi 0.11.1 it seems to be OK.
#674

image

@segevfiner
Copy link

I think the issue is with auto completing for c1 not for b. I don't think Jedi knows about pep 484 type comments. See davidhalter/jedi#946

@MikhailArkhipov
Copy link

6015468

@segevfiner
Copy link

I tried this in the latest master and the result I'm getting is that c1 is completed as an int (No support for PEP 484 type comments), c2 is not completed at all, and b is completed as an int!

Unless this extension does something to alter Jedi's behavior. This feels like a bug in Jedi (Jedi is supposed to handle [PEP 526](https://www.python.org/dev/peps/pep-0526/ but it seems to handle it wrong) and should probably be submitted as an issue upstream to Jedi.

@zhoudotnet
Copy link

What's the current progress for this ticket?

@brettcannon
Copy link
Member

@zhoudotnet we closed it because we believed it was resolved with the latest release of Jedi. If you are having issues then please open a a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 10, 2018
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
Projects
None yet
Development

No branches or pull requests

5 participants