-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
readline support not guaranteed without rb-readline #118
Comments
Thanks for the report, I'll have a look and decide what to do. |
@cainlevy Do you have any preferred solution for this? I think the better way would be to add |
I'm not sure what the tradeoffs are, honestly. I tried to think of another popular REPL that might use readline and found this in Pry: |
Let's find out! :) |
The problem that @cainlevy describes is valid indeed with Ubuntu, however using @deivid-rodriguez, I think a better solution will be adding a readme section or a descriptive error message, than depending on |
@kamen-hursev Yep, I'm experiencing more problems than before after including I'll remove it again and do what pry does (show a help message whenever requiring readline fails). And then release another minor version. |
After upgrading byebug I see many problems occur in a Pry session because of rb-readline, which seemingly cannot handle multi-byte characters properly. Literal strings containing multi-byte characters are now regarded as ASCII-8BIT instead of the default encoding (UTF-8), the multi-byte characters after colorization (syntax highlighting) are all garbled, and the terminal often gets stuck in a completely unusable state especially when pry enters a nested session. I've never seen these problems with the native readline library. |
Done! |
Thanks! That saved me. |
@kamen-hursev I'm having the same issue about When using debugger there is no such issue. Do you have any idea how to make it work ? I'm so used to those shortcuts to navigate through text that it's very frustrating ... |
Sorry, @jerefrer, but I don't think I can help you with this. This issue was fixed with |
@jerefrer with rvm and arch linux i got to work by simply installing gem rb-readline and adding it to the gemifle |
@pathann Nope, doesn't work ... Thanks for trying :) |
To fix this (for OSX, tested on Sierra), run following command in your shell -
|
Thanks guys. Cheers up! |
problem:
On Ubuntu 14.04, if libreadline-dev is not installed prior to using rbenv to compile ruby, then readline will not be available:
possible solutions:
sudo apt-get install libreadline-dev
beforerbenv install
The text was updated successfully, but these errors were encountered: