{"record":{"id":"81d5b12ae1bbbd4d","repo":"puppetlabs/puppet","slug":"only-one-of-the-delimiters-can-be-given","errorCode":null,"errorMessage":"Only one of the delimiters [ { ( < | can be given in the format flags, got '#{fmt}'","messagePattern":"Only one of the delimiters \\[ (.+?)'","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/pops/types/string_converter.rb","lineNumber":133,"sourceCode":"      flags  = match[1].split('') || []\n      unless flags.uniq.size == flags.size\n        raise ArgumentError, \"The same flag can only be used once, got '#{fmt}'\"\n      end\n\n      @left  = flags.include?('-')\n      @alt   = flags.include?('#')\n      @plus  = if flags.include?(' ')\n                 :space\n               else\n                 flags.include?('+') ? :plus : :ignore\n               end\n      @zero_pad = flags.include?('0')\n\n      @delimiters = nil\n      DELIMITERS.each do |d|\n        next unless flags.include?(d)\n        unless @delimiters.nil?\n          raise ArgumentError, \"Only one of the delimiters [ { ( < | can be given in the format flags, got '#{fmt}'\"\n        end\n\n        @delimiters = d\n      end\n\n      @width = match[2] ? match[2].to_i : nil\n      @prec  = match[3] ? match[3].to_i : nil\n    end\n\n    # Merges one format into this and returns a new `Format`. The `other` format overrides this.\n    # @param [Format] other\n    # @returns [Format] a merged format\n    #\n    def merge(other)\n      result = Format.new(other.orig_fmt)\n      result.separator = other.separator || separator\n      result.separator2 = other.separator2 || separator2\n      result.container_string_formats = Format.merge_string_formats(container_string_formats, other.container_string_formats)","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/pops/types/string_converter.rb#L115-L151","documentation":"Error \"Only one of the delimiters [ { ( < | can be given in the format flags, got '#{fmt}'\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/pops/types/string_converter.rb:133 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"}