jdx/mise · error

lazy tool has no registry bin metadata; set lazy_bins…

Error message

lazy tool {} has no registry bin metadata; set lazy_bins explicitly

What it means

mise supports "lazy" backends whose executable names are only resolved when needed. For a lazy tool, mise tries to derive the bin list from registry metadata (tool.bins); when the tool has no bins configured or the registry metadata is absent, it refuses to guess and throws, telling you to set the bin names explicitly via the lazy_bins setting. This prevents mise from generating shims for wrong or missing binaries.

Solutions

  1. Set the bins explicitly, e.g. mise settings lazy_bins.<tool>='["binname"]' or add bins to the tool's registry entry.
  2. Add/repair the bins field in the registry/ entry for the tool so tool.bins is non-empty.
  3. Verify the tool key spelling matches an existing registry entry that has bin metadata.

Example fix

// registry/foobar (before)
foobar = aqua:acme/foobar
// after
foobar = ['aqua:acme/foobar', { bins = ['foobar'] }]
Defensive patterns

Strategy: validation

Validate before calling

// before relying on lazy bin resolution
const entry = registry[toolKey];
if (!entry || !entry.bins || entry.bins.length === 0) {
  // configure lazy_bins or fix the registry entry first
}

Prevention

When it happens

Trigger: Calling the lazy_bins resolution path (ToolRequest bin lookup) for a lazy backend tool where tool.bins is empty or the registry entry carries no bin metadata, and no explicit lazy_bins override was configured.

Common situations: Adding a new or custom tool to registry/ without a bins field; a registry entry edited so bins was removed; using a third-party/lazy backend plugin whose metadata lacks bin names; typos in the registry key so the wrong (metadata-less) entry is matched.

Understand the failure class

Background: "is required", "must be set", "missing required field": configuration validation errors across open-source libraries — this error's family across 36 libraries.

Related errors


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

Appendix: source

Thrown at src/toolset/tool_request.rs:384

    /// Command names that should receive bootstrap shims before a lazy tool is installed.
    /// Registry metadata is authoritative when the config does not provide an explicit list.
    pub(crate) fn lazy_bins(&self) -> Result<Option<Vec<String>>> {
        let options = self.resolved_options().effective();
        if options.lazy != Some(true) {
            return Ok(None);
        }
        if !options.lazy_bins.is_empty() {
            return Ok(Some(options.lazy_bins.clone()));
        }
        if let Some(tool) = self.ba().registry_tool()
            && !tool.bins.is_empty()
        {
            return Ok(Some(
                tool.bins.iter().map(|bin| (*bin).to_string()).collect(),
            ));
        }
        bail!(
            "lazy tool {} has no registry bin metadata; set lazy_bins explicitly",
            self.ba().short
        )
    }

    pub(crate) fn explicit_options(&self) -> ToolVersionOptions {
        self.resolved_options().options_from_sources(&[
            ToolOptionSource::Request,
            ToolOptionSource::InlineBackendArg,
        ])
    }

    fn resolved_options(&self) -> &ResolvedToolOptions {
        match self {
            Self::Version { options: o, .. }
            | Self::Prefix { options: o, .. }
            | Self::Ref { options: o, .. }
            | Self::Sub { options: o, .. }

View on GitHub (pinned to 533346cc37)