irb
irb copied to clipboard
interactive Ruby
## Description IRB crashes with the following code: ``` irb(main):001> define_method("a\xff".force_encoding(Encoding::ASCII_8BIT)){} => :"a\xFF" irb(main):002> a/Users/kuwabara.masataka/.rbenv/versions/trunk/lib/ruby/gems/3.4.0+0/gems/irb-1.11.2/lib/irb/completion.rb:184:in `encode': "\xFF" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError) from /Users/kuwabara.masataka/.rbenv/versions/trunk/lib/ruby/gems/3.4.0+0/gems/irb-1.11.2/lib/irb/completion.rb:184:in `block in completion_candidates' from /Users/kuwabara.masataka/.rbenv/versions/trunk/lib/ruby/gems/3.4.0+0/gems/irb-1.11.2/lib/irb/completion.rb:184:in `map'...
I'm having so many problems with irb. Basic usability issues. For example, if your config includes: ``` IRB.conf[:PROMPT_MODE] = :SIMPLE ``` and you type `help`, you literally can't tell that...
## Description Underscore stops working correctly after entering debug mode. Issue is present on Ruby 2.7.8-3.3.0. Cross filed from https://github.com/ruby/debug/issues/1069 **Additional context** Shell session: ```rb irb(# 3+3 => 6 irb(#...
## Description I expect to be able to use `Readline.readline("answer me pls> ")` within irb. Right now it does read my answer but the `answer me pls> ` gets lost...
## Plan - Print deprecation warnings on these commands: `irb`, `jobs`, `fg`, and `kill` in the next minor release - Completely remove those commands in `v2.0.0` ## Reasons - It's...
Pry includes an `exit-program` command, also aliased as `quit-program` and `!!!` which calls `Kernel.exit`. This is useful when `binding.pry` has been used in a loop. This implements a similar `exit_program`...
Work-in-progress. Fixes https://github.com/ruby/irb/issues/655 Checklist: - [x] options and values parity with old `parse_opts` - [ ] remaining argv-based code for running scripts and arguments pass `--` - [ ] I18n...
## Description I was paging through a large array and hit ctrl-c. I was expecting to go back to the irb session. I got an error ``` Users/dorianmariefr/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/irb-1.11.1/lib/irb/pager.rb:36:in `kill': No...
## Description Pry has a command called `play` that evaluates code blocks within the context of the REPL. This is an extremely useful method for iterative development in the REPL....
In `show_cmds`, we have this: ``` Multi-irb (DEPRECATED) irb Start a child IRB. jobs List of current sessions. fg Switches to the session of the given number. kill Kills the...