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.

Bug 226361 - Remote file changed outside IDE is not updated in the editor
Summary: Remote file changed outside IDE is not updated in the editor
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on: 234183
Blocks:
  Show dependency tree
 
Reported: 2013-02-19 17:11 UTC by Vladimir Kvashin
Modified: 2013-08-13 17:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed fix (1.65 KB, patch)
2013-08-07 16:12 UTC, Vladimir Kvashin
Details | Diff
However it needs the following fix in NbEditorUI (2.66 KB, patch)
2013-08-07 16:14 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2013-02-19 17:11:59 UTC
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).
Comment 1 Vladimir Kvashin 2013-02-19 18:15:18 UTC
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.
Comment 2 Vladimir Kvashin 2013-08-07 16:12:52 UTC
Created attachment 138411 [details]
proposed fix
Comment 3 Vladimir Kvashin 2013-08-07 16:14:12 UTC
Created attachment 138412 [details]
However it needs the following fix in NbEditorUI
Comment 4 Miloslav Metelka 2013-08-10 21:18:57 UTC
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?
Comment 5 Vladimir Kvashin 2013-08-12 15:12:45 UTC
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
Comment 6 Vladimir Kvashin 2013-08-13 17:00:10 UTC
Additinal fix
http://hg.netbeans.org/cnd-main/rev/beae8c7b529a
(please disregard wrong commit comment, the fix is for *this* issue!)