I ran into this using tab-complete in a rails console on ruby 3.3. It appears that rdoc is passing a proc to Marshal.load and that is causing our initializer monkeypatch to fail.
config/initializers/marshal_autoloader.rb:6:in `load': wrong number of arguments (given 2, expected 1) (ArgumentError)
from /usr/lib/ruby/3.3.0/rdoc/store.rb:974:in `block in marshal_load'
from /usr/lib/ruby/3.3.0/rdoc/store.rb:974:in `open'
I ran into this using tab-complete in a rails console on ruby 3.3. It appears that rdoc is passing a proc to Marshal.load and that is causing our initializer monkeypatch to fail.