Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
58 stars 5 forks source link

Fix recurring dev server crashes (Resolves #76) #103

Closed matthew-carroll closed 2 months ago

matthew-carroll commented 2 months ago

Fix recurring dev server crashes (Resolves #76)

As best I can tell, the crashes are due to the file system being accessed by the website builder, while simultaneously being accessed by the web server.

This PR changes when the connected websites are told to refresh themselves. We now wait until all queued builds are done before notifying them.

If the user manually refreshes during a rebuild, we probably have the same issue, but that should be far less common.

This PR also loosens the dependency on pub_updater to any because static_shock also has a dependency on pub_updater and it's too easy to end up with conflicting versions.