Skip site navigation (1)Skip section navigation (2)
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/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252395

            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 IPytho=
n no
longer worked. For example:

    elysium:~> ipython

    In [1]: cd tmp=20
    Traceback (most recent call last):
    File "/usr/local/lib/python3.9/site-packages/IPython/terminal/ptutils.p=
y",
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.p=
y",
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 =3D 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=3Dself.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 =3D self._compl=
ete(
    File "/usr/local/lib/python3.9/site-packages/IPython/core/completer.py",
line 2029, in _complete
        completions =3D self._jedi_matches(
    File "/usr/local/lib/python3.9/site-packages/IPython/core/completer.py",
line 1373, in _jedi_matches
        interpreter =3D jedi.Interpreter(
    File "/usr/local/lib/python3.9/site-packages/jedi/api/__init__.py", line
725, in __init__
        super().__init__(code, environment=3Denvironment,
    TypeError: __init__() got an unexpected keyword argument 'column'

Looking at the github repo for IPython, I found that there was a pull-reque=
st
related to this: https://github.com/ipython/ipython/pull/12751

In essence, this modifies dependency for py-jedi as follows:

    jedi>=3D0.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 backport=
ed
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.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252395-21822>