jdx/mise · error

the packslip of declares a completion, but none of the…

Error message

the packslip of {} declares a {shell} completion, but none of the files it names are in the install: the resource fetch failed or was skipped

What it means

The packslip statement declares a completion resource for the requested shell, and the cli-spec sources resolved to a non-empty list, but none of the named files were found in the install's resources directory. mise treats this as a broken install: the resource fetch step either failed or was skipped at install time, so the declared completion file is absent.

Solutions

  1. Reinstall the tool so the resource fetch runs again: `mise uninstall <tool> && mise install <tool>`.
  2. Check network/proxy access to the packslip resource URLs for the failing install.
  3. Clear mise's cache for the tool (`mise cache clear`) and reinstall so a truncated cached install is not reused.
  4. Generate the completion with the tool itself instead (`<tool> completions <shell>`) as a workaround.
  5. Upgrade mise if a fixed version corrected the skipped-resource-fetch behavior.

Example fix

// before
mise completions gh zsh  # resources missing from partial install
// after
mise uninstall gh && mise cache clear && mise install gh && mise completions gh zsh
Defensive patterns

Strategy: retry

Validate before calling

ls "$(mise where <tool>)/resources/" 2>/dev/null | grep -i completion || echo "completion resources missing; reinstall"

Try / catch

match mise completions result containing 'resource fetch failed or was skipped' {
  Ok(_) => {},
  Err(_) => { mise uninstall <tool>; mise cache clear; mise install <tool>; retry }
}

Prevention

When it happens

Trigger: Running `mise completions <tool> <shell>` when `declares_completion(&statement, shell)` is true but every candidate source file is missing from the install after `selected_artifact`/source enumeration; typically the resource download was skipped (offline install, cache reuse) or failed silently.

Common situations: Installing a packslip tool with network access to artifacts but a failed/blocked resource fetch; installing from a partially mirrored artifact set; cache poisoning where an incomplete install was accepted; CI environments blocking the resource URL.

Understand the failure class

Background: "File not found" and ENOENT errors: why libraries can't find a file that should exist — this error's family across 50 libraries.

Related errors


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

Appendix: source

Thrown at src/packslip.rs:1475

            "{} was not installed from a packslip, so mise does not know its completions",
            tv.style()
        );
    };
    let artifact = selected_artifact(
        &statement,
        &install_path,
        tv.request.options().get_string("variant").as_deref(),
    );
    let sources = completion_sources(
        &statement,
        &install_path,
        shell,
        artifact.as_ref(),
        Some(tool),
    );
    if sources.is_empty() {
        if declares_completion(&statement, shell) {
            bail!(
                "the packslip of {} declares a {shell} completion, but none of the files it names are in the install: the resource fetch failed or was skipped",
                tv.style()
            );
        }
        bail!(
            "the packslip of {} declares no {shell} completion",
            tv.style()
        );
    }
    // A completion is asked for the moment a shell completes the command,
    // which is when the user was going to run it anyway, so an `exec`
    // source runs on demand with no setting; the specification's Running
    // an exec entry says so. Because it runs the tool, its result is
    // cached beside the install so the command runs once per version and
    // shell rather than at every tab.
    let bin = completion_bin(&statement, Some(tool)).ok_or_else(|| {
        eyre!(
            "{} provides several executables; name the command to complete",

View on GitHub (pinned to 533346cc37)