I/O error: operation failed to complete synchronously
Facing this issue when I trunk serve the basic app that I created
Logs when I run trunk serve:
2022-09-19T08:10:39.846325Z INFO starting build
2022-09-19T08:10:39.853442Z INFO spawning asset pipelines
2022-09-19T08:10:42.848793Z INFO copying & hashing css path="\\\\?\\E:\\
Rust+Wasm\\yew-video-streaming\\style.css"
2022-09-19T08:10:42.849688Z INFO building yew-video-streaming
2022-09-19T08:10:42.860504Z INFO finished copying & hashing css path="\\\\?\\E:\\Rust+Wasm\\yew-video-streaming\\style.css"
Finished dev [unoptimized + debuginfo] target(s) in 1.41s
2022-09-19T08:10:44.395147Z INFO fetching cargo artifacts
I/O error: operation failed to complete synchronously
Let me know if anybody know why this happens?, and also the solution for this.
The pathing looks strange. That could be related to the I/O issue. Did anything come after this output? Did the program terminate or suspend?
The program terminated after this error and nothing happened after this.
Could this be related to the following: https://github.com/rust-lang/rustup/issues/3043? In which case rust 1.62.0 seems to be the issue. Not sure whether it matters if trunk is build with that version or just the app. Try updating rust and reinstalling trunk.
Experiencing the same issue following Yew tutorial.
Finished dev [unoptimized + debuginfo] target(s) in 0.87s
2022-09-30T00:04:45.545566Z INFO fetching cargo artifacts
I/O error: operation failed to complete synchronously
rustc version1.64 on Windows
stable-x86_64-pc-windows-msvc (default)
rustc 1.64.0 (a55dd71d5 2022-09-19)
@KathrynPurr Just to be sure, but I presume you also build trunk with 1.64?
@wdcocq Likely that was the problem, I must have updated rustc from 1.62 to 1.64 after installing trunk. Now that I uninstalled trunk and reinstalled it with cargo, the I/O error is gone and the Yew tutorial is working.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.