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 271240 - File changes are saved to an unknown location or thrown away
Summary: File changes are saved to an unknown location or thrown away
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-06 23:55 UTC by kalle1
Modified: 2017-08-07 00:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
nb/var/log/messages.log of a session with the issue (28.17 KB, text/x-log)
2017-08-06 23:55 UTC, kalle1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kalle1 2017-08-06 23:55:34 UTC
Created attachment 164904 [details]
nb/var/log/messages.log of a session with the issue

Opening a maven child project causes the file to be displayed, but saved changes are not reflected in the file which is shown in the Java class' properties dialog according to the GNOME text editor `gedit`.

Users might not recognize that and loose hours of works! One has to work around the issue by copying the text from the editor and save the changes in an external editor - and not use NetBeans anymore this is incredibly harmful and should never happen, please review your unit and integration tests!
Comment 1 kalle1 2017-08-07 00:00:07 UTC
EDIT1: Please add assertions to the code which make the IDE crash in the described situation since that causes a lot less work to be lost than keeping the IDE running and effectively throwing away users work of hours. Assertions are easy to maintain and a simple check that changes of a file are actually saved on that very same file are an absolute must-have.