Pythonista-Issues
Pythonista-Issues copied to clipboard
editor does not reload files
I am still in last beta 311016, so close if this fixed in app store: I recall in previous versions, when the problem of multiple tabs getting out of sync was fixed, the solution was some sort of file watcher that ensured modified files got reloaded, or at least when the tab switches.
In doing some work with logging today, I found that was no longer the case. A simple example case:
import editor
editor.make_new_file('tst.txt')
fn=editor.get_path()
with open(fn,'w') as f:
f.write('test')
should result in the editor open file 'tst.txt' getting updated. It only does if you close, then reopen the editor file.
Alternatively, I would be happy with a refresh button, or pull to refresh, etc.
Just tested this in the 3.2 and file not reloaded. Marking as bug, because it was previously fixed (according to comment).
This regression appears to still not be fixed. Even opening the sidebar and tapping the filename doesn’t help, you must actually close the tab and reopen it, which is extremely frustrating for a logger.
Is there a workaround?
It still is a problem in 3.3 - I have to select another python file, close the app, restart it and then find my changed file (opening it from Working Copy). A refresh button would be very appreciated!