asok / projectile-rails

Emacs Rails mode based on projectile
258 stars 59 forks source link

Pass --noreadline argument to rails console #167

Open hss-mateus opened 9 months ago

hss-mateus commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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.