projectile-rails icon indicating copy to clipboard operation
projectile-rails copied to clipboard

Pass --noreadline argument to rails console

Open hss-mateus opened this issue 1 year ago • 2 comments

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

hss-mateus avatar Jan 05 '24 19:01 hss-mateus

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?

purcell avatar Jan 06 '24 09:01 purcell

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.

hss-mateus avatar Jan 06 '24 15:01 hss-mateus