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
The following produces an error when trying to use tab completion in step 5:
$ ipython --Completer.debug=True
Python 3.13.1 (main, Dec 3 2024, 17:59:52) [Clang 19.1.5 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.31.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import os, sys
In [2]: curdir = os.getcwd()
In [3]: sys.path = [
os.path.join(curdir, "dir1"),
os.path.join(curdir, "dir2")
]
In [4]: import foobarpkg
In [5]: foobarpkg.<tab>
Error message:
Oops Jedi has crashed, please report a bug with the following:
...: """
...: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
...: s"""
The text was updated successfully, but these errors were encountered:
FYI, the bug is triggered inside the method DirectObjectAccess.py__file__ (here).
It is caused by the fact that in the scenario described above, the value of self._obj.__file__ will be None. This in turn causes Path(self._obj.__file__) to throw a TypeError, which is not handled.
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: