Skip to content

Very fast changes to files on disk after they are saved are not detected on linux #650

@ilo-3a29

Description

@ilo-3a29

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions