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.
The typical scenario provided by one of our customers: - open remote file for editing (use a remote host with slow connection) - start editing - press Ctrl+S to save the data and continue editing (do not wait until saving is completed) Result: When saving is completed some of the latest changes got lost and some (mostly the last entered line) moved to the bottom of the source file.
I confirm not exactly the same, but wrong behavior in 7.4, 8.0 and dev version. Lines aren't mixed, but 1) file content on remote host and in editor differs 2) NB displays warning, something like "Can not lock file" 3) file is "bold", i.e. not saved in editor any more, pressing ctrl-S does not help
fixed in http://hg.netbeans.org/cnd-main/rev/c5c496742a34
Integrated into 'main-silver', will be available in build *201407260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c5c496742a34 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #245417 - Last edited data loss after saving the remote source file
Tatiana has this bug in new build too.
I use such scenario: 1) Open C++ file in Favorites tab 2) Add new line 3) Press Ctrl-S 4) Repeat 2)-3) steps (I need <5 cycles in order to break editor)
*** Bug 246116 has been marked as a duplicate of this bug. ***
Created attachment 148402 [details] Error dialogthat appears I can reproduce this. In my case, after several edit-save-edit-save actions, an error message "There were some problems when saving <filename>: Cause: cannot write to locked file" appears, see attachment
I investigated the difference between remote fs and masterds; after the partial fix below they seem to behave the same way http://hg.netbeans.org/cnd-main/rev/2d2b4d078498 But unfortunately I see the same behavior with masterfs if file system is slow (like /net/some_host_in_usa/export/home/...). I filed an issue 246127 against editor
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2d2b4d078498 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixing #245417 - Last edited data loss after saving the remote source file
It is in fact a duplicate of 246127 *** This bug has been marked as a duplicate of bug 246127 ***