{"record":{"id":"608b0bfc287752a1","repo":"BoundaryML/baml","slug":"version-is-a-local-path-and-is-not-managed-by-the-wrapper-so","errorCode":null,"errorMessage":"{version} is a local path and is not managed by the wrapper, so there is nothing to uninstall.\nTo stop using it, select a managed toolchain instead.\nRun: baml toolchain use canary\nOr:  baml toolchain use nightly","messagePattern":"(.+?) is a local path and is not managed by the wrapper, so there is nothing to uninstall\\.\nTo stop using it, select a managed toolchain instead\\.\nRun: baml toolchain use canary\nOr:  baml toolchain use nightly","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"baml_language/crates/baml/src/main.rs","lineNumber":1511,"sourceCode":"        println!(\"{channel}: {}\", state.active_version);\n    }\n    let installed = installed_toolchains();\n    if installed.is_empty() {\n        println!(\"installed toolchains: (none)\");\n    } else {\n        println!(\"installed toolchains:\");\n        for version in installed {\n            println!(\"  {version}\");\n        }\n    }\n    println!();\n    println!(\"Remote versions were not checked.\");\n    println!(\"Run: baml toolchain status\");\n}\n\nfn uninstall_toolchain(version: &str) -> Result<()> {\n    if is_path_selector(version) {\n        return Err(anyhow!(\n            \"{version} is a local path and is not managed by the wrapper, so there is nothing to uninstall.\\nTo stop using it, select a managed toolchain instead.\\nRun: baml toolchain use canary\\nOr:  baml toolchain use nightly\"\n        ));\n    }\n    let dir = toolchains_dir().join(version);\n    if !dir.exists() {\n        return Err(anyhow!(\"BAML toolchain {version} is not installed\"));\n    }\n    fs::remove_dir_all(dir)?;\n    println!(\"uninstalled BAML toolchain {version}\");\n    Ok(())\n}\n\n#[cfg(any(not(feature = \"self-update\"), feature = \"no-self-update\"))]\nfn self_update() -> Result<()> {\n    Err(anyhow!(\n        \"self-update is disabled in this build.\\nUpdate BAML with your package manager.\"\n    ))\n}","sourceCodeStart":1493,"sourceCodeEnd":1529,"githubUrl":"https://github.com/BoundaryML/baml/blob/bd85ce9dee1463ff04d27efd20531013a4ff46c1/baml_language/crates/baml/src/main.rs#L1493-L1529","documentation":"uninstall_toolchain only manages registry-installed toolchains under the toolchains directory. If the given version is a path selector (a local build), there is nothing installed to remove, so the wrapper explains this and points the user at switching selectors via `baml toolchain use` instead.","triggerScenarios":"Running `baml toolchain uninstall <version>` where is_path_selector(version) is true — the argument is a filesystem path to a locally built toolchain rather than an installed version name.","commonSituations":"Trying to \"uninstall\" a local dev build selected via --path; scripting cleanup that treats local builds like installed versions; forgetting that path-selected toolchains are not tracked by the wrapper.","solutions":["Delete the local build directory manually if you no longer need it.","Switch to a managed toolchain first: `baml toolchain use canary` or `baml toolchain use nightly`.","If you meant to remove a managed install, pass its version name (e.g. `baml toolchain uninstall 0.210.0`)."],"exampleFix":"// before\nbaml toolchain uninstall ./target/release/baml\n// after\nbaml toolchain use canary   # stop using the local path\nrm -rf ./target/release/baml   # remove the local build manually","handlingStrategy":"validation","validationCode":"const isPathSelector = (v: string) => v.startsWith('/') || v.startsWith('./') || v.includes('/');\nif (isPathSelector(version)) console.warn('local path toolchain: uninstall it manually, then `baml toolchain use canary`');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only pass registry version names to `baml toolchain uninstall`.","Track local builds outside the wrapper; remove their directories manually.","Switch to a managed toolchain (`baml toolchain use canary`) before cleaning up local builds."],"tags":["cli","toolchain","uninstall"],"backgroundTag":"unsupported-operation","analyzedSha":"bd85ce9dee1463ff04d27efd20531013a4ff46c1","analyzedAt":"2026-09-12T03:38:25.718Z","contentChangedAt":"2026-09-12T03:38:25.718Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}