Date: Mon, 04 Jan 2021 00:05:08 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 252395] devel/py-jedi: update to 0.18 breaks devel/ipython autocompletion Message-ID: <bug-252395-21822@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: rsmith@xs4all.nl CC: python@FreeBSD.org, skreuzer@FreeBSD.org CC: python@FreeBSD.org, skreuzer@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252395-21822>
