Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list - doesn't work with IRB console #1109

Open
AlexWayfer opened this issue Jul 8, 2024 · 2 comments
Open

list - doesn't work with IRB console #1109

AlexWayfer opened this issue Jul 8, 2024 · 2 comments

Comments

@AlexWayfer
Copy link

Your environment

  • ruby -v: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
  • rdbg -v:rdbg 1.9.2

Describe the bug

Here is the list - command to see predecessor lines (useful after regular list usage).

It works in a default console, but not in IRB: it considers - as an operator, I suppose.

To Reproduce

  1. binding.break in a code.
  2. list in IRB console.
  3. list - in IRB console.

Expected behavior

Working list - command (or an alias).

Additional context

irb:rdbg(#<RSpec::ExampleGroups::UIClu...):004* l -
irb:rdbg(#<RSpec::ExampleGroups::UIClu...):005* l - # debug command

^C
@st0012
Copy link
Member

st0012 commented Jul 8, 2024

👋 Can you also provide the IRB version?

You can simply paste the output of the irb_info command.

@AlexWayfer
Copy link
Author

Of course:

irb:rdbg(#<RSpec::ExampleGroups::UIClu...):002> irb_info
Ruby version: 3.2.2
IRB version: irb 1.14.0 (2024-07-06)
InputMethod: RelineInputMethod with Reline 0.5.9
Completion: Autocomplete, RegexpCompletor
RUBY_PLATFORM: x86_64-linux
LANG env: en_US.UTF-8
East Asian Ambiguous Width: 1

As I can see, it's the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants