-
-
Notifications
You must be signed in to change notification settings - Fork 368
Open
Description
I'm having trouble with discovery of .pyi stub files that live in a different folder from the .py source file.
Here is an example that works as expected:
.
├── code
│ ├── foo.py
│ └── foo.pyi
└── main.py
If I set the environment variable PYTHONPATH=code and if main.py contains the line from foo import bar, then jedi#goto_stubs() works as expected (it finds the definition of bar in code/foo.pyi).
Here is an example that is not working:
I am having problems when the file layout looks like this:
.
├── code
│ └── foo.py
├── stubs
│ └── foo.pyi
└── main.py
In this situation, jedi#goto_stubs() does not work.
I have tried the following environment variable settings:
PYTHONPATH=code:stubsPYTHONPATH=code MYPYPATH=stubs
I would expect that the .pyi file can be discovered as long as it is discoverable on PYTHONPATH or MYPYPATH, but this seems not to be the case.
Metadata
Metadata
Assignees
Labels
No labels