{"record":{"id":"cdbe8b6c02974f70","repo":"zed-industries/zed","slug":"required-argument","errorCode":null,"errorMessage":"Required argument","messagePattern":"Required argument","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/docs_preprocessor/src/main.rs","lineNumber":79,"sourceCode":"\n    fn keymap(self, os: Os) -> &'static KeymapFile {\n        match (self, os) {\n            (Self::JetBrains, Os::MacOs) => &KEYMAP_JETBRAINS_MACOS,\n            (Self::JetBrains, Os::Linux | Os::Windows) => &KEYMAP_JETBRAINS_LINUX,\n        }\n    }\n}\n\nconst FRONT_MATTER_COMMENT: &str = \"<!-- ZED_META {} -->\";\n\nfn main() -> Result<()> {\n    zlog::init();\n    zlog::init_output_stderr();\n    let args = std::env::args().skip(1).collect::<Vec<_>>();\n\n    match args.get(0).map(String::as_str) {\n        Some(\"supports\") => {\n            let renderer = args.get(1).expect(\"Required argument\");\n            let supported = renderer != \"not-supported\";\n            if supported {\n                process::exit(0);\n            } else {\n                process::exit(1);\n            }\n        }\n        Some(\"postprocess\") => handle_postprocessing()?,\n        _ => handle_preprocessing()?,\n    }\n\n    Ok(())\n}\n\n#[derive(Debug, Clone, PartialEq, Eq, Hash)]\nenum PreprocessorError {\n    ActionNotFound {\n        action_name: String,","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/docs_preprocessor/src/main.rs#L61-L97","documentation":"Panics in the docs preprocessor's mdbook `supports` subcommand when the renderer name argument is missing. mdbook invokes `supports <renderer>` and this binary requires exactly that argument; it is a build-time tool, not user-facing.","triggerScenarios":"Thrown at crates/docs_preprocessor/src/main.rs:79 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Invoke the preprocessor as mdbook expects: `docs_preprocessor supports <renderer>`","Check the mdbook backend configuration points at the right command"],"exampleFix":null,"handlingStrategy":"validation","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"}