irb
irb copied to clipboard
IRB hangs when autocompleting require_relative path at root directory
Description
When you run irb in root directory and tries to autocomplete require_relative path, IRB hangs. IRB tries to search every directory in your system. In my environment, it stops after few seconds with Errno::EPERM. Similar to #606
$ cd /
$ irb
irb(main):001> require_relative 'a
Result of irb_info
irb(main):001> irb_info
Ruby version: 3.2.2
IRB version: irb 1.9.0 (2023-11-11)
InputMethod: RelineInputMethod with Reline 0.4.0
Completion: Autocomplete, RegexpCompletor
RUBY_PLATFORM: arm64-darwin22
LANG env: ja_JP.UTF-8
East Asian Ambiguous Width: 1
Terminal Emulator
Terminal.app
Setting Files
Are you using ~/.irbrc and ~/.inputrc?
No
Solved in TypeCompletor(repl_type_completor 0.1.2), problem remains in RegexpCompletor