{"record":{"id":"c48986f7d8dc6cba","repo":"jdx/mise","slug":"bin-name-is-not-a-valid-shim-this-likely-means","errorCode":null,"errorMessage":"{bin_name} is not a valid shim. This likely means you uninstalled a tool and the shim does not point to anything. Run `mise use <TOOL>` to reinstall the tool.","messagePattern":"(.+?) is not a valid shim\\. This likely means you uninstalled a tool and the shim does not point to anything\\. Run `mise use <TOOL>` to reinstall the tool\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/shims.rs","lineNumber":1856,"sourceCode":"    )\n    .await?;\n    file::make_executable_async(shim).await?;\n    trace!(\n        \"shim created from {} to {}\",\n        target.display(),\n        shim.display()\n    );\n    Ok(())\n}\n\nasync fn err_no_version_set(\n    config: &Arc<Config>,\n    ts: Toolset,\n    bin_name: &str,\n    tvs: Vec<ToolVersion>,\n) -> Result<PathBuf> {\n    if tvs.is_empty() {\n        bail!(\n            \"{bin_name} is not a valid shim. This likely means you uninstalled a tool and the shim does not point to anything. Run `mise use <TOOL>` to reinstall the tool.\"\n        );\n    }\n    let missing_plugins = tvs.iter().map(|tv| tv.ba()).collect::<HashSet<_>>();\n    let mut missing_tools = ts\n        .list_missing_versions(config)\n        .await\n        .into_iter()\n        .filter(|t| missing_plugins.contains(t.ba()))\n        .collect_vec();\n    if missing_tools.is_empty() {\n        if let Some(msg) = unavailable_configured_tool_message(config, &ts, bin_name) {\n            return Err(eyre!(msg));\n        }\n        let mut msg = format!(\"No version is set for shim: {bin_name}\\n\");\n        msg.push_str(\"Set a global default version with one of the following:\\n\");\n        for tv in tvs {\n            msg.push_str(&format!(\"mise use -g {}@{}\\n\", tv.ba(), tv.version));","sourceCodeStart":1838,"sourceCodeEnd":1874,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/shims.rs#L1838-L1874","documentation":"err_no_version_set resolved a shim's bin name to a toolset but the candidate ToolVersion list is empty — typically the tool was uninstalled or its versions removed while the shim file remained. The shim points at nothing, so mise tells you to reinstall with `mise use <TOOL>`.","triggerScenarios":"Thrown at src/shims.rs:1856 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `mise use <TOOL>` to (re)install a version of the tool","Remove the stale shim with `mise prune` or reinstall mise shims","Check `mise ls` to confirm the tool is installed"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}