{"record":{"id":"d2e71ba9441c9988","repo":"ruby/rubygems","slug":"13-d2e71b","errorCode":"13","errorMessage":"There was an error while trying to use the path `#{somepath}`.\nThe error message was: #{e.message}.","messagePattern":"There was an error while trying to use the path `#(.+?)`\\.\nThe error message was: #(.+?)\\.","errorType":"exception","errorClass":"Bundler::Source::PathError","httpStatus":null,"severity":"error","filePath":"lib/bundler/source/path.rb","lineNumber":132,"sourceCode":"      def root\n        Bundler.root\n      end\n\n      def expanded_original_path\n        @expanded_original_path ||= expand(original_path)\n      end\n\n      private\n\n      def expanded_path\n        @expanded_path ||= expand(path)\n      end\n\n      def expand(somepath)\n        somepath.expand_path(root_path)\n      rescue ArgumentError => e\n        Bundler.ui.debug(e)\n        raise PathError, \"There was an error while trying to use the path \" \\\n          \"`#{somepath}`.\\nThe error message was: #{e.message}.\"\n      end\n\n      def lockfile_path\n        return relative_path(original_path) if original_path.absolute?\n        expand(original_path).relative_path_from(root)\n      end\n\n      def app_cache_path(custom_path = nil)\n        @app_cache_path ||= Bundler.app_cache(custom_path).join(app_cache_dirname)\n      end\n\n      def has_app_cache?\n        SharedHelpers.in_bundle? && app_cache_path.exist?\n      end\n\n      def load_gemspec(file)\n        return unless spec = Bundler.load_gemspec(file)","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/source/path.rb#L114-L150","documentation":"Error \"There was an error while trying to use the path `#{somepath}`.\nThe error message was: #{e.message}.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/source/path.rb:132 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"}