-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Implicit namespace package leads to autocompleter crash in IPython #2044
Comments
FYI, the bug is triggered inside the method It is caused by the fact that in the scenario described above, the value of |
It makes sense that that would be involved, but since we don't have the traceback it's kind of hard to say what happens and where we should change something. |
@davidhalter Agreed. I (briefly) played with it locally and tried to simply return My main blocker for going further was that I didn't know how to set up automated tests that reproduce this bug so that I could investigate efficiently. I found a few locations for different kinds of tests around namespace packages but didn't have time to dig deeper. Are you able to point me to an example test that I can copy? Otherwise, which additional information would be useful to debug this further? |
You probably need to use something like |
Thanks for the pointers @davidhalter. I created draft PR #2045 which adds a regression test for the crash described above. Strangely, the test itself passes. But when I run a script with (seemingly) identical behaviour from an interactive IPython session, it still exhibits the error. See the PR description for details. I suspect that there are subtle differences in my test setup compared to a "real" IPython session, but I don't have enough knowledge of jedi's internals to figure out what I'm doing wrong. Is there anything obvious that sticks out to you? Many thanks! |
Versions:
Given the following directory structure:
The following produces an error when trying to use tab completion in step 5:
Error message:
The text was updated successfully, but these errors were encountered: