Dropsource / monarch

Monarch is a tool for building Flutter widgets in isolation. It makes it easy to build, test and debug complex UIs.
https://monarchapp.io
MIT License
433 stars 22 forks source link

Hot restart fails on Windows #56

Closed fertrig closed 1 year ago

fertrig commented 1 year ago

Hot reload works as expected on Windows. This issue is specific to hot restart on Windows. Most users do hot reloads thus this issue affects a small number of users.

Doing a hot restart on Windows fails with the message below:

Target copy_flutter_bundle failed: Exception: Flutter failed to copy C:\Users\USER\development\scratch\my_sample_project\.dart_tool\flutter_build\02f4ff5d73af275b6d70fef5f53c5366\app.dill to .monarch\flutter_assets\kernel_blob.bin due to unknown error. The flutter tool cannot access the file or directory.
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.

Failed to build bundle.

However, sometimes the first hot restart works. If the first hot restart works, the second one, and subsequent ones, fail.