News for hackers. Stuff that matters.
Re:Jurigged – Hot code reloading for Python by breuleux on Saturday April 10, 2021 @10:07AM (#26761580)
Oh, I see. Jurigged doesn't watch for add/delete of files, just modifications (which means it'll miss changes from certain editors like vi that use a move instead of modifying an existing file). I think the write's not atomic so the file's flashing empty. It might depend on the editor?

Either way it's a problem. What's the time gap between the deletes and adds? I think debouncing the event so it only executes after e.g. 0.1s with no changes might fix it. I suppose I could also just flat out ignore empty files but that wouldn't be as robust.

There are no comments on this comment yet.