{"record":{"id":"a35ac0e17a3850ae","repo":"ruby/rubygems","slug":"7","errorCode":"7","errorMessage":"Can't cache gem #{version_message(spec)} because #{self} is missing!","messagePattern":"Can't cache gem #(.+?) because #(.+?) is missing!","errorType":"exception","errorClass":"Bundler::GemNotFound","httpStatus":null,"severity":"error","filePath":"lib/bundler/source/path.rb","lineNumber":90,"sourceCode":"      def name\n        File.basename(expanded_path.to_s)\n      end\n\n      def install(spec, options = {})\n        using_message = \"Using #{version_message(spec, options[:previous_spec])} from #{self}\"\n        using_message += \" and installing its executables\" unless spec.executables.empty?\n        print_using_message using_message\n        generate_bin(spec, disable_extensions: true)\n        nil # no post-install message\n      end\n\n      def cache(spec, custom_path = nil)\n        app_cache_path = app_cache_path(custom_path)\n        return unless Bundler.settings[:cache_all]\n        return if expand(@original_path).to_s.index(root_path.to_s + \"/\") == 0\n\n        unless @original_path.exist?\n          raise GemNotFound, \"Can't cache gem #{version_message(spec)} because #{self} is missing!\"\n        end\n\n        FileUtils.rm_rf(app_cache_path)\n        FileUtils.cp_r(\"#{@original_path}/.\", app_cache_path)\n        FileUtils.touch(app_cache_path.join(\".bundlecache\"))\n      end\n\n      def local_specs(*)\n        @local_specs ||= load_spec_files\n      end\n\n      def specs\n        if has_app_cache?\n          @path = app_cache_path\n          @expanded_path = nil # Invalidate\n        end\n        local_specs\n      end","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/source/path.rb#L72-L108","documentation":"Error \"Can't cache gem #{version_message(spec)} because #{self} is missing!\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/source/path.rb:90 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"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"}