{"record":{"id":"a4a8cf064763f64c","repo":"Hmbown/CodeWhale","slug":"dsh-plugin-path-not-available-reason-a4a8cf","errorCode":null,"errorMessage":"DSH plugin path not available: {reason}","messagePattern":"DSH plugin path not available: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/tui/src/integrations/dsh/mod.rs","lineNumber":721,"sourceCode":"    let status = command\n        .status()\n        .with_context(|| format!(\"launch {}\", spec.binary.display()))?;\n    Ok(status.code().unwrap_or(1))\n}\n\n/// Install the Codewhale bundle into the dedicated `codewhale` DSH profile via\n/// the documented `dsh plugin --profile codewhale add <path>` (pnpm).\npub(crate) fn install_bundle(\n    paths: &DshPaths,\n    detection: &DshDetection,\n    runner: &dyn DshRunner,\n    availability: &BundleAvailability,\n    app: DshAppBundle,\n) -> Result<DshBundleRecord> {\n    let pnpm_version = match availability {\n        BundleAvailability::Available { pnpm_version } => pnpm_version.clone(),\n        BundleAvailability::NotAvailable { reason } => {\n            anyhow::bail!(\"DSH plugin path not available: {reason}\")\n        }\n    };\n    let mut doc = DshReceiptDocument::load(&paths.receipt)?;\n    let Some(mut record) = doc.current.take() else {\n        anyhow::bail!(\"DSH is not connected; run `{CLI_COMMAND} connect` first\");\n    };\n    if record.bundle.is_some() {\n        anyhow::bail!(\"bundle already installed; use `{CLI_COMMAND} update` or `remove-bundle`\");\n    }\n    let overlay_text = std::fs::read_to_string(&paths.overlay)\n        .with_context(|| format!(\"read {}\", paths.overlay.display()))?;\n    if sha256_hex(overlay_text.as_bytes()) != record.overlay_sha256 {\n        anyhow::bail!(\"overlay is stale; run `{CLI_COMMAND} update` before install-bundle\");\n    }\n    let patch_sha = bundle::write_bundle(&paths.bundle_dir, &codewhale_version(), &overlay_text)?;\n    let (app_source, outcomes) =\n        match bundle::install_into_profile(runner, detection, app, &paths.bundle_dir) {\n            Ok(ok) => ok,","sourceCodeStart":703,"sourceCodeEnd":739,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/tui/src/integrations/dsh/mod.rs#L703-L739","documentation":"Error \"DSH plugin path not available: {reason}\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/tui/src/integrations/dsh/mod.rs:721 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8880682c63083a91624de936797efa3ce9e498fd","analyzedAt":"2026-08-16T11:31:27.956Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}