{"record":{"id":"0ba45f7a14479b11","repo":"ruby/rubygems","slug":"unable-to-call-method-inspect-on-receiver-ins","errorCode":null,"errorMessage":"Unable to call #{method.inspect} on #{receiver.inspect}, perhaps it is a class using marshal compat, which is not visible in ruby? #{e}","messagePattern":"Unable to call #(.+?) on #(.+?), perhaps it is a class using marshal compat, which is not visible in ruby\\? #(.+?)","errorType":"exception","errorClass":"Gem::SafeMarshal::Visitors::ToRuby::MethodCallError","httpStatus":null,"severity":"error","filePath":"lib/rubygems/safe_marshal/visitors/to_ruby.rb","lineNumber":369,"sourceCode":"          when Elements::SymbolLink\n            visit_Gem_SafeMarshal_Elements_SymbolLink(element).to_s\n          else\n            raise FormatError, \"Expected symbol or symbol link, got #{element.inspect} @ #{formatted_stack.join(\".\")}\"\n          end\n        end\n      end\n\n      def register_object(o)\n        @objects << o\n        o\n      end\n\n      def call_method(receiver, method, *args)\n        receiver.__send__(method, *args)\n      rescue NoMethodError => e\n        raise unless e.receiver == receiver\n\n        raise MethodCallError, \"Unable to call #{method.inspect} on #{receiver.inspect}, perhaps it is a class using marshal compat, which is not visible in ruby? #{e}\"\n      end\n\n      def formatted_stack\n        formatted = []\n        @stack[0, @stack_idx].each do |e|\n          if e.is_a?(Integer)\n            if formatted.last == \"ivar_\"\n              formatted[-1] = \"ivar_#{e}\"\n            else\n              formatted << \"[#{e}]\"\n            end\n          else\n            formatted << e\n          end\n        end\n        formatted\n      end\n","sourceCodeStart":351,"sourceCodeEnd":387,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/safe_marshal/visitors/to_ruby.rb#L351-L387","documentation":"Error \"Unable to call #{method.inspect} on #{receiver.inspect}, perhaps it is a class using marshal compat, which is not visible in ruby? #{e}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/safe_marshal/visitors/to_ruby.rb:369 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The metadata uses marshal compat on an invisible class; rebuild the gem with a current RubyGems"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}