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 243470 - Remote files do not synchronize properly
Summary: Remote files do not synchronize properly
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 07:26 UTC by yuraaka
Modified: 2014-04-24 02:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (124.74 KB, text/plain)
2014-04-02 07:26 UTC, yuraaka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yuraaka 2014-04-02 07:26:48 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_51
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.51-b03

Steps to reproduce:
1) Create a remote C++ project on existing files
2) Modify some file by IDE
3) Modify the same file by external application
4) Go back to IDE

Observed result: the file was reverted to original version (before execution #2 )
Expected result: merged version should appear on editor

P.S. I tried to fix it up by the following ways:
- invoking Souce->Scan for External Changes
- disabling Options->Miscellaneous->Files->Enable auto-scanning of sources

No effect.

The only way it can work is to remove the file from local cache (C:\Users\user\AppData\Local\NetBeans\Cache\8.0\remote-files\<remote machine>\<remote path to file>), 
and remove .rfs_zip.zip from root of remote project in cache (C:\Users\user\AppData\Local\NetBeans\Cache\8.0\remote-files\<remote machine>\<remote path to project root>), 
then syncronize.
Comment 1 yuraaka 2014-04-02 07:26:55 UTC
Created attachment 146490 [details]
IDE log
Comment 2 Vladimir Kvashin 2014-04-04 12:01:18 UTC
Thank you for detailed information.

I guess the reason. If my guess is correct, then, 
when modifying the file externally (#3),
you managed to keep its time stamp the same
as it was before modification (i.e. after #2).

Could it be the case?
Comment 3 Vladimir Kvashin 2014-04-07 09:58:22 UTC
> ... keep its time stamp the same
> as it was before modification (i.e. after #2).
I meant before #2, i.e. as it was before modification in IDE

That was the only case I was able to reproduce.
I've just fixed it in
http://hg.netbeans.org/cnd-main/rev/fc5eace37318

Please try it in daily build (I guess it will be there tomorrow) and reopen if the issue still exists
Comment 4 Quality Engineering 2014-04-08 06:09:03 UTC
Integrated into 'main-silver', will be available in build *201404080419* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fc5eace37318
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing #243470 - Remote files do not synchronize properly
Comment 5 yuraaka 2014-04-08 09:28:54 UTC
Seems, it works. Thank you. Are there any plans for next external release?
Comment 6 Vladimir Kvashin 2014-04-09 08:22:56 UTC
Glad to hear this!

Here is a link to a public blog that says that
"Work on JDK 9 is now underway and we're planning NetBeans 9 to go along with it, 
as usual"
https://blogs.oracle.com/geertjan/entry/onwards_to_netbeans_9

C/C++ team isn't driven by JDK 9, but sure we align with the large NetBeans.
And we are sure planning to do a lot by that time - although I can't share specific plans :)
Comment 7 Quality Engineering 2014-04-24 02:04:14 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/4d9f4efc2067
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixing #243470 - Remote files do not synchronize properly
(transplanted from fc5eace37318187a1ad7b364335704048584e4ae)