Skip to content

No autocomplete/intellisense for new variables created in async functions #140

Closed

Description

From Yezhou (@applearound) on July 14, 2017 21:18

Environment data

VS Code version: 1.14.1
Python Extension version: 0.6.7
Python Version: 3.6.1
OS and version: Windows 10 Professional 1703

Actual behavior

Define an async function.
Define some variables in the function.
Try to use them below but no autocomplete for them.
And the variables outside the function work fine.

Like:
2017-07-15_05-08-58

Logs

VS Code doesn't show any error logs.

Copied from original issue: DonJayamanne/pythonVSCode#1084

Activity

  1. MikhailArkhipov commented on Dec 12, 2017

    @MikhailArkhipov

    I see
    image

  2. brettcannon commented on Dec 12, 2017

    @brettcannon
    Member

    Closing as fixed. 😄

  3. 15 remaining items

  4. brettcannon commented on Apr 19, 2018

    @brettcannon
    Member

    I'm finally able to reproduce after our Jedi 0.12.0 upgrade.

    var1 = 42
    
    async def foo():
        var2 = False
        var  # Only lists var1.
  5. brettcannon commented on Apr 19, 2018

    @brettcannon
    Member

    I have reported this upstream to Jedi.

  6. JesseTG commented on Sep 23, 2018

    @JesseTG

    It looks like this has been fixed upstream, but you'll need to update your installation of jedi.

  7. brettcannon commented on Jul 29, 2019

    @brettcannon
    Member

    Closing as this is an upstream issue which we don't have direct control or influence over.

  8. locked as resolved and limited conversation to collaborators on Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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