{"record":{"id":"211cd2933aa4a597","repo":"jdx/mise","slug":"is-not-captured-reason","errorCode":null,"errorMessage":"{} is not captured; {reason}","messagePattern":"(.+?) is not captured; (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/dotfiles/save.rs","lineNumber":99,"sourceCode":"                if !captured {\n                    // saving a deleted manual-save path saves the deletion,\n                    // provided the path was captured before (a path that\n                    // never existed is not a deletion)\n                    let deletion = tracked\n                        .entry_for(&path)\n                        .is_some_and(|entry| !entry.policy.autosave)\n                        && std::fs::symlink_metadata(&path)\n                            .is_err_and(|err| err.kind() == std::io::ErrorKind::NotFound)\n                        && previously_captured(&store, &entries, &path)?;\n                    if deletion {\n                        continue;\n                    }\n                    let reason = if tracked.entry_for(&path).is_some() {\n                        \"it is excluded, missing, or omitted from capture\"\n                    } else {\n                        \"track it with `mise dot track`\"\n                    };\n                    bail!(\"{} is not captured; {reason}\", display_path(&path));\n                }\n            }\n        }\n        let mut draft = Draft::new(trigger);\n        draft.explicit_paths = self\n            .paths\n            .iter()\n            .map(|path| normalize_target(path))\n            .collect();\n        draft.description = self.description.clone();\n        draft.description_source = Some(if trigger == Trigger::Agent {\n            DescriptionSource::Agent\n        } else {\n            DescriptionSource::User\n        });\n        draft.task = self.task.clone();\n        draft.labels = self.label.clone();\n        tokio::task::spawn_blocking(move || self.save_checkpoint(&store, &tracked, draft)).await?","sourceCodeStart":81,"sourceCodeEnd":117,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/dotfiles/save.rs#L81-L117","documentation":"When `mise dot save` is given explicit paths, each path must be capturable: it must be a tracked dotfile entry that is present and not excluded. Untracked paths fail with 'track it with `mise dot track`'; tracked-but-unavailable paths fail with the exclusion/missing reason.","triggerScenarios":"Running `mise dot save <path>` where the path has no entry in the tracked set, or where entry_for() exists but the file is excluded, missing on disk, or omitted from capture.","commonSituations":"Saving a dotfile before ever tracking it; saving a path whose file was deleted or moved; saving a path excluded by capture rules (e.g. via ignore patterns); typos in the path argument.","solutions":["Track the file first: `mise dot track <path>`","If tracked but failing, verify the file exists at the declared path and is not excluded from capture","Check the exact path spelling"],"exampleFix":"// before\nmise dot save ~/.zshrc        // fails if never tracked\n// after\nmise dot track ~/.zshrc\nmise dot save ~/.zshrc","handlingStrategy":"validation","validationCode":"path=\"$HOME/.zshrc\"\nmise dot status --target \"$path\" | grep -q \"$path\" || {\n  echo \"$path not tracked or not capturable; run mise dot track $path\"\n}\n[ -f \"$path\" ] || echo \"$path missing on disk\"","typeGuard":null,"tryCatchPattern":"mise dot save \"$path\" || {\n  mise dot track \"$path\" && mise dot save \"$path\"\n}","preventionTips":["Track files with mise dot track before saving them","Ensure tracked files exist and are not excluded by capture rules","Verify path spelling against `mise dot status` output"],"tags":["cli","dotfiles","path-validation"],"backgroundTag":"resource-not-found","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"}