Closed Sorseg closed 6 months ago
I'll try to debug this myself a little bit tomorrow and if I fail I'll try to set up a repository with an easy reproduction
Looks like the issue is with
notify-debouncer-full
, the example code has the same behavior.
I'll make an issue there and close this one for now. For anyone running into this, I suggest a workaround of disabling the blend1
file creation backup Edit -> Preferences -> Save&Load -> Save Versions -> 0
Bevy version
from the lock file:
Relevant system information
Linux with an ext4 volume
What you did
I've setup an
AssetProcessor
for blender files and run a game withRUST_LOG=bevy_asset=trace
and bevy featuresasset_processor,file_watcher,dynamic_linking
enabled.What went wrong
When starting up the game, I see
then I save the blend file in blender this happens:
I was expecting bevy to notice the new
experiment1.blend
right away (the file does appear in the unprocessed directory and gets picked up if I restart my bevy app).One important detail is that blender on save creates a backup with a
blend1
extension. Strace of blender file operations:Additional information
I think there in an issue in how file watcher handles what blender does to the file system, for some reason it does not pick up the creation and renaming of
experiment1.blend@
, which I assume is the temporary file blender creates for the save.the log might also indicate that if messages from the fs event notify system are received in batches, then they are processed in reverse order (bevy first notices the blend1 file appears, and then sees the rename)
Thank you for maintaining this project, it is the greatest game engine I had the honor to work with! :heart: