ruby / irb

interactive Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tab complete is slow when class name is long and undocumented

tompng opened this issue · comments

Description

Create a class that has long name

irb> module FooBarIRB;module FooBarInputCompletor;class FooBarRegexpCompletor;end;end;end

Make an instance

irb> a = FooBarIRB::FooBarInputCompletor::FooBarRegexpCompletor.new

Tab complete. It's extreamly slow

irb> a.[PRESS TAB]

Comparison of completing a. and 1.. It's too slow that completion dialog for a. is not rendered.

slow_completion.mp4

Result of irb_info

irb(main):001> irb_info
Ruby version: 3.2.2
IRB version: irb 1.8.1 (2023-09-04)
InputMethod: RelineInputMethod with Reline 0.3.8
.irbrc path: /Users/tomoya.ishida/.irbrc
RUBY_PLATFORM: arm64-darwin22
LANG env: ja_JP.UTF-8
East Asian Ambiguous Width: 1
=> nil

Terminal Emulator

What's your terminal emulator?

Setting Files

Are you using ~/.irbrc and ~/.inputrc?

No. have .irbrc but ignored by command line option -f