{"record":{"id":"7d211eb75779df4e","repo":"puppetlabs/puppet","slug":"command-name-is-missing","errorCode":null,"errorMessage":"Command %{name} is missing","messagePattern":"Command %(.+?) is missing","errorType":"exception","errorClass":"Puppet::MissingCommand","httpStatus":null,"severity":"error","filePath":"lib/puppet/provider/command.rb","lineNumber":24,"sourceCode":"  attr_reader :name\n\n  # @param [String] name A way of referencing the name\n  # @param [String] executable The path to the executable file\n  # @param resolver An object for resolving the executable to an absolute path (usually Puppet::Util)\n  # @param executor An object for performing the actual execution of the command (usually Puppet::Util::Execution)\n  # @param [Hash] options Extra options to be used when executing (see Puppet::Util::Execution#execute)\n  def initialize(name, executable, resolver, executor, options = {})\n    @name = name\n    @executable = executable\n    @resolver = resolver\n    @executor = executor\n    @options = options\n  end\n\n  # @param args [Array<String>] Any command line arguments to pass to the executable\n  # @return The output from the command\n  def execute(*args)\n    resolved_executable = @resolver.which(@executable) or raise Puppet::MissingCommand, _(\"Command %{name} is missing\") % { name: @name }\n    @executor.execute([resolved_executable] + args, @options)\n  end\nend\n","sourceCodeStart":6,"sourceCodeEnd":28,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/provider/command.rb#L6-L28","documentation":"Error \"Command %{name} is missing\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/provider/command.rb:24 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":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}