Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

editor does not reload files

Open jsbain opened this issue 7 years ago • 3 comments
trafficstars

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.

jsbain avatar Jan 10 '18 08:01 jsbain

Just tested this in the 3.2 and file not reloaded. Marking as bug, because it was previously fixed (according to comment).

zrzka avatar Jan 11 '18 16:01 zrzka

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?

treyharris avatar Aug 20 '20 06:08 treyharris

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!

codetroll avatar Jan 28 '22 20:01 codetroll