{"record":{"id":"043a1b287164b035","repo":"zed-industries/zed","slug":"could-not-parse-error-count-snippet-suffix-in-f","errorCode":null,"errorMessage":"Could not parse {error_count} snippet{suffix} in file {snippet_path:?}:\n\n{snippet_errors}","messagePattern":"Could not parse (.+?) snippet(.+?) in file (.+?):\n\n(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/extension_cli/src/main.rs","lineNumber":583,"sourceCode":"\n            match file_name {\n                LanguageConfig::FILE_NAME => {\n                    // Loaded above\n                }\n                SemanticTokenRules::FILE_NAME => {\n                    let _token_rules = SemanticTokenRules::load(&file_path)?;\n                }\n                TaskTemplates::FILE_NAME => {\n                    let task_file_content = std::fs::read(&file_path).with_context(|| {\n                        anyhow!(\n                            \"Failed to read tasks file at {path}\",\n                            path = file_path.display()\n                        )\n                    })?;\n                    let _task_templates =\n                        serde_json_lenient::from_slice::<TaskTemplates>(&task_file_content)\n                            .with_context(|| {\n                                anyhow!(\n                                    \"Failed to parse tasks file at {path}\",\n                                    path = file_path.display()\n                                )\n                            })?;\n                }\n                _ => {\n                    if let Ok(_query) = file_name.parse::<QueryFile>() {\n                        let grammar = grammar.with_context(|| {\n                            format! {\n                                \"language {} provides query {} but no grammar\",\n                                config.name,\n                                file_path.display()\n                            }\n                        })?;\n\n                        let query_source = fs::read_to_string(&file_path)?;\n                        let _query = Query::new(grammar, &query_source)?;\n                    } else if file_name.ends_with(\".scm\") {","sourceCodeStart":565,"sourceCodeEnd":601,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/extension_cli/src/main.rs#L565-L601","documentation":"The snippet file parsed as a VsSnippetsFile, but file_to_snippets found {error_count} individual snippet entries that are individually malformed. The error aggregates all failing snippets ({snippet_errors}) for the file, so the file structure is fine while specific snippet bodies (e.g. invalid placeholder syntax) are rejected.","triggerScenarios":"Thrown at crates/extension_cli/src/main.rs:558 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix each listed snippet per the aggregated errors — commonly bad $1/${...} placeholder syntax or non-array body","Remove or quarantine the broken snippets and iterate until error_count is zero"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}