{"record":{"id":"c0146dfbbe336e3d","repo":"ruby/rubygems","slug":"filename-from-spec-name-conflicts-with-c","errorCode":null,"errorMessage":"\"#{filename}\" from #{spec.name} conflicts with #{conflict}","messagePattern":"\"#(.+?)\" from #(.+?) conflicts with #(.+?)","errorType":"exception","errorClass":"Gem::InstallError","httpStatus":null,"severity":"error","filePath":"lib/rubygems/installer.rb","lineNumber":239,"sourceCode":"    return if Gem.default_bindir != @bin_dir && !ruby_executable\n\n    question = \"#{spec.name}'s executable \\\"#{filename}\\\" conflicts with \".dup\n\n    if ruby_executable\n      question << (existing || \"an unknown executable\")\n\n      return if ask_yes_no \"#{question}\\nOverwrite the executable?\", false\n\n      conflict = \"installed executable from #{existing}\"\n    else\n      question << generated_bin\n\n      return if ask_yes_no \"#{question}\\nOverwrite the executable?\", false\n\n      conflict = generated_bin\n    end\n\n    raise Gem::InstallError,\n      \"\\\"#{filename}\\\" from #{spec.name} conflicts with #{conflict}\"\n  end\n\n  ##\n  # Lazy accessor for the spec's gem directory.\n\n  def gem_dir\n    @gem_dir ||= File.join(gem_home, \"gems\", spec.full_name)\n  end\n\n  ##\n  # Lazy accessor for the installer's spec.\n\n  def spec\n    @package.spec\n  end\n\n  ##","sourceCodeStart":221,"sourceCodeEnd":257,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/installer.rb#L221-L257","documentation":"Error \"\"#{filename}\" from #{spec.name} conflicts with #{conflict}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/installer.rb:239 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Uninstall the gem that owns the conflicting file, then reinstall","Reinstall with `gem install --force` if you accept overwriting the conflicting file"],"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"}