zed-industries/zed · error
Failed to write markdown file
Error message
Failed to write markdown file
What it means
A panic in the edit-prediction CLI when writing an individual markdown report file for an example (in --markdown mode) fails. The per-example result cannot be persisted, so the run aborts with this message.
Source
Thrown at crates/edit_prediction_cli/src/main.rs:1443
failfast_on_single_example,
&example,
)
.await;
true
} else {
false
};
let should_write = !failed || args.failed == FailedHandling::Keep;
if should_write {
if args.markdown {
let markdown_dir =
output.as_ref().expect("--markdown requires -o");
let filename = format!("{}.md", example.spec.filename());
let path = markdown_dir.join(&filename);
let markdown = example.spec.to_markdown();
std::fs::write(&path, &markdown)
.expect("Failed to write markdown file");
} else if let Some(ref mut sender) = output_sender.clone() {
let line = serde_json::to_string(&example).unwrap();
sender
.send(line)
.await
.expect("Failed to send to output writer");
} else if args.output.is_none()
&& !matches!(command, Command::Eval(_))
{
let line = serde_json::to_string(&example).unwrap();
println!("{}", line);
}
}
}
let project = repo_examples
.iter()
.find_map(|e| e.state.as_ref().map(|s| s.project.clone()));View on GitHub (pinned to f4178619ac)
Solutions
- Verify the markdown output directory from `-o` is writable
- Free disk space and re-run the affected examples
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at crates/edit_prediction_cli/src/main.rs:1443 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/3b71ae72755a5255.
Report an issue: GitHub.