Actions
Bug #15981
closedirb immediately crashes when typing any character
Description
When invoking irb, the first prompt comes up, but as soon as any character (incl. e.g. space or tab) is typed, it immediately crashes it.
duerst@Arnisee /cygdrive/c/Data/ruby
$ irb
irb(main):001:0> Traceback (most recent call last):
27: from /usr/local/bin/irb:30:in `<main>'
26: from /usr/local/bin/irb:30:in `load'
25: from /usr/local/lib/ruby/gems/2.7.0/gems/irb-1.1.0.pre.1/exe/irb:11:in `<top (required)>'
24: from /usr/local/lib/ruby/2.7.0/irb.rb:389:in `start'
23: from /usr/local/lib/ruby/2.7.0/irb.rb:431:in `run'
22: from /usr/local/lib/ruby/2.7.0/irb.rb:431:in `catch'
21: from /usr/local/lib/ruby/2.7.0/irb.rb:432:in `block in run'
20: from /usr/local/lib/ruby/2.7.0/irb.rb:496:in `eval_input'
19: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:125:in `each_top_level_statement'
18: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:125:in `catch'
17: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:126:in `block in each_top_level_statement'
16: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:126:in `loop'
15: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:129:in `block (2 levels) in each_top_level_statement'
14: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:157:in `lex'
13: from /usr/local/lib/ruby/2.7.0/irb.rb:477:in `block in eval_input'
12: from /usr/local/lib/ruby/2.7.0/irb.rb:654:in `signal_status'
11: from /usr/local/lib/ruby/2.7.0/irb.rb:478:in `block (2 levels) in eval_input'
10: from /usr/local/lib/ruby/2.7.0/irb/input-method.rb:259:in `gets'
9: from /usr/local/lib/ruby/2.7.0/reline.rb:296:in `readmultiline'
8: from /usr/local/lib/ruby/2.7.0/reline.rb:357:in `inner_readline'
7: from /usr/local/lib/ruby/2.7.0/reline.rb:357:in `loop'
6: from /usr/local/lib/ruby/2.7.0/reline.rb:358:in `block in inner_readline'
5: from /usr/local/lib/ruby/2.7.0/reline.rb:387:in `read_io'
4: from /usr/local/lib/ruby/2.7.0/reline.rb:387:in `loop'
3: from /usr/local/lib/ruby/2.7.0/reline.rb:390:in `block in read_io'
2: from /usr/local/lib/ruby/2.7.0/reline/key_stroke.rb:19:in `match_status'
1: from /usr/local/lib/ruby/2.7.0/reline/key_stroke.rb:19:in `select'
/usr/local/lib/ruby/2.7.0/reline/key_stroke.rb:20:in `block in match_status': undefined method `start_with?' for nil:NilClass (NoMethodError)
duerst@Arnisee /cygdrive/c/Data/ruby
Files
Updated by aycabta (aycabta .) about 5 years ago
Please show me your ~/.inputrc
.
Actions
#2
Updated by duerst (Martin Dürst) about 5 years ago
I attached my .inputrc, and my .irbrc also just in case you might need that. I can't remember ever modifying these files in any way. I didn't even know there was a .inputrc file.
Updated by duerst (Martin Dürst) about 5 years ago
I was asked (apparently in private mail) about ^D
and ^C
. ^D
produces the same Traceback. ^C
produces another prompt, still with the number 001.
Updated by nobu (Nobuyoshi Nakada) about 5 years ago
- Status changed from Open to Closed
Applied in changeset git|ee861e43f70d827abd1f8d26b2e97920237348b4.
Skip indented comment lines [Bug #15981]
Actions
Like0
Like0Like0Like0Like0