I often see a "File ... was not found on disk!" infobar when a file becomes unavailable while being edited in Geany. When the file reappears (e.g. after re-mounting a disk or network share or when undoing a rename or delete operation outside of Geany) and I reload the file (by pressing Ctrl+R or via the File menu), the tab title turns from red to black, suggesting that the reload was successful. However the "File not found" infobar remains visible, and I have to click the Cancel button to make it disappear.
The "File not found" infobar should behave like its sister infobar for a timestamp mismatch, "The file ... on the disk is more recent than the current buffer", which disappears automatically after reloading the file.
Even better, Geany could be a little more patient and/or intelligent when a file becomes unavailable on disk. Most of the time I see this error message after resuming my machine from suspend, when a network share on which a file that I'm editing in Geany resides needs a couple of seconds to come up again.
Ideally Geany could (a) use a slightly longer timeout before throwing an error, at least while no actual editing is being done or the user doesn't try to save the file and/or (b) retry to locate the missing file a couple of times, with short intervals in between, before showing an error (or hiding the infobar automatically when the file reappears on disk).
Right after submitting this I've stumbled over https://github.com/geany/geany/issues/1330, which seems to describe the exact same problem and has very similar suggestions. Sorry, my bad!
Closed #1373.
github-comments@lists.geany.org