{"record":{"id":"a28df8c94645e1ad","repo":"jdx/mise","slug":"is-not-a-conflict","errorCode":null,"errorMessage":"{} is not a conflict","messagePattern":"(.+?) is not a conflict","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/history/sync/apply.rs","lineNumber":302,"sourceCode":"                        &conflict.branch_path,\n                        remote.as_ref(),\n                    )?,\n                    live_mode: live_permissions(&local)?,\n                    local: saved,\n                    remote,\n                    live,\n                    take_remote: take_remote.contains(&local),\n                },\n            );\n        }\n    }\n    for path in take_remote.iter().chain(keep_local.iter()) {\n        if !status\n            .conflicts\n            .iter()\n            .any(|conflict| roots.locate(&conflict.branch_path).path() == Some(path.as_path()))\n        {\n            bail!(\"{} is not a conflict\", display_path(path));\n        }\n    }\n    run::refresh(store, tracked, &mut status)?;\n    if !req.dry_run {\n        run::write_status(state_dir, &status)?;\n    }\n    if !status.conflicts.is_empty() {\n        if req.dry_run {\n            // Preview the whole paused setup even when reconciliation\n            // cannot yet produce an applicable write set.\n            let mut table = MiseTable::new(false, &[\"Path\", \"Action\", \"Group\"]);\n            for conflict in &status.conflicts {\n                if let Some(path) = roots.locate(&conflict.branch_path).path() {\n                    table.add_row(vec![\n                        display_path(path),\n                        \"held: unresolved conflict\".to_string(),\n                        conflict.branch_path.clone(),\n                    ]);","sourceCodeStart":284,"sourceCodeEnd":320,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/history/sync/apply.rs#L284-L320","documentation":"Thrown when a path passed to `mise dot pull --take-remote` or `--keep-local` does not correspond to any path currently registered as a sync conflict. The command validates every explicitly chosen path against the conflict list from the sync status and fails fast rather than recording a meaningless resolution.","triggerScenarios":"Passing a path that is not currently conflicted (already resolved, never diverged, untracked, or a typo) to `mise dot pull --take-remote <path>` or `--keep-local <path>`; the loop at apply.rs:296 checks each requested path against `status.conflicts`.","commonSituations":"Typo in the path; the conflict was already resolved in a previous pull; the path is tracked but not conflicted; running the flag form when no conflicts exist at all.","solutions":["Run `mise dot status` and use only paths it lists as conflicted.","If already resolved, no action is needed — omit the flag for that path.","Verify the path is exactly the enrolled local path (after symlink/root mapping) that `mise dot status` reports."],"exampleFix":"before: mise dot pull --take-remote ~/.zshrc (not a conflict) | after: mise dot status, then mise dot pull --take-remote ~/.config/git/config","handlingStrategy":"validation","validationCode":"mise dot status  # only pass paths listed as conflicted to --take-remote/--keep-local","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Copy conflicted paths from `mise dot status` output instead of typing them from memory.","After any pull, re-check status before issuing path-specific resolutions.","Don't pass already-resolved or untracked paths to resolution flags."],"tags":["sync","conflict-resolution","cli","validation"],"backgroundTag":"invalid-argument-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"}