{"record":{"id":"54b0c51b30967582","repo":"zed-industries/zed","slug":"prettier-description-failed-to-spawn-error","errorCode":null,"errorMessage":"{prettier_description} failed to spawn: {error:#}","messagePattern":"(.+?) failed to spawn: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/prettier_store.rs","lineNumber":807,"sourceCode":"        Err(error) => {\n            prettier_store\n                .update(cx, |project, _| {\n                    let instance_to_update = match prettier_path {\n                        Some(prettier_path) => project.prettier_instances.get_mut(&prettier_path),\n                        None => match &mut project.default_prettier.prettier {\n                            PrettierInstallation::NotInstalled { .. } => None,\n                            PrettierInstallation::Installed(instance) => Some(instance),\n                        },\n                    };\n\n                    if let Some(instance) = instance_to_update {\n                        instance.attempt += 1;\n                        instance.prettier = None;\n                    }\n                })\n                .log_err();\n\n            Some(Err(anyhow!(\n                \"{prettier_description} failed to spawn: {error:#}\"\n            )))\n        }\n    }\n}\n\n#[derive(Debug)]\npub struct DefaultPrettier {\n    prettier: PrettierInstallation,\n    installed_plugins: HashSet<Arc<str>>,\n}\n\n#[derive(Debug)]\npub enum PrettierInstallation {\n    NotInstalled {\n        attempts: usize,\n        installation_task: Option<Shared<Task<Result<(), Arc<anyhow::Error>>>>>,\n        not_installed_plugins: HashSet<Arc<str>>,","sourceCodeStart":789,"sourceCodeEnd":825,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/project/src/prettier_store.rs#L789-L825","documentation":"The prettier server process failed to spawn (bad node runtime, missing prettier installation, or OS spawn error); the error is fully chained ({error:#}) and the affected prettier instance is marked failed.","triggerScenarios":"Thrown at crates/project/src/prettier_store.rs:807 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install a working Node.js runtime","Reinstall prettier packages via the prettier settings","Check the chained error for the underlying spawn failure"],"exampleFix":null,"handlingStrategy":"try-catch","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-14T00:17:10.932Z"}