jdx/mise · error
the packslip of declares no completion
Error message
the packslip of {} declares no {shell} completion What it means
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.
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.
Example fix
// before mise completions gh nushell # not declared // after mise completions gh zsh
Defensive patterns
Strategy: fallback
Validate before calling
mise completions <tool> <shell> --dry-run 2>/dev/null || echo "shell not declared; use bash/zsh/fish"
Try / catch
if ! mise completions <tool> <shell> 2>/dev/null; then <tool> completions <shell> > ~/.completions/<tool>.completion fi
Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- cli-spec entry names
- has no executable called
- invalid completion cache identity
- loads completions eagerly, so mise cannot leave it a stub…
- mise cannot derive completions from a
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/44fd9e71887c3e23.
Report an issue: GitHub.
Appendix: source
Thrown at src/packslip.rs:1480
&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",
tv.style()
)
})?;
let cache = completion_cache_path(&install_path, bin, shell)?;
// Nothing below happens until a source that runs the tool comes up. AView on GitHub (pinned to 533346cc37)