{"record":{"id":"971e7631d1e87c1a","repo":"Hmbown/CodeWhale","slug":"plugin-name-is-not-installed-at","errorCode":null,"errorMessage":"plugin '{name}' is not installed at {}","messagePattern":"plugin '(.+?)' is not installed at (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/plugins/install/mod.rs","lineNumber":493,"sourceCode":"        None,\n    )?;\n    match outcome {\n        PluginInstallOutcome::Installed(installed) => Ok(PluginUpdateResult::Updated(installed)),\n        PluginInstallOutcome::NeedsApproval(host) => Ok(PluginUpdateResult::NeedsApproval(host)),\n        PluginInstallOutcome::NetworkDenied(host) => Ok(PluginUpdateResult::NetworkDenied(host)),\n    }\n}\n\n/// Remove a plugin installed via `/plugin install`.\n///\n/// Refuses to touch any directory that doesn't carry the `.installed-from`\n/// marker — that's our cue that it's hand-placed and not ours to delete.\n/// Callers must require the bundle to be disabled first (the mutation\n/// controller does) and prune the registry state entry afterwards.\npub fn uninstall(name: &str, user_plugins_dir: &Path) -> Result<()> {\n    let target = plugin_target_path(name, user_plugins_dir)?;\n    if !target.exists() {\n        bail!(\"plugin '{name}' is not installed at {}\", target.display());\n    }\n    ensure_target_within_plugins_dir(&target, user_plugins_dir)?;\n    if !target.join(INSTALLED_FROM_MARKER).exists() {\n        return Err(PluginInstallError::NotInstalledHere(name.to_string()).into());\n    }\n    fs::remove_dir_all(&target)\n        .with_context(|| format!(\"failed to remove {}\", target.display()))?;\n    Ok(())\n}\n","sourceCodeStart":475,"sourceCodeEnd":503,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/plugins/install/mod.rs#L475-L503","documentation":"`uninstall` requires a plugin bundle directory to exist at the expected target path under the user plugins dir. If nothing is there, it bails with the resolved path so the user can see where it looked. Hand-placed bundles (no `.installed-from` marker) are separately refused with a distinct error.","triggerScenarios":"Calling `/plugin uninstall <name>` or `install::uninstall(name, user_plugins_dir)` when `<user_plugins_dir>/<name>` does not exist — the plugin was never installed here, already uninstalled, or installed under a different name.","commonSituations":"Typo in the plugin name; uninstalling on a different machine/profile than the install; a stale registry entry referencing a manually deleted directory.","solutions":["Check the exact name with `/plugin list` and use that name","Verify the directory exists under your user plugins dir (`ls <plugins_dir>/<name>`)","If the registry shows it but the directory is gone, the plugin is already uninstalled — prune the stale state entry instead of uninstalling"],"exampleFix":"// before: registry says 'My-Plugin' but dir is 'my-plugin'\n/plugin uninstall My-Plugin   # not installed at .../My-Plugin\n// after: use the on-disk name\n/plugin uninstall my-plugin","handlingStrategy":"validation","validationCode":"let target = user_plugins_dir.join(name);\nif !target.is_dir() {\n    eprintln!(\"{} not present under {}\", name, user_plugins_dir.display());\n    return;\n}","typeGuard":null,"tryCatchPattern":"match uninstall(name, dir) {\n    Err(e) if e.to_string().contains(\"is not installed at\") => {\n        eprintln!(\"already uninstalled (or wrong name); check /plugin list\");\n    }\n    Err(PluginInstallError::NotInstalledHere(_)) => {\n        eprintln!(\"hand-placed bundle without marker; remove manually\");\n    }\n    other => other?,\n}","preventionTips":["Copy names from /plugin list rather than typing them","Use the same user profile/machine for uninstall as for install","Clean registry state when deleting plugin directories manually"],"tags":["plugins","uninstall","not-found"],"backgroundTag":"file-not-found","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}