jdx/mise · error

was not installed from a packslip, so mise does not know…

Error message

{} was not installed from a packslip, so mise does not know its completions

What it means

completion_script locates the tool, reads its install path, and expects a packslip release statement file to exist there. If the statement is missing, mise cannot know what completions the release declares, so it throws. This means the tool was installed by a backend other than packslip (aqua/github/legacy), or the statement file was deleted.

Solutions

  1. Reinstall the tool so a packslip-backed install is created: `mise uninstall <tool> && mise install <tool>` (with a packslip-capable mise version).
  2. Check that the tool's registry entry resolves to a packslip backend; if it uses aqua/github, completions are not available from packslip — generate them with the tool's own completion command instead.
  3. Upgrade mise so newly installed versions record release statements.
  4. Verify the install directory (mise where <tool>) still contains the packslip statement file; restore it by reinstalling if missing.

Example fix

// before
mise completions node zsh   # node not installed from a packslip
// after
mise uninstall node && mise install node && mise completions node zsh
Defensive patterns

Strategy: fallback

Validate before calling

test -f "$(mise where <tool>)/<statement-file>" || echo "no packslip statement; completions unavailable"

Try / catch

if mise completions <tool> <shell> fails with 'not installed from a packslip'; then
  <tool> completions <shell> > ~/.completions/<tool>.completion || true
fi

Prevention

When it happens

Trigger: Running `mise completions <tool> <shell>` for a tool whose install directory lacks the packslip statement file — i.e. `statement(&install_path)` returns None. Happens for tools installed via non-packslip backends or installs made before packslip resource support.

Common situations: Tool installed with an older mise version before packslips recorded statements; tool installed via the github/aqua fallback backend; user manually wiped or partially deleted the install directory; corrupt/failed install.

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/411e27c1bcbd1eac. Report an issue: GitHub.

Appendix: source

Thrown at src/packslip.rs:1456

        bail!("invalid completion cache identity");
    }
    Ok(install_path
        .join(RESOURCES_DIR)
        .join("completions-v2")
        .join(bin)
        .join(format!("{shell}.completion")))
}

pub(crate) async fn completion_script(
    config: &Arc<Config>,
    tool: &str,
    shell: &str,
) -> Result<String> {
    let ts = config.get_toolset().await?;
    let (backend, tv) = find_tool(config, ts, tool).await?;
    let install_path = tv.install_path();
    let Some(statement) = statement(&install_path)? else {
        bail!(
            "{} 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) {

View on GitHub (pinned to 533346cc37)