[Bug 252395] devel/py-jedi: update to 0.18 breaks devel/ipython autocompletion
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jan 4 00:05:08 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252395
Bug ID: 252395
Summary: devel/py-jedi: update to 0.18 breaks devel/ipython
autocompletion
Product: Ports & Packages
Version: Latest
Hardware: Any
URL: https://github.com/ipython/ipython/pull/12751
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: rsmith at xs4all.nl
CC: python at FreeBSD.org, skreuzer at FreeBSD.org
CC: python at FreeBSD.org, skreuzer at FreeBSD.org
After #252325 was closed, I ran into the fact that autocompletion in IPython no
longer worked. For example:
elysium:~> ipython
In [1]: cd tmp
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/IPython/terminal/ptutils.py",
line 113, in get_completions
yield from self._get_completions(body, offset, cursor_position,
self.ipy_completer)
File "/usr/local/lib/python3.9/site-packages/IPython/terminal/ptutils.py",
line 129, in _get_completions
for c in completions:
File "/usr/local/lib/python3.9/site-packages/IPython/core/completer.py",
line 438, in _deduplicate_completions
completions = list(completions)
File "/usr/local/lib/python3.9/site-packages/IPython/core/completer.py",
line 1818, in completions
for c in self._completions(text, offset,
_timeout=self.jedi_compute_type_timeout/1000):
File "/usr/local/lib/python3.9/site-packages/IPython/core/completer.py",
line 1861, in _completions
matched_text, matches, matches_origin, jedi_matches = self._complete(
File "/usr/local/lib/python3.9/site-packages/IPython/core/completer.py",
line 2029, in _complete
completions = self._jedi_matches(
File "/usr/local/lib/python3.9/site-packages/IPython/core/completer.py",
line 1373, in _jedi_matches
interpreter = jedi.Interpreter(
File "/usr/local/lib/python3.9/site-packages/jedi/api/__init__.py", line
725, in __init__
super().__init__(code, environment=environment,
TypeError: __init__() got an unexpected keyword argument 'column'
Looking at the github repo for IPython, I found that there was a pull-request
related to this: https://github.com/ipython/ipython/pull/12751
In essence, this modifies dependency for py-jedi as follows:
jedi>=0.16,<0.18.0
Apparently, there has been a change in the py-jedi API.
The master branch for IPython was fixed, but this fix has not been backported
to the 7.x branch.
So it seems to me that a rollback to 0.17 is in order until this is fixed in
IPython.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-python
mailing list