DioxusLabs / DioxusLabs/dioxus
Build failed with "failed to write executable" (solved)
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
TLDR, I fixed by problem and I am unable to reproduce it, this issue is here to let you know something went wrong if it is of some interest to you !
**Problem**
All my Dioxus build failed with the following error (failed to write executable):
After some investigation it seems that the wasm-bindgen executable written in my local directory by the dioxus build was an empty file without execution rights.
I deleted the file, run the build process again, it re-downloaded the tooling and everything was fine.
**Steps To Reproduce**
I was unable to reproduce the problem and now my setup is ok. But it is very likely that the first time I ran the dioxus build on a clean setup I encountered some network problems during the process. So it is very likely that the download process was interrupted and left the `~/.local/share/.dx` directory in a broken state.
**Environment:**
- Dioxus version: 0.7.3
- Rust version: 1.93
- OS info: Linux debian 13
- App platform: Web
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by examining the Dioxus build process and the ~/.local/share/.dx directory, focusing on how the wasm-bindgen executable is downloaded and validated. Reproduce an interrupted download if possible; done would mean a failed download cannot leave an unusable executable or that the build recovers safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100