{"record":{"id":"8c8d1865fdad8ac3","repo":"DioxusLabs/dioxus","slug":"executable-not-found-in","errorCode":null,"errorMessage":"Executable not found in {}","messagePattern":"Executable not found in (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/update.rs","lineNumber":169,"sourceCode":"                    \"application/octet-stream\".parse().unwrap(),\n                )\n                .download_to(archive_file)\n                .context(\"Failed to download update\")?;\n\n            let install_dir = install_dir.join(\"dx\");\n            _ = std::fs::remove_dir_all(&install_dir);\n            self_update::Extract::from_source(&archive_path)\n                .extract_into(&install_dir)\n                .context(\"Failed to extract update\")?;\n\n            let exe = if cfg!(target_os = \"windows\") {\n                \"dx.exe\"\n            } else {\n                \"dx\"\n            };\n            let executable = install_dir.join(exe);\n            if !executable.exists() {\n                bail!(\"Executable not found in {}\", install_dir.display());\n            }\n\n            tracing::info!(\n                \"Successfully downloaded update in {}ms! 👍\",\n                start.elapsed().as_millis()\n            );\n\n            if self.install {\n                tracing::info!(\n                    \"Installing dx v{} to {}\",\n                    latest.version,\n                    std::env::current_exe()?.display()\n                );\n\n                if !self.force {\n                    tracing::warn!(\"Continue? (y/n)\");\n                    print!(\"                > \");\n                    std::io::stdout()","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/update.rs#L151-L187","documentation":"Post-extraction guard in self_update: after downloading and extracting the update archive into the install directory, the expected dx (or dx.exe on Windows) executable was not found in that directory. This means the extracted archive's layout did not contain the binary where expected — the input at fault is the extracted release archive contents versus the expected executable name.","triggerScenarios":"Thrown at packages/cli/src/cli/update.rs:169 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The executable was not found in the downloaded archive. Re-download the release; report a bug if the release layout changed."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}