jdx/mise · error

is a mise bin however it is not currently active. Use `mise…

Error message

{bin_name} is a mise bin however it is not currently active. Use `mise use` to activate it in this directory.

What it means

`mise which <bin>` throws this when the bin corresponds to a mise-managed tool (a shim exists for it) but the tool is not active in the current directory's toolset — the shim points at a mise bin that no active config enables here.

Solutions

  1. Activate the tool in this directory: `mise use <tool>@<version>` (as the message suggests).
  2. cd into the directory where the tool is configured before invoking it.
  3. Add the tool to the global config: `mise use -g <tool>@<version>` if you want it everywhere.

Example fix

// before (fails in this dir)
mise which terraform
// after
mise use terraform@1.9
mise which terraform
Defensive patterns

Strategy: fallback

Validate before calling

mise ls --json | jq -e --arg b "$bin" 'any(.[]; .active == true)' >/dev/null || echo "$bin not active here"

Try / catch

if ! mise which "$bin" 2>/dev/null; then
  mise use "$tool@$ver" && mise which "$bin"
fi

Prevention

When it happens

Trigger: `mise which <bin>` with `self.has_shim(&bin_name)` true but the bin absent from the resolved Toolset — e.g. the tool is used in another project's config, globally uninstalled, or deactivated in this directory.

Common situations: Running a tool shim in a repo that doesn't `mise use` that tool; a colleague removed the tool from mise.toml; running from a directory above the one where the tool is configured.

Related errors


AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17). Data as JSON: /api/errors/d17f75799fd6e27f. Report an issue: GitHub.

Appendix: source

Thrown at src/cli/which.rs:83

                } else if self.plugin {
                    miseprintln!("{p}");
                } else {
                    let path = p.which(&config, &tv, &bin_name).await?;
                    miseprintln!("{}", path.unwrap().display());
                }
                Ok(())
            }
            None => {
                if let Some(msg) = self.uninstalled_tool_message(&config, &ts) {
                    bail!(msg);
                }
                if let Some(msg) =
                    crate::shims::unavailable_configured_tool_message(&config, &ts, &bin_name)
                {
                    bail!(msg);
                }
                if self.has_shim(&bin_name) {
                    bail!(
                        "{bin_name} is a mise bin however it is not currently active. Use `mise use` to activate it in this directory."
                    )
                } else {
                    bail!("{bin_name} is not a mise bin. Perhaps you need to install it first.",)
                }
            }
        }
    }
    async fn complete(&self, config: &Arc<Config>) -> Result<()> {
        let ts = self.get_toolset(config).await?;
        let bins = ts
            .list_paths(config)
            .await
            .into_iter()
            .flat_map(|p| file::ls(&p).unwrap_or_default())
            .map(|p| p.file_name().unwrap().to_string_lossy().to_string())
            .unique()
            .sorted()

View on GitHub (pinned to 533346cc37)