rksm / hot-lib-reloader-rs

Reload Rust code without app restarts. For faster feedback cycles.
MIT License
577 stars 21 forks source link

Windows sometimes doesn't work #19

Closed cdecompilador closed 1 year ago

cdecompilador commented 1 year ago

All the examples provided work except the bevy one,

LINK : fatal error LNK1104: can't open file '.\hot-lib-reloader-rs\examples\bevy\target\debug\deps\systems.dll
rksm commented 1 year ago

Just wanted to say that I've seen this issue (here but not reproduced directly). Hadn't had time to look into yet but it's on my todo list.

rksm commented 1 year ago

Sorry took me a while.

I believe what you ran into is the issue described here: https://github.com/rksm/hot-lib-reloader-rs/tree/master/examples/bevy#library-files-on-windows-get-locked-while-the-app-is-running-and-there-is-a-permission-error-when-they-change.

So on windows doing

$ cargo watch -w systems -w components -x "build -p systems --features dynamic"
$ cargo run --features reload --target-dir "target-bin"

should fix the issue.

Please reopen if the issue is not fixed with the above.