{"record":{"id":"5ff92d0634b692ff","repo":"ruby/rubygems","slug":"unable-to-find-name","errorCode":null,"errorMessage":"Unable to find '#{name}'","messagePattern":"Unable to find '#(.+?)'","errorType":"exception","errorClass":"Gem::Exception","httpStatus":null,"severity":"error","filePath":"lib/rubygems/source/specific_file.rb","lineNumber":36,"sourceCode":"    @path = ::File.expand_path(file)\n\n    @package = Gem::Package.new @path\n    @spec = @package.spec\n    @name = @spec.name_tuple\n  end\n\n  ##\n  # The Gem::Specification extracted from this .gem.\n\n  attr_reader :spec\n\n  def load_specs(*a) # :nodoc:\n    [@name]\n  end\n\n  def fetch_spec(name) # :nodoc:\n    return @spec if name == @name\n    raise Gem::Exception, \"Unable to find '#{name}'\"\n  end\n\n  def download(spec, dir = nil) # :nodoc:\n    return @path if spec == @spec\n    raise Gem::Exception, \"Unable to download '#{spec.full_name}'\"\n  end\n\n  def pretty_print(q) # :nodoc:\n    q.object_group(self) do\n      q.group 2, \"[SpecificFile:\", \"]\" do\n        q.breakable\n        q.text @path\n      end\n    end\n  end\n\n  ##\n  # Orders this source against +other+.","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/source/specific_file.rb#L18-L54","documentation":"Error \"Unable to find '#{name}'\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/source/specific_file.rb:36 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the path/name passed to the specific-file source; the file does not exist"],"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"}