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
Describe the bug
I saw a similar issue posted before in #617, and maybe this is the cause?
Pressing with a blank prompt does not repeat the last command, but it seems like the issue is isolated to irb:rdbg console.
To Reproduce
This can be reproduced at any time in a irb:rdbg console, regardless of whether you are using binding.irb and manually invoking debug, running rdbg and manually invoking irb, or finally automatically starting in irb:rdbg using RUBY_DEBUG_IRB_CONSOLE=true
Here is the easiest way to reproduce, without needing to edit any files:
Start in rdbg, type 'n' followed by and see it proceed to the next line. Hit at the blank prompt and it proceeds to the next line again.
Type 'pry' followed by , then type 'n' followed by and it proceeds to the next line one more time. Again just hit at the empty prompt and the prompt returns rather than proceeding to the next line like it should.
Console Session:
$ rdbg -cirb[4,13]in ~/.asdf/installs/ruby/3.0.6/bin/irb4| #5| # The application 'irb' is installed as part of a gem, and6| # this file is here to facilitate running it.7| #8|
=>9| require'rubygems'10|
11| Gem.use_gemdeps12|
13| version=">= 0.a"=>#0 <main> at ~/.asdf/installs/ruby/3.0.6/bin/irb:9(rdbg)n# next command[6,15]in ~/.asdf/installs/ruby/3.0.6/bin/irb6| # this file is here to facilitate running it.7| #8|
9| require'rubygems'10|
=>11| Gem.use_gemdeps12|
13| version=">= 0.a"14|
15| str=ARGV.first=>#0 <main> at ~/.asdf/installs/ruby/3.0.6/bin/irb:11(rdbg)[8,17]in ~/.asdf/installs/ruby/3.0.6/bin/irb8|
9| require'rubygems'10|
11| Gem.use_gemdeps12|
=>13| version=">= 0.a"14|
15| str=ARGV.first16| ifstr17| str=str.b[/\A_(.*)_\z/,1]=>#0 <main> at ~/.asdf/installs/ruby/3.0.6/bin/irb:13(rdbg)irb# commandirb:rdbg(main):002> n[10,19]in ~/.asdf/installs/ruby/3.0.6/bin/irb10|
11| Gem.use_gemdeps12|
13| version=">= 0.a"14|
=>15| str=ARGV.first16| ifstr17| str=str.b[/\A_(.*)_\z/,1]18| ifstrandGem::Version.correct?(str)19| version=str=>#0 <main> at ~/.asdf/installs/ruby/3.0.6/bin/irb:15irb:rdbg(main):003>
irb:rdbg(main):004>
irb:rdbg(main):005> whereamiFrom: /Users/joesharp/.asdf/installs/ruby/3.0.6/bin/irb @ line15 :
10:
11: Gem.use_gemdeps12:
13: version=">= 0.a"14:
=> 15: str=ARGV.first16: ifstr17: str=str.b[/\A_(.*)_\z/,1]18: ifstrandGem::Version.correct?(str)19: version=str20: ARGV.shift=>nil
Expected behavior
I expect the command to be repeated just like in the rdbg console.
Additional context
I tried to investigate to see if IRB support this, and they don't appear to. I wouldn't really expect it to work on anything but the debugger commands of course. If you use binding.irb and run any debug commands you go into the irb:rdbg prompt and the same issue happens.
The text was updated successfully, but these errors were encountered:
Your environment
ruby -v
: 3.2.2 (and 3.0.6p216)rdbg -v
: 1.9.1irb -v
: 1.11.1Describe the bug
I saw a similar issue posted before in #617, and maybe this is the cause?
Pressing with a blank prompt does not repeat the last command, but it seems like the issue is isolated to irb:rdbg console.
To Reproduce
This can be reproduced at any time in a irb:rdbg console, regardless of whether you are using
binding.irb
and manually invoking debug, running rdbg and manually invoking irb, or finally automatically starting in irb:rdbg using RUBY_DEBUG_IRB_CONSOLE=trueHere is the easiest way to reproduce, without needing to edit any files:
Start in rdbg, type 'n' followed by and see it proceed to the next line. Hit at the blank prompt and it proceeds to the next line again.
Type 'pry' followed by , then type 'n' followed by and it proceeds to the next line one more time. Again just hit at the empty prompt and the prompt returns rather than proceeding to the next line like it should.
Console Session:
Expected behavior
I expect the command to be repeated just like in the rdbg console.
Additional context
I tried to investigate to see if IRB support this, and they don't appear to. I wouldn't really expect it to work on anything but the debugger commands of course. If you use binding.irb and run any debug commands you go into the irb:rdbg prompt and the same issue happens.
The text was updated successfully, but these errors were encountered: