{"record":{"id":"411e27c1bcbd1eac","repo":"jdx/mise","slug":"was-not-installed-from-a-packslip-so-mise-does","errorCode":null,"errorMessage":"{} was not installed from a packslip, so mise does not know its completions","messagePattern":"(.+?) was not installed from a packslip, so mise does not know its completions","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/packslip.rs","lineNumber":1456,"sourceCode":"        bail!(\"invalid completion cache identity\");\n    }\n    Ok(install_path\n        .join(RESOURCES_DIR)\n        .join(\"completions-v2\")\n        .join(bin)\n        .join(format!(\"{shell}.completion\")))\n}\n\npub(crate) async fn completion_script(\n    config: &Arc<Config>,\n    tool: &str,\n    shell: &str,\n) -> Result<String> {\n    let ts = config.get_toolset().await?;\n    let (backend, tv) = find_tool(config, ts, tool).await?;\n    let install_path = tv.install_path();\n    let Some(statement) = statement(&install_path)? else {\n        bail!(\n            \"{} was not installed from a packslip, so mise does not know its completions\",\n            tv.style()\n        );\n    };\n    let artifact = selected_artifact(\n        &statement,\n        &install_path,\n        tv.request.options().get_string(\"variant\").as_deref(),\n    );\n    let sources = completion_sources(\n        &statement,\n        &install_path,\n        shell,\n        artifact.as_ref(),\n        Some(tool),\n    );\n    if sources.is_empty() {\n        if declares_completion(&statement, shell) {","sourceCodeStart":1438,"sourceCodeEnd":1474,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/packslip.rs#L1438-L1474","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Reinstall the tool so a packslip-backed install is created: `mise uninstall <tool> && mise install <tool>` (with a packslip-capable mise version).","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.","Upgrade mise so newly installed versions record release statements.","Verify the install directory (mise where <tool>) still contains the packslip statement file; restore it by reinstalling if missing."],"exampleFix":"// before\nmise completions node zsh   # node not installed from a packslip\n// after\nmise uninstall node && mise install node && mise completions node zsh","handlingStrategy":"fallback","validationCode":"test -f \"$(mise where <tool>)/<statement-file>\" || echo \"no packslip statement; completions unavailable\"","typeGuard":null,"tryCatchPattern":"if mise completions <tool> <shell> fails with 'not installed from a packslip'; then\n  <tool> completions <shell> > ~/.completions/<tool>.completion || true\nfi","preventionTips":["Install packslip-backed tools with a recent mise version","Avoid manually editing or pruning install directories","Check `mise where <tool>` contents after install to confirm statement files exist"],"tags":["packslip","completion","missing-file"],"backgroundTag":"file-not-found","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}