irb
irb copied to clipboard
interactive Ruby
with `IRB.conf[:EVAL_HISTORY] = true` everything is busted: ``` 9972 % irb >> 1 + 2 /Users/ryan.davis/.rubies/ruby-3.2.2/lib/ruby/3.2.0/irb/ext/history.rb:127:in `>': comparison of Integer with true failed (ArgumentError) @contents.shift if @size != 0 &&...
Currently, users can only find out that they have set a wrong value for IRB configs when the value is used, with opaque error messages like "comparison of Integer with...
## Description After entering `debug` mode, all workspace functionality stops working. It's no longer possible to perform commands or statements under a different workspace after changing the workspace or pushing...
README.md says BSD-2-Clause: https://github.com/ruby/irb/blob/08eee25d28365e4fb2e11432c0535932f586cca3/README.md?plain=1#L411-L413 Also the LICENSE.txt is is BSD-2-Clause: https://github.com/ruby/irb/blob/bd728dc634ac1ec148c884da156af86b8738d8f7/LICENSE.txt While the .gemspec metadata specify Ruby or BSD-2-Clause https://github.com/ruby/irb/blob/08eee25d28365e4fb2e11432c0535932f586cca3/irb.gemspec#L17
## Description In normal IRB sessions, ctrl-D is the same as `exit`, which exits the current IRB session. In `irb:rdbg` sessions, ctrl-D is executed by `debug`, which is the same...
## Description When assigning a local variable which's name is the same one of the debugging commands (e.g. `info`), it'd be treated as the command call instead of a local...
## Description ```shell aryanbeezadhur@Aryans-MacBook-Pro ~ % irb --prompt /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/irb/init.rb:340:in `parse_opts': undefined method `upcase' for nil (NoMethodError) prompt_mode = opt.upcase.tr("-", "_").intern ^^^^^^^ from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/irb/init.rb:48:in `setup' from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/irb.rb:896:in `start' from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/irb-1.11.0/exe/irb:9:in `'...
## Description When `IRB.conf[:USE_SINGLELINE] = true` is set in `.irbrc`, debug command raises error. ``` From: a.rb @ line 4 : 1: def foo 2: end 3: => 4: binding.irb...
The documentation states that: > The path to the configuration file is the first found among: > File +.config/irb/irbrc+ in the current directory, if it exists. https://github.com/ruby/irb/blob/master/lib/irb.rb#L148 but there seems...
Dear Devs, I'd like to suggest to turn off autocomplete and colorization by default for the following reasons: 1) The autocomplete list is shown in color and cannot be read...