{"record":{"id":"d17f75799fd6e27f","repo":"jdx/mise","slug":"bin-name-is-a-mise-bin-however-it-is-not-current","errorCode":null,"errorMessage":"{bin_name} is a mise bin however it is not currently active. Use `mise use` to activate it in this directory.","messagePattern":"(.+?) is a mise bin however it is not currently active\\. Use `mise use` to activate it in this directory\\.","errorType":"exception","errorClass":"eyre::Report","httpStatus":null,"severity":"error","filePath":"src/cli/which.rs","lineNumber":66,"sourceCode":"            Some((p, tv)) => {\n                if self.version {\n                    miseprintln!(\"{}\", tv.version);\n                } else if self.plugin {\n                    miseprintln!(\"{p}\");\n                } else {\n                    let path = p.which(&config, &tv, &bin_name).await?;\n                    miseprintln!(\"{}\", path.unwrap().display());\n                }\n                Ok(())\n            }\n            None => {\n                if let Some(msg) =\n                    crate::shims::unavailable_configured_tool_message(&config, &ts, &bin_name)\n                {\n                    bail!(msg);\n                }\n                if self.has_shim(&bin_name) {\n                    bail!(\n                        \"{bin_name} is a mise bin however it is not currently active. Use `mise use` to activate it in this directory.\"\n                    )\n                } else {\n                    bail!(\"{bin_name} is not a mise bin. Perhaps you need to install it first.\",)\n                }\n            }\n        }\n    }\n    async fn complete(&self, config: &Arc<Config>) -> Result<()> {\n        let ts = self.get_toolset(config).await?;\n        let bins = ts\n            .list_paths(config)\n            .await\n            .into_iter()\n            .flat_map(|p| file::ls(&p).unwrap_or_default())\n            .map(|p| p.file_name().unwrap().to_string_lossy().to_string())\n            .unique()\n            .sorted()","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/jdx/mise/blob/9dcfcaa0dc8747a2577d3270b69bb9d8313b2807/src/cli/which.rs#L48-L84","documentation":"`mise which <bin>` found no active toolset entry, but a shim for that bin exists in the shims directory (has_shim). Meaning: some config on the machine uses this tool, but the toolset resolved from the current directory's config chain does not include it — the bin is 'known but not active here'. The fix suggested in the message is `mise use`.","triggerScenarios":"`mise which node` in a project whose mise.toml doesn't list node, while another project (or the global config) does and created the shim; shim left over from a previous `mise use` in that directory; tool used via `mise x` elsewhere.","commonSituations":"cd-ing between projects where only some activate the tool; global config cleaned up but shims remain; expecting global tools to resolve inside a project with its own mise.toml that omits them.","solutions":["Activate the tool where you need it: `mise use <tool>` (project) or `mise use -g <tool>` (global)","If it should come from the global config, verify `mise ls -g` still lists it and the project isn't overriding","Clean stale shims with `mise prune` if the tool is intentionally inactive everywhere"],"exampleFix":"# before\n$ mise which rg\n# error: rg is a mise bin however it is not currently active. Use `mise use` to activate it in this directory.\n\n# after\n$ mise use ripgrep\n$ mise which rg","handlingStrategy":"validation","validationCode":"bin=\"rg\"\nmise which \"$bin\" >/dev/null 2>&1 || mise use ripgrep   # activate where you need it\nmise which \"$bin\"","typeGuard":null,"tryCatchPattern":"mise which \"$bin\" || { mise use \"$owner_tool\" && mise which \"$bin\"; } || { echo \"$bin not active in this dir — add its tool to mise.toml\" >&2; exit 1; }","preventionTips":["Declare every tool your project scripts call in the project's own mise.toml, not a sibling's","Use `mise use -g` for tools you expect everywhere; verify with `mise ls -g`"],"tags":["mise","which","shims","activation","config","toolchain"],"backgroundTag":"tool-not-activated","analyzedSha":"9dcfcaa0dc8747a2577d3270b69bb9d8313b2807","analyzedAt":"2026-08-17T14:28:50.624Z","schemaVersion":2},"datasetVersion":"2026-08-21T13:17:26.733Z"}