Skip to content

Ask IRB's RegexpCompletor for DAP completions - #1195

Open
adityawrk wants to merge 1 commit into
ruby:masterfrom
adityawrk:fix/irb-completion-api
Open

adityawrk wants to merge 1 commit into
ruby:masterfrom
adityawrk:fix/irb-completion-api

Conversation

@adityawrk

@adityawrk adityawrk commented Nov 29, 2026 •

Copy link
Copy Markdown

Fixes #1079.

DAP completion requests called IRB::InputCompletor.retrieve_completion_data. That constant is deprecated, so a debuggee started with verbose warnings printed:

lib/debug/server_dap.rb:985: warning: constant IRB::InputCompletor is deprecated

The method only forwards to IRB::RegexpCompletor#retrieve_completion_data with doc_namespace: false. Completions now call that directly. A completion for Ar still includes Array, and the debuggee log no longer mentions InputCompletor. The existing eval protocol test still passes.

IRB::InputCompletor is deprecated. Completion requests warned
"constant IRB::InputCompletor is deprecated" whenever verbose
warnings were enabled. The deprecated method only forwards to
RegexpCompletor with doc_namespace: false, so call that directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove usage of deprecated constant IRB::InputCompletor

1 participant