Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
File change detection v3 #3070
This attempt at file change detection utilizes the time at which the files were modified through Processing's save/load interface vs the time the files were modifed on disk. A field was added to SketchCode.java to track this (lastModified) and it is updated when a sketch is saved, loaded, or saved as.
I had added some simple exception handling to Sketch.java to allow testing, but removed it for this push. If you want I can re-add that to allow others to successfully run Processing.
Hopefully this fixes the problems that Mac OS X was having with the spurious reloads and should run faster than reading through the content of each file individually.