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
I can run IRB successfully, but the problems that I face:
IRB crash during exit:
Traceback (most recent call last):
10: from /usr/bin/irb:23:in `<main>'
9: from /usr/bin/irb:23:in `load'
8: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/exe/irb:11:in `<top (required)>'
7: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb.rb:399:in `start'
6: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb.rb:474:in `run'
5: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb.rb:474:in `each'
4: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb.rb:474:in `block in run'
3: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb/ext/save-history.rb:62:in `block in extended'
2: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb/ext/save-history.rb:110:in `save_history'
1: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb/ext/save-history.rb:110:in `open'
/usr/lib/ruby/gems/2.7.0/gems/irb-1.2.4/lib/irb/ext/save-history.rb:112:in `block in save_history': bignum too big to convert into `long' (RangeError)
No histories are saved.
All the previous histories in ~/.irb_history are wiped out.
Although I think the length of a number to become Bignum depends on the system (like 64bit vs. 32bit), but eventually it can crash irb, but it shouldn't happen, for example, take a look at .bashrc, you can have values like:
export HISTORY=`ruby -e "print 10 ** 5_000"`
Terminal Emulator
Current => Tilix
Affected => All
Setting Files
Are you using ~/.irbrc and ~/.inputrc?
Yes, take a look above ;)
The text was updated successfully, but these errors were encountered:
Description
When I have a SAVE_HISTORY value specified to ~/.irbrc in Bignum, for example:
I can run IRB successfully, but the problems that I face:
Although I think the length of a number to become Bignum depends on the system (like 64bit vs. 32bit), but eventually it can crash irb, but it shouldn't happen, for example, take a look at .bashrc, you can have values like:
Terminal Emulator
Current => Tilix
Affected => All
Setting Files
Are you using
~/.irbrc
and~/.inputrc
?Yes, take a look above ;)
The text was updated successfully, but these errors were encountered: