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 244508 - The code lost sync in remote project
Summary: The code lost sync in remote project
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 09:41 UTC by ping235
Modified: 2014-05-26 14:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (85.76 KB, text/plain)
2014-05-15 09:41 UTC, ping235
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ping235 2014-05-15 09:41:29 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

The project is Makefile based C/C++ project, the project files are located in a directory that shared to windows client PC via samba, if I start netbeans on windows client PC and open the project by Open Remote C/C++ Project, then open a file to coding..., several hours later, you'll found that the file content in disk is different from you see in IDE, the changes on file is not saved, and from then on, any changes to this file can not save to disk, the IDE say no error.

It works fine if i open the project by Open Project instead of Open Remote C/C++ Project.
I am not found any certain steps to reproduce this issue.
Comment 1 ping235 2014-05-15 09:41:38 UTC
Created attachment 147274 [details]
IDE log
Comment 2 ping235 2014-05-15 09:58:36 UTC
if i click Save as to save the file to desktop, not the project's dir, the IDE say: the file is modified but not saved, click save, then check the file in project dir, it is the correct version, but the file saved on desktop is not.
Comment 3 Jaroslav Havlin 2014-05-23 12:37:34 UTC
I'm sorry, I cannot reproduce this problem (Windows client, remote project stored in a VirtualBox Linux server).
Reassigning to cnd/Remote, please evaluate it. Thank you.
Comment 4 Vladimir Kvashin 2014-05-26 12:16:59 UTC
"Open Remote Project" item is for the case your project resides on remote host and is *not* shared via Samba. If you open project via this menu item, IDE accesses its files via sftp - that's the reason of slowness.

If your code is shared via Samba, please do the following:

- go to remote host properties and set "Access Project Files Via" field to "System-level file sharing"

- open your project via "Open a project", not via "Open Remote Project", in project properties select your remote host.

Ideally, when you open project via "Open Remote Project" (we call this "full remote" mode), and part or all sources can be accessed via a shared folder, IDE should recognize this and use the share automatically; but this isn't yet done. There is a bug 235669 filed in this respect.
Comment 5 ping235 2014-05-26 14:33:10 UTC
Yes, I open my remote project by "Open a Project" and access the code by "System-level file sharing" for a long times, no problem with this method.

But later, i begin to open the project via "Open a Remote Project" because the building is far faster than via "Open a Project", in former scenario, the building procedure start immediately while clicked the "build" or "clean and build", but in the latter scenario, i must wait for 3~5 seconds before the building procedure starting.

It will be ideal if the building is faster than now it is, open via local project or remote project is irrelevant.

Anyway, thinks for the great IDE and you all.