{"record":{"id":"d4ce316b6e45a448","repo":"jdx/mise","slug":"path-raw-id-no-recognized-operation-block","errorCode":null,"errorMessage":"\"{path_raw}\".{id}: no recognized operation (block, source, or line), ignoring entry","messagePattern":"\"(.+?)\"\\.(.+?): no recognized operation \\(block, source, or line\\), ignoring entry","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/edits.rs","lineNumber":302,"sourceCode":"        EditTomlEntry::Block(inline) => EditTomlTable {\n            block: Some(inline),\n            source: None,\n            template: None,\n            line: None,\n            position: None,\n            comment: None,\n        },\n        EditTomlEntry::Table(table) => table,\n    };\n    let is_block = entry.block.is_some() || entry.source.is_some();\n    let op = match (&is_block, &entry.line) {\n        (true, Some(_)) => {\n            bail!(\n                \"\\\"{path_raw}\\\".{id}: block/source and line are mutually exclusive, ignoring entry\"\n            )\n        }\n        (false, None) => {\n            bail!(\n                \"\\\"{path_raw}\\\".{id}: no recognized operation (block, source, or line), ignoring entry\"\n            )\n        }\n        (true, None) => {\n            if entry.position.is_some() {\n                bail!(\"\\\"{path_raw}\\\".{id}: position is only valid with line, ignoring entry\")\n            }\n            let source = match (entry.block, entry.source) {\n                (Some(_), Some(_)) => {\n                    bail!(\n                        \"\\\"{path_raw}\\\".{id}: block and source are mutually exclusive, ignoring entry\"\n                    )\n                }\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)","sourceCodeStart":284,"sourceCodeEnd":320,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/edits.rs#L284-L320","documentation":"Every `[dotfiles]` edit entry must contain at least one recognized operation field: `block`, `source`, or `line`. When `resolve_entry` finds an entry with none of these (the `(false, None)` match arm), it cannot determine what edit to perform, so it bails and skips the entry. This prevents silently creating an edit that would do nothing.","triggerScenarios":"An edit entry defines only metadata fields such as `position`, `comment`, or `template` without `block`, `source`, or `line`. `resolve_entry` matches `(is_block=false, line=None)` and bails at src/system/edits.rs:302.","commonSituations":"Typo'd field names (e.g. `lines` instead of `line`, `blocks` instead of `block`), entries left as empty tables after deleting content, or template/comment-only entries the user expected to be enough.","solutions":["Add one of `block`, `source`, or `line` to the entry.","Check field spelling — mise only recognizes block/source/line as operation fields.","Remove the entry entirely if no edit is intended.","Re-run the edits command and confirm the entry is no longer ignored."],"exampleFix":"# before\n[dotfiles.\"~/.zshrc\".my-edit]\nposition = \"append\"\n\n# after\n[dotfiles.\"~/.zshrc\".my-edit]\nline = \"export FOO=1\"\nposition = \"append\"","handlingStrategy":"validation","validationCode":"for (id, e) in &entries {\n    if e.block.is_none() && e.source.is_none() && e.line.is_none() {\n        return Err(format!(\"entry {id}: needs one of block, source, or line\"));\n    }\n}","typeGuard":"fn has_operation(e: &EditEntry) -> bool { e.block.is_some() || e.source.is_some() || e.line.is_some() }","tryCatchPattern":null,"preventionTips":["Give every edit entry at least one of block/source/line before committing the config.","Double-check field spelling; only block/source/line are recognized operations.","Delete leftover empty entry tables instead of leaving metadata-only stubs."],"tags":["config","validation","dotfiles"],"backgroundTag":"missing-required-config-field","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"}