jdx/mise · error
" ". : no recognized operation (block, source, or line)…
Error message
"{path_raw}".{id}: no recognized operation (block, source, or line), ignoring entry What it means
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.
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.
Example fix
# before [dotfiles."~/.zshrc".my-edit] position = "append" # after [dotfiles."~/.zshrc".my-edit] line = "export FOO=1" position = "append"
Defensive patterns
Strategy: validation
Validate before calling
for (id, e) in &entries {
if e.block.is_none() && e.source.is_none() && e.line.is_none() {
return Err(format!("entry {id}: needs one of block, source, or line"));
}
} Type guard
fn has_operation(e: &EditEntry) -> bool { e.block.is_some() || e.source.is_some() || e.line.is_some() } Prevention
- 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.
When it happens
Trigger: 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.
Common situations: 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.
Understand the failure class
Background: "is required", "must be set", "missing required field": configuration validation errors across open-source libraries — this error's family across 36 libraries.
Related errors
- destination variants require an explicit source when any…
- destination variants with inline content are not supported
- [dotfiles]." / ": block content may not contain its own…
- [dotfiles]." ": mode symlink-each requires a directory…
- files
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/d4ce316b6e45a448.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/edits.rs:302
EditTomlEntry::Block(inline) => EditTomlTable {
block: Some(inline),
source: None,
template: None,
line: None,
position: None,
comment: None,
},
EditTomlEntry::Table(table) => table,
};
let is_block = entry.block.is_some() || entry.source.is_some();
let op = match (&is_block, &entry.line) {
(true, Some(_)) => {
bail!(
"\"{path_raw}\".{id}: block/source and line are mutually exclusive, ignoring entry"
)
}
(false, None) => {
bail!(
"\"{path_raw}\".{id}: no recognized operation (block, source, or line), ignoring entry"
)
}
(true, None) => {
if entry.position.is_some() {
bail!("\"{path_raw}\".{id}: position is only valid with line, ignoring entry")
}
let source = match (entry.block, entry.source) {
(Some(_), Some(_)) => {
bail!(
"\"{path_raw}\".{id}: block and source are mutually exclusive, ignoring entry"
)
}
(Some(inline), None) => BlockSource::Inline(inline),
(None, Some(src)) => {
let src = file::replace_path(&src);
let src = if src.is_relative() {
base.join(src)View on GitHub (pinned to 533346cc37)