{"record":{"id":"ffbe7ffe89b7a362","repo":"go-delve/delve","slug":"not-enough-arguments-to-clear-checkpoint","errorCode":null,"errorMessage":"not enough arguments to clear-checkpoint","messagePattern":"not enough arguments to clear-checkpoint","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/terminal/command.go","lineNumber":3409,"sourceCode":"\nfunc checkpoints(t *Term, ctx callContext, args string) error {\n\tcps, err := t.client.ListCheckpoints()\n\tif err != nil {\n\t\treturn err\n\t}\n\tw := new(tabwriter.Writer)\n\tw.Init(t.stdout, 4, 4, 2, ' ', 0)\n\tfmt.Fprintln(w, \"ID\\tWhen\\tNote\")\n\tfor _, cp := range cps {\n\t\tfmt.Fprintf(w, \"c%d\\t%s\\t%s\\n\", cp.ID, cp.When, cp.Where)\n\t}\n\tw.Flush()\n\treturn nil\n}\n\nfunc clearCheckpoint(t *Term, ctx callContext, args string) error {\n\tif len(args) == 0 {\n\t\treturn errors.New(\"not enough arguments to clear-checkpoint\")\n\t}\n\tif args[0] != 'c' {\n\t\treturn errors.New(\"clear-checkpoint argument must be a checkpoint ID\")\n\t}\n\tid, err := strconv.Atoi(args[1:])\n\tif err != nil {\n\t\treturn errors.New(\"clear-checkpoint argument must be a checkpoint ID\")\n\t}\n\treturn t.client.ClearCheckpoint(id)\n}\n\nfunc display(t *Term, ctx callContext, args string) error {\n\tconst (\n\t\taddOption = \"-a \"\n\t\tdelOption = \"-d \"\n\t)\n\tswitch {\n\tcase args == \"\":","sourceCodeStart":3391,"sourceCodeEnd":3427,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/terminal/command.go#L3391-L3427","documentation":"Error \"not enough arguments to clear-checkpoint\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/terminal/command.go:3409 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":"a23773e6c31361e43246bc43a424ee009679b174","analyzedAt":"2026-08-31T15:12:45.221Z","schemaVersion":2},"datasetVersion":"2026-08-31T19:17:28.585Z"}