You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails console HISTORY is unavailable with RUBY_DEBUG_IRB_CONSOLE=1
Preparation
Create new rails app with rails new appname.
Add gem 'spring' to Gemfile and run spring binstub --all. (This step is optional)
versions are:
debug (1.9.2)
reline (0.5.9)
irb (1.13.2)
rails (7.1.3.4)
spring (4.2.1)
Reproduce
Without spring
$ rails c
irb(main):001> Up arrow shows history
$ RUBY_DEBUG_IRB_CONSOLE=1 rails c
irb(main):001> Up arrow does not show history
With spring
$ rails c
irb(main):001> HISTORY available
$ RUBY_DEBUG_IRB_CONSOLE=1 rails c
irb(main):001> HISTORY available (until `spring stop`)
$ spring stop
$ RUBY_DEBUG_IRB_CONSOLE=1 rails c
irb(main):001> HISTORY unavailable
$ rails c
irb(main):001> HISTORY unavailable (until `spring stop`)
$ spring stop
$ rails c
irb(main):001> HISTORY available
Result of irb_info
irb(main):001> irb_info
Ruby version: 3.3.1
IRB version: irb 1.13.2 (2024-06-15)
InputMethod: RelineInputMethod with Reline 0.5.9 and /Users/tomoya.ishida/.inputrc
Completion: Autocomplete, RegexpCompletor
RUBY_PLATFORM: arm64-darwin22
LANG env: ja_JP.UTF-8
East Asian Ambiguous Width: 1
The text was updated successfully, but these errors were encountered:
Description
Rails console HISTORY is unavailable with
RUBY_DEBUG_IRB_CONSOLE=1
Preparation
Create new rails app with
rails new appname
.Add
gem 'spring'
to Gemfile and runspring binstub --all
. (This step is optional)versions are:
Reproduce
Without spring
With spring
Result of irb_info
The text was updated successfully, but these errors were encountered: