From 24b27a27c4069185430702ecaae24573b79da59a Mon Sep 17 00:00:00 2001 From: hachi8833 Date: Fri, 6 Nov 2026 13:37:32 +0900 Subject: [PATCH] [ci] Fix errors on repl_type_completor Temporal fix for supressing errors from repl_type_completor in CI ref: https://github.com/ruby/irb/pull/1268 ref: https://github.com/ruby/repl_type_completor/pull/81 --- Gemfile | 2 +- test/irb/test_irb.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 8a970b48a..e93e08931 100644 --- a/Gemfile +++ b/Gemfile @@ -33,5 +33,5 @@ else end if RUBY_VERSION >= "3.0.0" && !is_truffleruby - gem "repl_type_completor" + gem "repl_type_completor", github: "ruby/repl_type_completor" end diff --git a/test/irb/test_irb.rb b/test/irb/test_irb.rb index 28fa72d96..a86b16dc7 100644 --- a/test/irb/test_irb.rb +++ b/test/irb/test_irb.rb @@ -994,6 +994,8 @@ class ContextModeTest < TestIRB::IntegrationTestCase def test_context_mode_ruby_box omit if RUBY_VERSION < "4.0.0" @envs['RUBY_BOX'] = '1' + # Disabled because this causes VM crash when inspecting Binding during completion in Ruby::Box 4.0. + @envs['IRB_USE_AUTOCOMPLETE'] = 'false' # bundler/setup loaded via RUBYOPT fails inside Ruby::Box (Ruby::Box # initializes RubyGems per box, and Gem::Specification is not defined when # Bundler evaluates irb.gemspec), so remove the bundler context from the