-
Notifications
You must be signed in to change notification settings - Fork 48
Description
In both textadept 12.9 and nightly, very fast changes to a file on disk after they are saved are not detected by TA and do not pop up a reload prompt or fire a FILE_CHANGED event.
This causes problems when using textadept as an editor for languages such as uiua, where the typical development flow is to leave the compiler watching for changes and modifying the source file when it detects it has been saved (for reformatting, updating special comments within the file with information for debugging, etc). This often happens faster than Textadept detects as a changed file after a save, and the user is not prompted to reload the file.
My exact distro is Fedora Silverblue 42, 64-bit, running textadept from the linux executables in the README (for both 12.9 and nightly). I've reproduced this in a fresh install with no configuration changes.
Reproduction
the smallest reproducing case I could find was to run inotifywait -e close test.txt | (read; echo 'change!' >> test.txt) and change the test.txt file in textadept and save it. TA doesn't prompt to reload the change to the file.
To reproduce with uiua: run uiua in the same directory as a file with the .ua extension open in textadept. Enter some uiua code like self * range 10 and save the file. The compiler will reformat the file, and it will have changed on disk, but textadept does not register the change.