trunk-rs / trunk

Build, bundle & ship your Rust WASM application to the web.
https://trunkrs.dev/
Apache License 2.0
3.43k stars 251 forks source link

I/O error: operation failed to complete synchronously #437

Closed Immanuel-Codoid closed 11 months ago

Immanuel-Codoid commented 1 year ago

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.

simbleau commented 1 year ago

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?

Immanuel-GWU commented 1 year ago

The program terminated after this error and nothing happened after this.

wdcocq commented 1 year ago

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.

KathrynPurr commented 1 year ago

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)
wdcocq commented 1 year ago

@KathrynPurr Just to be sure, but I presume you also build trunk with 1.64?

KathrynPurr commented 1 year ago

@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.

github-actions[bot] commented 12 months ago

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.

github-actions[bot] commented 11 months ago

This issue was closed because it has been stalled for 5 days with no activity.