{"record":{"id":"2515fee62ff20ac1","repo":"jdx/mise","slug":"the-packslip-of-declares-a-shell-completion","errorCode":null,"errorMessage":"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","messagePattern":"the packslip of (.+?) declares a (.+?) completion, but none of the files it names are in the install: the resource fetch failed or was skipped","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/packslip.rs","lineNumber":1475,"sourceCode":"            \"{} 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) {\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\",","sourceCodeStart":1457,"sourceCodeEnd":1493,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/packslip.rs#L1457-L1493","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Reinstall the tool so the resource fetch runs again: `mise uninstall <tool> && mise install <tool>`.","Check network/proxy access to the packslip resource URLs for the failing install.","Clear mise's cache for the tool (`mise cache clear`) and reinstall so a truncated cached install is not reused.","Generate the completion with the tool itself instead (`<tool> completions <shell>`) as a workaround.","Upgrade mise if a fixed version corrected the skipped-resource-fetch behavior."],"exampleFix":"// before\nmise completions gh zsh  # resources missing from partial install\n// after\nmise uninstall gh && mise cache clear && mise install gh && mise completions gh zsh","handlingStrategy":"retry","validationCode":"ls \"$(mise where <tool>)/resources/\" 2>/dev/null | grep -i completion || echo \"completion resources missing; reinstall\"","typeGuard":null,"tryCatchPattern":"match mise completions result containing 'resource fetch failed or was skipped' {\n  Ok(_) => {},\n  Err(_) => { mise uninstall <tool>; mise cache clear; mise install <tool>; retry }\n}","preventionTips":["Ensure network access to packslip resource URLs during install","Avoid reusing cache from interrupted installs in CI","Verify install completeness after scripted installs"],"tags":["packslip","completion","missing-file","install"],"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"}