This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Copy-pasted from Studio bug #16362028 Steps to reproduce: - run IDE - add remote host - open any remote source file in the editor - make some changes in the remote file outside IDE, it's important not switch focus from the IDE window (make changes using built remote terminal in IDE or from another machine) Result: The source file in the editor is not updated. If a user switch focus from IDE then put it back then the file will probably be updated after some pretty long time (it depends on the file path and could take from seconds to hours).
I've hust pushed a workaround into cnd-main http://hg.netbeans.org/cnd-main/rev/ce24ce72c7a3 With additional option -J-Dcnd.remote.refresh.plain.file=true this bug does not take place. Switching this option ON by default may cause noticeable slowdown on slow connections, that's why it's OFF by default.
Created attachment 138411 [details] proposed fix
Created attachment 138412 [details] However it needs the following fix in NbEditorUI
I agree with NbEditorUI patch integration. Its main purpose is to avoid extra updates for frequent focus switches from the IDE and back in environments with very slow file updates? i.e. the objectsToRefresh.add(fo) would return false in these cases, right?
The NbEditorUI fix has been applied: http://hg.netbeans.org/jet-main/rev/53daecfc9312 This issue is fixed: http://hg.netbeans.org/cnd-main/rev/e60601420a5f
Additinal fix http://hg.netbeans.org/cnd-main/rev/beae8c7b529a (please disregard wrong commit comment, the fix is for *this* issue!)