projectile-rails
projectile-rails copied to clipboard
Pass --noreadline argument to rails console
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:
3.3.0:
The inf-ruby
package already does this, and it seems to work OK
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?
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.