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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relative import 'Go to definition' is wrong when the folder matches an upstream folder #2450
Extension version (available under the Extensions sidebar): 2018.7.1
OS and version: macOS High Sierra 10.13.6
Python version (& distribution if applicable, e.g. Anaconda): 2.7.10
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
Relevant/affected Python packages and their versions: N/A
Actual behavior
'Go to definition' looks in the wrong path when the file's folder matches the name of an upstream folder. For example, relative imports for api/whatever/api_test1.py resolves to whatever/ not api/whatever.
Expected behavior
'Go to definition' looks in the current directory for imports.
Steps to reproduce:
Open a new workspace with the following directory structure:
Activity
brettcannon commentedon Aug 29, 2018
I've reported this bug upstream to Jedi. Here are the example files for easier testing:
example.zip
tejajrk commentedon Feb 26, 2019
I am still facing this issue. Is it fixed?
brettcannon commentedon Feb 27, 2019
tejajrk please check the upstream issue that is referenced in the issue.
brettcannon commentedon Jul 29, 2019
Closing as this is an upstream issue which we don't have direct control or influence over.