{"record":{"id":"3b71ae72755a5255","repo":"zed-industries/zed","slug":"failed-to-write-markdown-file","errorCode":null,"errorMessage":"Failed to write markdown file","messagePattern":"Failed to write markdown file","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/edit_prediction_cli/src/main.rs","lineNumber":1443,"sourceCode":"                                        failfast_on_single_example,\n                                        &example,\n                                    )\n                                    .await;\n                                    true\n                                } else {\n                                    false\n                                };\n\n                                let should_write = !failed || args.failed == FailedHandling::Keep;\n                                if should_write {\n                                    if args.markdown {\n                                        let markdown_dir =\n                                            output.as_ref().expect(\"--markdown requires -o\");\n                                        let filename = format!(\"{}.md\", example.spec.filename());\n                                        let path = markdown_dir.join(&filename);\n                                        let markdown = example.spec.to_markdown();\n                                        std::fs::write(&path, &markdown)\n                                            .expect(\"Failed to write markdown file\");\n                                    } else if let Some(ref mut sender) = output_sender.clone() {\n                                        let line = serde_json::to_string(&example).unwrap();\n                                        sender\n                                            .send(line)\n                                            .await\n                                            .expect(\"Failed to send to output writer\");\n                                    } else if args.output.is_none()\n                                        && !matches!(command, Command::Eval(_))\n                                    {\n                                        let line = serde_json::to_string(&example).unwrap();\n                                        println!(\"{}\", line);\n                                    }\n                                }\n                            }\n\n                            let project = repo_examples\n                                .iter()\n                                .find_map(|e| e.state.as_ref().map(|s| s.project.clone()));","sourceCodeStart":1425,"sourceCodeEnd":1461,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/edit_prediction_cli/src/main.rs#L1425-L1461","documentation":"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.","triggerScenarios":"Thrown at crates/edit_prediction_cli/src/main.rs:1443 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the markdown output directory from `-o` is writable","Free disk space and re-run the affected examples"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}