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

Change default completor from regexp to type-completor #1010

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tompng
Copy link
Member

@tompng tompng commented Sep 30, 2024

IRB will use type completor as default. If repl_type_completor is not available (not installed or not added to Gemfile), fallbacks to RegexpCompletor.

When type completor is not available, IRB shows warning message only If --type-completor or IRB.conf[:COMPLETOR] = :type is explicitly specified.

$ irb -f
irb(main):001> irb_info
(TypeCompletor)

$ echo "gem 'irb', path: 'path/to/irb'" > Gemfile

$ bundle exec irb -f
(no waarning)
irb(main):001> irb_info
(RegexpCompletor)

$ bundle exec irb -f --type-completor
TypeCompletor requires `gem repl_type_completor`: cannot load such file -- repl_type_completor
irb(main):001> irb_info
(RegexpCompletor)

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

Successfully merging this pull request may close these issues.

1 participant