Skip to content
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

Right arrow broken in 8.12.1 #14051

Closed
Dapid opened this issue Apr 28, 2023 · 14 comments · Fixed by #14052
Closed

Right arrow broken in 8.12.1 #14051

Dapid opened this issue Apr 28, 2023 · 14 comments · Fixed by #14052
Assignees
Labels

Comments

@Dapid
Copy link

Dapid commented Apr 28, 2023

The -> arrow doesn't work. When I press the <- arrow to go back and edit the current command, Ipython ignores it.

I don't think my explanation is very clear, so here is an example. If I type:

In [1]: print(A

And realise I forgot to open the quotes, I go back,

In [1]: print("|A

Now I am stuck, and cannot "hop" over A. I can keep moving backwards, though. Pressing end does work.

I have replicated it in an empty virtualenv under both Python 3.9 and 3.10. The problem disappears downgrading to Ipython 8.12.0.
I am using Fedora Linux, with Qterminal 1.1.0.

@krassowski
Copy link
Member

Hotfix in #14052.

@Nicholas-Autio-Mitchell

Tested the hotfix myself by manually patching my installation ipython==8.13.0 -- it works again :) Thanks @krassowski

@2sn
Copy link

2sn commented Apr 29, 2023

How can this recent change to auto-completion relative to earlier versions be entirely disabled and reverted to the earlier behavior? I find it practically unusable. I just want to see previous commands with the up arrow, filtering by what it is at the beginning of the line. As it used to be. No right arrow "feature".

@Nicholas-Autio-Mitchell
Copy link

@krassowski
Copy link
Member

Workaround

Start IPython with override for the problematic shortcut:

ipython --TerminalInteractiveShell.shortcuts "{'command':'IPython:auto_suggest.resume_hinting', 'new_keys': []}"

Or If you do not have control over startup sequence, execute:

%config TerminalInteractiveShell.shortcuts = [{"command": "IPython:auto_suggest.resume_hinting", "new_keys": []}]

or add it to your configuration in general.

@2sn
Copy link

2sn commented Apr 29, 2023

For me, it also work to set

c.TerminalInteractiveShell.shortcuts = [{"command": "IPython:auto_suggest.resume_hinting", "new_keys": []}]

in the IPython config file (~/.ipython/profile_default/ipython_config.py)

@2sn
Copy link

2sn commented Apr 30, 2023

With just the "hot fix" the right button seems to be still broken in the IPython debugger called from within IPython using %debug.

@Nasjoe
Copy link

Nasjoe commented Apr 30, 2023

Same here with IPython 8.13.1 inside a Django Shell with shell_plus from django-extensions.

@theXYZT
Copy link

theXYZT commented May 1, 2023

I am getting the same problem in IPython 8.13.1 (on Windows, using the conda-forge package, and Python 3.11.3)

@namoshizun
Copy link

Same here with Python 3.11.3 + IPython 8.13.1, on MacOS

ThiefMaster added a commit to indico/indico that referenced this issue May 3, 2023
@ThiefMaster
Copy link
Contributor

A bugfix release would be great :)

@hhalaby
Copy link

hhalaby commented May 4, 2023

Why is this closed, IPython 8.13.1 still does not work

@Carreau
Copy link
Member

Carreau commented May 4, 2023 via email

@ThiefMaster
Copy link
Contributor

In almost all projects - this one likely included - an issue being closed just means that it has been fixed in a dev version, not that there's already a fixed release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants