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

Summary: File changes are saved to an unknown location or thrown away
Product: editor Reporter: kalle1
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: nb/var/log/messages.log of a session with the issue

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.