{"record":{"id":"0c2c31798ef81495","repo":"ruby/rubygems","slug":"13","errorCode":"13","errorMessage":"Your bundle path contains text matching #{path_separator.inspect}, which is the path separator for your system. Bundler cannot function correctly when the Bundle path contains the system's PATH separator. Please change your bundle path to not match #{path_separator.inspect}.\nYour current bundle path is '#{Bundler.bundle_path}'.","messagePattern":"Your bundle path contains text matching #(.+?), which is the path separator for your system\\. Bundler cannot function correctly when the Bundle path contains the system's PATH separator\\. Please change your bundle path to not match #(.+?)\\.\nYour current bundle path is '#(.+?)'\\.","errorType":"exception","errorClass":"Bundler::PathError","httpStatus":null,"severity":"error","filePath":"lib/bundler/shared_helpers.rb","lineNumber":246,"sourceCode":"    def relative_path_to(destination, from: pwd)\n      Pathname.new(destination).relative_path_from(from).to_s\n    rescue ArgumentError\n      # on Windows, if source and destination are on different drivers, there's no relative path from one to the other\n      destination\n    end\n\n    private\n\n    def validate_bundle_path\n      path_separator = Bundler.rubygems.path_separator\n      return unless Bundler.bundle_path.to_s.split(path_separator).size > 1\n      message = \"Your bundle path contains text matching #{path_separator.inspect}, \" \\\n                \"which is the path separator for your system. Bundler cannot \" \\\n                \"function correctly when the Bundle path contains the \" \\\n                \"system's PATH separator. Please change your \" \\\n                \"bundle path to not match #{path_separator.inspect}.\" \\\n                \"\\nYour current bundle path is '#{Bundler.bundle_path}'.\"\n      raise Bundler::PathError, message\n    end\n\n    def find_gemfile\n      given = ENV[\"BUNDLE_GEMFILE\"]\n      return given if given && !given.empty?\n      find_file(*gemfile_names)\n    end\n\n    def gemfile_names\n      [\"gems.rb\", \"Gemfile\"]\n    end\n\n    def find_file(*names)\n      search_up(*names) do |filename|\n        return filename if File.file?(filename)\n      end\n    end\n","sourceCodeStart":228,"sourceCodeEnd":264,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/shared_helpers.rb#L228-L264","documentation":"Error \"Your bundle path contains text matching #{path_separator.inspect}, which is the path separator for your system. Bundler cannot function correctly when the Bundle path contains the system's PATH separator. Please change your bundle path to not match #{path_separator.inspect}.\nYour current bundle path is '#{Bundler.bundle_path}'.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/shared_helpers.rb:246 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"}