sipeed/picoclaw · error
create out dir
Error message
create out dir: %w
What it means
Wrapped os.MkdirAll failure in runIngest's seahorse branch: the output directory (flagOut) that must hold seahorse.db cannot be created, usually because a parent path component exists as a file, or the location is not writable. Occurs before any ingestion work; only adds 'create out dir' context.
Solutions
- Check that --out (and its parents) name directories or creatable paths, not files
- Verify write permission on the parent of the output dir
- Free disk space or clear an existing read-only directory at that path
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at cmd/membench/main.go:157 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/28987bab0342128e.
Report an issue: GitHub.
Appendix: source
Thrown at cmd/membench/main.go:157
ctx := context.Background()
samples, err := LoadDataset(flagData)
if err != nil {
return fmt.Errorf("load dataset: %w", err)
}
log.Printf("Loaded %d samples from %s", len(samples), flagData)
for _, mode := range modes {
switch mode {
case "legacy":
legacy := NewLegacyStore()
for i := range samples {
legacy.IngestSample(&samples[i])
}
log.Printf("legacy: ingested %d samples", len(samples))
case "seahorse":
dbPath := filepath.Join(flagOut, "seahorse.db")
if err := os.MkdirAll(flagOut, 0o755); err != nil {
return fmt.Errorf("create out dir: %w", err)
}
_, err := IngestSeahorse(ctx, samples, dbPath)
if err != nil {
return fmt.Errorf("ingest seahorse: %w", err)
}
}
}
return nil
}
func runEval(cmd *cobra.Command, args []string) error {
if flagData == "" {
return fmt.Errorf("--data is required")
}
modes := modesFromFlag()
if len(modes) == 0 {
return nil
}View on GitHub (pinned to 49183d7e8d)