{"record":{"id":"44fd9e71887c3e23","repo":"jdx/mise","slug":"the-packslip-of-declares-no-shell-completion","errorCode":null,"errorMessage":"the packslip of {} declares no {shell} completion","messagePattern":"the packslip of (.+?) declares no (.+?) completion","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/packslip.rs","lineNumber":1480,"sourceCode":"        &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) {\n            bail!(\n                \"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\",\n                tv.style()\n            );\n        }\n        bail!(\n            \"the packslip of {} declares no {shell} completion\",\n            tv.style()\n        );\n    }\n    // A completion is asked for the moment a shell completes the command,\n    // which is when the user was going to run it anyway, so an `exec`\n    // source runs on demand with no setting; the specification's Running\n    // an exec entry says so. Because it runs the tool, its result is\n    // cached beside the install so the command runs once per version and\n    // shell rather than at every tab.\n    let bin = completion_bin(&statement, Some(tool)).ok_or_else(|| {\n        eyre!(\n            \"{} provides several executables; name the command to complete\",\n            tv.style()\n        )\n    })?;\n    let cache = completion_cache_path(&install_path, bin, shell)?;\n    // Nothing below happens until a source that runs the tool comes up. A","sourceCodeStart":1462,"sourceCodeEnd":1498,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/packslip.rs#L1462-L1498","documentation":"The packslip release statement for the tool simply does not declare a completion resource for the requested shell. mise knows exactly what the release ships, and a `<shell>` completion is not among it, so it refuses rather than guessing.","triggerScenarios":"Running `mise completions <tool> <shell>` where the shell name (e.g. `elvish`, `nushell`, or a typo like `zhs`) is not declared in the tool's packslip statement's completion resources, even though the statement file itself exists.","commonSituations":"Requesting completions for a shell the upstream project does not ship (e.g. `powershell` for a tool that only ships bash/zsh/fish); typos in the shell argument; upstream dropped a completion in a newer release; older packslip manifests predating a shell's completion file.","solutions":["Use a shell the packslip declares — run `mise completions <tool> bash|zsh|fish` instead.","Check the tool's packslip statement (in the install's resources dir) to see which shells are actually declared.","Ask upstream to publish a completion for your shell, or fall back to the tool's own completion generator.","If the tool supports dynamic generation, use the tool's native completion command and source its output in your shell rc."],"exampleFix":"// before\nmise completions gh nushell  # not declared\n// after\nmise completions gh zsh","handlingStrategy":"fallback","validationCode":"mise completions <tool> <shell> --dry-run 2>/dev/null || echo \"shell not declared; use bash/zsh/fish\"","typeGuard":null,"tryCatchPattern":"if ! mise completions <tool> <shell> 2>/dev/null; then\n  <tool> completions <shell> > ~/.completions/<tool>.completion\nfi","preventionTips":["Check which shells the tool's packslip declares before requesting","Avoid typos in shell names","Fallback to the tool's native completion generator for unsupported shells"],"tags":["packslip","completion","unsupported"],"backgroundTag":"unsupported-operation","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"}