-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
ctrl-r not working for reverse search on OS X 10.10.5 with Python 3.5 #394
Comments
Hi @corbinbs - do you know if you have GNU readline or libedit? This seems like it could be a Mac specific issue... |
Looks like I might have
I'm running with the latest Python 3.5 install from python.org |
OK - then I bet that this is a libedit issue. I don't have a good way of testing this personally, so if you are anyone comes up with a fix, I'll gladly merge it. |
I am having a similar issue using prompt-toolkit on Manjaro Linux (an Arch derivative) using Python 3.5. I am unable to use Ctl-R, Ctl-D, Ctl-C, Ctl-Z at all unless I am using readline mode. |
I am not even sure that prompt-toolkit supports that (though it probably does). @jonathanslenders or @melund would know :) |
Thanks for reporting @blarghmatey |
Looking here, it appears that it does support control sequences. I'm not sure why it would fail given my setup. I will try running everything on Python 3.4 and see if that works any different. |
So, it started working again. I'm not sure what I may have changed, sorry I can't be more help on that front :) |
I stumbled across this recently: adding a line to your .editrc file:
ctrl-r works but still doesn't display quite like I'd expect. (sometimes long commands get wrapped or the first part of them is chopped off with no way to go back to edit, etc) I'll keep looking for a decent solution that will work for folks "out of the box" when they install xonsh |
Thanks @corbinbs - I wonder if this looks weird because of the order it is loaded in. Could you try adding a additional line here in readline_shell.py that looks like: readline.parse_and_bind("bind ^R em-inc-search-prev") |
Hi all, By the way, I get a lot of "UnboundLocalError: local variable 'p0' referenced before assignment" errors when running Xonsh. (latest master.) |
Thanks!
Weird. Can you post a full traceback? Also what version of Python are you on? |
This one is Python 3.4.0. But looking at the code, there is a code path in |
So we were seeing this issue in #399, but that code path should be impossible to access. I wonder if it is a PLY version issue. Do you know what PLY you are on? |
|
And this happens with any command? I am not able to reproduce this on Python 3.4 on Ubuntu on PLY v3.6 |
Yes. |
Woah! That definitely looks like a ply bug. Are you on ply 3.5? From the website:
|
Tested this today on:
and ctrl+r seems to be working fine (I think it was broken for me on xonsh 0.4.3 too) |
Ok I am going to go ahead and close. Please feel free to reopen. |
I've not been able to get ctrl-r to work for reverse search on OS X 10.10.5 with Python 3.5.
I pip installed the latest xonsh release (0.2.0) and I've also tried with the latest master code.
I'll post a pull request if I figure out what's going on but I wanted to file an issue in case others encountered the same behavior.
Thanks,
Brian
The text was updated successfully, but these errors were encountered: