{"record":{"id":"c4817de2d638865a","repo":"ruby/rubygems","slug":"15-c4817d","errorCode":"15","errorMessage":"Using a custom path while using system gems is unsupported.\n#{path.join(\"\\n\")}\n#{system_path.join(\"\\n\")}\n#{disable_shared_gems.join(\"\\n\")}","messagePattern":"Using a custom path while using system gems is unsupported\\.\n#(.+?)\n#(.+?)\n#(.+?)","errorType":"exception","errorClass":"Bundler::InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/settings.rb","lineNumber":297,"sourceCode":"        if relative_path.to_s.start_with?(\"..\")\n          relative_path = base_path if base_path.absolute?\n        else\n          relative_path = Pathname.new(File.join(\".\", relative_path))\n        end\n        relative_path\n      rescue ArgumentError\n        expanded_base_path\n      end\n\n      def validate!\n        return unless explicit_path && system_path\n        path = Bundler.settings.pretty_values_for(:path)\n        path.unshift(nil, \"path:\") unless path.empty?\n        system_path = Bundler.settings.pretty_values_for(\"path.system\")\n        system_path.unshift(nil, \"path.system:\") unless system_path.empty?\n        disable_shared_gems = Bundler.settings.pretty_values_for(:disable_shared_gems)\n        disable_shared_gems.unshift(nil, \"disable_shared_gems:\") unless disable_shared_gems.empty?\n        raise InvalidOption,\n          \"Using a custom path while using system gems is unsupported.\\n#{path.join(\"\\n\")}\\n#{system_path.join(\"\\n\")}\\n#{disable_shared_gems.join(\"\\n\")}\"\n      end\n    end\n\n    def ignore_config?\n      ENV[\"BUNDLE_IGNORE_CONFIG\"]\n    end\n\n    def app_cache_path\n      @app_cache_path ||= self[:cache_path] || \"vendor/cache\"\n    end\n\n    def installation_parallelization\n      self[:jobs] || processor_count\n    end\n\n    def validate!\n      all.each do |raw_key|","sourceCodeStart":279,"sourceCodeEnd":315,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/settings.rb#L279-L315","documentation":"Error \"Using a custom path while using system gems is unsupported.\n#{path.join(\"\\n\")}\n#{system_path.join(\"\\n\")}\n#{disable_shared_gems.join(\"\\n\")}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/settings.rb:297 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"}