Skip to content

Intellisense shows wrong autocomplete if module names are the same as one from the stdlib #1228

Closed

Description

@randomic

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.2.1
  • OS and version: macOS Sierra 10.12.6
  • Python version: 3.6.4
  • Type of virtual environment used: venv

Steps to reproduce:

  1. Create a directory with one package foo
  2. Inside foo, create a file named the same as a builtin (or 3rd party library). Say json.py
  3. Inside foo, open a new file inside bar.py
  4. Start typing import json.

Actual behavior

No intellisense autocomplete popup appears.

Expected behavior

Intellisense autocomplete popup listing {} encoder, {} decoder, {} scanner, {} tests and {} tool should appear.

Logs

Output from Python output panel
None

Output from Console window (Help->Developer Tools menu)
None

Activity

  1. randomic commented on Mar 28, 2018

    @randomic
    Author

    This seems very similar to #178 , could they have the same cause?

  2. brettcannon commented on Mar 28, 2018

    @brettcannon
    Member

    Yep, this would be the same.

  3. changed the title [-]Intellisense shows wrong autocomplete if module names are the same as builtins[/-] [+]Intellisense shows wrong autocomplete if module names are the same as one from the stdlib[/+] on Mar 28, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions