Open2

comparison of String with nil failed (ArgumentError) エラーが出るようになった。

Matsukura YukiMatsukura Yuki
root@7b58d6134ba5:/app# rails c
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:130:in `<': comparison of String with nil failed (ArgumentError)

    msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
                             ^^^^^^^^^^
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:130:in `build_message'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:126:in `warning?'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:71:in `block (2 levels) in replace_require'
	from /usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from /usr/local/bundle/gems/zeitwerk-2.6.17/lib/zeitwerk/kernel.rb:34:in `require'
	from /usr/local/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
	from /usr/local/bundle/gems/romaji-0.2.4/lib/romaji.rb:3:in `<main>'
	from <internal:/usr/local/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/usr/local/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
	from /usr/local/bundle/gems/zeitwerk-2.6.17/lib/zeitwerk/kernel.rb:34:in `require'
	from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
	from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/runtime.rb:55:in `each'
	from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/runtime.rb:55:in `block in require'
	from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/runtime.rb:44:in `each'
	from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler/runtime.rb:44:in `require'
	from /usr/local/bundle/gems/bundler-2.5.7/lib/bundler.rb:187:in `require'
	from /app/config/application.rb:19:in `<main>'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
	from /usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command/actions.rb:15:in `require_application!'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command/environment_argument.rb:31:in `require_application!'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command/actions.rb:19:in `boot_application!'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/commands/console/console_command.rb:105:in `perform'
	from /usr/local/bundle/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /usr/local/bundle/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command/base.rb:178:in `invoke_command'
	from /usr/local/bundle/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command/base.rb:73:in `perform'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command.rb:71:in `block in invoke'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command.rb:149:in `with_argv'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/command.rb:69:in `invoke'
	from /usr/local/bundle/gems/railties-7.1.4/lib/rails/commands.rb:18:in `<main>'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
	from /usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from bin/rails:4:in `<main>'

環境

root@7b58d6134ba5:/app# ruby -v
ruby 3.3.1 (2024-04-23 revision c56cd86388) +YJIT [aarch64-linux]
root@7b58d6134ba5:/app# rails -v
Rails 7.1.4