Skip to content

The intellisense is not work in this case #181

Closed

Description

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

Activity

  1. MikhailArkhipov commented on Feb 12, 2018

    @MikhailArkhipov

    With jedi 0.11.1 it seems to be OK.
    #674

    image

  2. segevfiner commented on Feb 12, 2018

    @segevfiner

    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

  3. MikhailArkhipov commented on Feb 13, 2018

    @MikhailArkhipov
  4. segevfiner commented on Feb 15, 2018

    @segevfiner

    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.

  5. zhoudotnet commented on May 17, 2018

    @zhoudotnet

    What's the current progress for this ticket?

  6. brettcannon commented on May 17, 2018

    @brettcannon
    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.

  7. locked as resolved and limited conversation to collaborators on Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions