Skip to content

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

@randomic

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

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