{"record":{"id":"83fc765a96cc1bab","repo":"jdx/mise","slug":"path-raw-id-unknown-template-engine-other","errorCode":null,"errorMessage":"\"{path_raw}\".{id}: unknown template engine '{other}' (expected \"tera\"), ignoring entry","messagePattern":"\"(.+?)\"\\.(.+?): unknown template engine '(.+?)' \\(expected \"tera\"\\), ignoring entry","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/edits.rs","lineNumber":333,"sourceCode":"                }\n                (Some(inline), None) => BlockSource::Inline(inline),\n                (None, Some(src)) => {\n                    let src = file::replace_path(&src);\n                    let src = if src.is_relative() {\n                        base.join(src)\n                    } else {\n                        src\n                    };\n                    origin.source = Some(src.clone());\n                    BlockSource::File(src)\n                }\n                (None, None) => unreachable!(\"is_block\"),\n            };\n            let template = match entry.template.as_deref() {\n                None => false,\n                Some(\"tera\") => true,\n                Some(other) => {\n                    bail!(\n                        \"\\\"{path_raw}\\\".{id}: unknown template engine '{other}' (expected \\\"tera\\\"), ignoring entry\"\n                    )\n                }\n            };\n            let comment = entry\n                .comment\n                .unwrap_or_else(|| infer_comment(&path).to_string());\n            EditOp::Block {\n                source,\n                template,\n                comment,\n            }\n        }\n        (false, Some(line)) => {\n            // a \"line\" is matched against the file's individual lines, so an\n            // embedded newline could never converge — use a block for\n            // multi-line content\n            if line.contains('\\n') {","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/edits.rs#L315-L351","documentation":"The `template` field of an edit entry opts the content into templating and currently only accepts the value \"tera\". Any other string causes `resolve_entry` to bail and ignore the entry, since mise cannot render an engine it does not know.","triggerScenarios":"An entry sets `template = \"jinja\"` (or `true`, `handlebars`, etc.). `resolve_entry` matches `Some(other)` in the template match and bails at src/system/edits.rs:333.","commonSituations":"Users assume other template engines are supported, copy an entry from a different tool, or pass a boolean instead of the string \"tera\".","solutions":["Set `template = \"tera\"` exactly (a string, not a boolean).","Remove the `template` field if templating is not needed.","Re-run the edits command to confirm the entry is applied."],"exampleFix":"# before\n[dotfiles.\"~/.zshrc\".greeting]\nblock = \"echo hi {{ env.USER }}\"\ntemplate = \"jinja\"\n\n# after\n[dotfiles.\"~/.zshrc\".greeting]\nblock = \"echo hi {{ env.USER }}\"\ntemplate = \"tera\"","handlingStrategy":"validation","validationCode":"if let Some(t) = &e.template {\n    if t != \"tera\" {\n        return Err(format!(\"template must be \\\"tera\\\" (or omitted), got {t}\"));\n    }\n}","typeGuard":"fn is_valid_template(t: &Option<String>) -> bool {\n    t.as_deref().map_or(true, |v| v == \"tera\")\n}","tryCatchPattern":null,"preventionTips":["Use the literal string \"tera\" — never a boolean or another engine's name.","Omit `template` entirely when no templating is needed.","Check the mise docs for the currently supported template engine before adding the field."],"tags":["config","validation","templates","dotfiles"],"backgroundTag":"invalid-enum-value","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}