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 doesn't autocomplete if package names are repeated in different packages #178

Closed
DonJayamanne opened this issue Nov 14, 2017 · 4 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@DonJayamanne
Copy link

From @kostub on September 13, 2017 22:10

Environment data

VS Code version: 1.16.0
Python Extension version: 0.7.0
Python Version: 2.7.12
OS and version: MacOS Sierra 10.12.6

Steps to reproduce:

  • Create a directory with two packages foo and test
  • Inside foo create a file bar.py
  • Inside the test directory create another package foo
  • Inside test/foo create a file gaz.py

So the directory structure is like:

foo
|--> __init__.py
|--> bar.py
test
|-->__init__.py
|--> foo
     |--> __init__.py
     |--> gaz.py

Open a new file in test/foo directory. Say test/foo/run.py

Add the following code:

from __future__ import absolute_import

Start typing import foo.

Actual behavior

The only autocomplete option shown is gaz

Expected behavior

Expected bar to be shown in the dropdown. Especially when absolute import is being used.
In fact import foo.gaz is probably incorrect since it is not a valid relative import either.

Logs

Output from Python output panel
None

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

Copied from original issue: DonJayamanne/pythonVSCode#1211

@brettcannon brettcannon added awaiting 1-verification area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug labels Nov 14, 2017
@DonJayamanne DonJayamanne added this to the January 2018 milestone Dec 20, 2017
@MikhailArkhipov
Copy link

davidhalter/jedi#773

@brettcannon
Copy link
Member

Fixed by our Jedi 0.12.0 upgrade.

@ghost
Copy link

ghost commented Jun 21, 2018

@brettcannon on 2018.6.0 and this still doesn't seem to work.

@brettcannon
Copy link
Member

@rainyday please open a new issue.

@microsoft microsoft locked as resolved and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants