X Tutup
The Wayback Machine - https://web.archive.org/web/20190301065525/https://github.com/Microsoft/vscode-python/issues/1228
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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Copy link
Author

randomic commented Mar 28, 2018

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

@brettcannon

This comment has been minimized.

Copy link
Member

brettcannon commented Mar 28, 2018

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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
X Tutup