-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Jedi only recognizes first of intersecting implicit namespace packages on PYTHONPATH #1759
Comments
I'm pretty sure this is just a bug. Thanks for the investigation. I think with the amount of investigation you should probably also be able to fix it yourself :). The import code is a bit complicated, because I'm using the
Since debugging of this can be a bit hard, because this runs in a subprocess, I would recommend you use |
Thanks for the pointer! I have a quick patch on my fork that ... does not locate the changes in the place you mentioned. I'll take a closer look and see if I can fix from within ImplicitNSInfo |
The following PR fixes this bug: #1784 |
If multiple implicit namespaces packages share a common path, but are located in two different directories on disk, recent versions of Jedi return completions for only the first package found in in the search path. For example, given two PEP420 packages with a common prefix, but different locations like:
then completions are only produced for the first package found, Goto only works for that package, etc e.g.
While the example is contrived, this situation comes up in real usage when multiple PEP420 packages are installed as editable.
This appears to mirror same issue for old-style namespace packages (#1105) - hopefully the fix is as simple?
A complete reproducible example:
Versions:
MacOS 11.2.3
Python 3.9.2
Jedi 0.18.0, current master
The text was updated successfully, but these errors were encountered: