{"record":{"id":"dfe035d79e39adaa","repo":"sipeed/picoclaw","slug":"no-eval-results-found-in-s","errorCode":null,"errorMessage":"no eval results found in %s","messagePattern":"no eval results found in (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/membench/main.go","lineNumber":300,"sourceCode":"\tfor _, entry := range entries {\n\t\tif !entry.IsDir() && strings.HasPrefix(entry.Name(), \"eval_\") && strings.HasSuffix(entry.Name(), \".json\") {\n\t\t\tpath := filepath.Join(flagOut, entry.Name())\n\t\t\tvar r EvalResult\n\t\t\tdata, err := os.ReadFile(path)\n\t\t\tif err != nil {\n\t\t\t\tlog.Printf(\"WARN: read %s: %v\", path, err)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tif err := json.Unmarshal(data, &r); err != nil {\n\t\t\t\tlog.Printf(\"WARN: parse %s: %v\", path, err)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\tallResults = append(allResults, r)\n\t\t}\n\t}\n\n\tif len(allResults) == 0 {\n\t\treturn fmt.Errorf(\"no eval results found in %s\", flagOut)\n\t}\n\n\tvar tokenResults, llmResults []EvalResult\n\tfor _, r := range allResults {\n\t\tif strings.HasSuffix(r.Mode, \"-llm\") {\n\t\t\tllmResults = append(llmResults, r)\n\t\t} else {\n\t\t\ttokenResults = append(tokenResults, r)\n\t\t}\n\t}\n\tPrintComparison(tokenResults, llmResults)\n\treturn nil\n}\n\nfunc runAll(cmd *cobra.Command, args []string) error {\n\treturn runEval(cmd, args)\n}\n","sourceCodeStart":282,"sourceCodeEnd":318,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/cmd/membench/main.go#L282-L318","documentation":"Validation guard in runReport: the --out directory was read successfully, but after scanning every entry no eval_*.json file decoded into an EvalResult — either no eval files exist there at all, or every candidate file was skipped by the WARN-and-continue handlers above (unreadable or unparseable). len(allResults)==0 is the trigger; %s is the searched directory.","triggerScenarios":"Thrown at cmd/membench/main.go:300 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Point --out at the directory produced by membench eval (containing eval_*.json files)","Re-run the eval to regenerate result files","Check the WARN log lines above the error — they name each file that failed to read or parse","Rename misplaced result files so they match the eval_*.json pattern"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","contentChangedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}