Skip to content

glob is not been recognized if in a for def #338

Closed

Description

@jcrmatos

Environment data

VS Code version: 1.18.1
Python Extension version: 0.8.0
Python Version: CPython 3.5.4 32b
OS and version: Windows 7 Pro SP1 x64

Actual behavior

for file in glob(bdexp.TEMP_DIR + '*.pdf'):  # type: str
    remove(file)
a = glob(bdexp.TEMP_DIR + '*.pdf')

On the above lines if I put the mouse cursor over the 1st glob (on the for def) Intellisense shows the def for str.
If I put the mouse cursor over the 2nd glob Intellisense shows the glob def.

Expected behavior

Intellisense should show the glob def for both situations.

Thanks,

JM

Activity

  1. MikhailArkhipov commented on Jan 11, 2018

    @MikhailArkhipov

    Most probably same as #142.

  2. DonJayamanne commented on Jan 11, 2018

    @DonJayamanne

    Works for me on my Mac and not on Windows.

  3. added a commit that references this issue on Apr 19, 2018
  4. locked as resolved and limited conversation to collaborators on Jul 11, 2018
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