{"record":{"id":"74ca8d81080db096","repo":"pry/pry","slug":"minimum-value-for-range-is-1-not-0","errorCode":null,"errorMessage":"Minimum value for range is 1, not 0.","messagePattern":"Minimum value for range is 1, not 0\\.","errorType":"exception","errorClass":"Pry::CommandError","httpStatus":null,"severity":"error","filePath":"lib/pry/commands/code_collector.rb","lineNumber":143,"sourceCode":"      end\n\n      # Name of the object argument\n      def obj_name\n        @obj_name ||= args.empty? ? \"\" : args.join(\" \")\n      end\n\n      private\n\n      def bad_option_combination?\n        [opts.present?(:in), opts.present?(:out),\n         !args.empty?].count(true) > 1\n      end\n\n      def pry_array_content_as_string(array, ranges)\n        all = ''\n        ranges.each do |range|\n          if convert_to_range(range).first == 0\n            raise CommandError, \"Minimum value for range is 1, not 0.\"\n          end\n\n          ranged_array = Array(array[range]) || []\n          ranged_array.compact.each { |v| all += yield(v) }\n        end\n\n        all\n      end\n\n      def code_object_doc\n        (code_object && code_object.doc) || could_not_locate(obj_name)\n      end\n\n      def code_object_source_or_file\n        (code_object && code_object.source) || file_content\n      end\n\n      def file_content","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/pry/pry/blob/135640262879544c6bfecbf3e78511289bfe956c/lib/pry/commands/code_collector.rb#L125-L161","documentation":"Error \"Minimum value for range is 1, not 0.\" thrown in pry/pry.","triggerScenarios":"Thrown at lib/pry/commands/code_collector.rb:143 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":"135640262879544c6bfecbf3e78511289bfe956c","analyzedAt":"2026-08-21T19:07:03.985Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}