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

Pass --noreadline argument to rails console #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hss-mateus
Copy link

In Ruby 3.3.0, the Rails console breaks, duplicating text and printing unknown code. Including the --noreadline argument to IRB fix this issue.

3.2.2:
image

3.3.0:
image

The inf-ruby package already does this, and it seems to work OK

@purcell
Copy link
Collaborator

purcell commented Jan 6, 2024

I guess this way there is still a command history, but it is handled only by Emacs, rather than by irb's own history mechanism?

@hss-mateus
Copy link
Author

I guess this way there is still a command history, but it is handled only by Emacs, rather than by irb's own history mechanism?

Yes, emacs itself provide an history, but only for the current session. When the buffer gets killed, everything is forgotten.

Inside emacs, I never got access to previous sessions history before, so I don't think this will make much difference anyway.

The reason of the bug is because GNU readline was replaced to reline in 3.3.0, adding gem "readline-ext" to Gemfile fixes it too.

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

Successfully merging this pull request may close these issues.

None yet

2 participants