Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
randomic opened this issue Mar 28, 2018 · 2 comments · Fixed by #2
Closed

Comments

@randomic
Copy link

randomic commented Mar 28, 2018

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

@randomic
Copy link
Author

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

@brettcannon
Copy link
Member

Yep, this would be the same.

@brettcannon brettcannon 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 Mar 28, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants