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 177706 - Editing pom.xml file cannot be saved
Summary: Editing pom.xml file cannot be saved
Status: RESOLVED DUPLICATE of bug 175750
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P2 normal (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-26 21:53 UTC by peterwlynch
Modified: 2009-11-27 11:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description peterwlynch 2009-11-26 21:53:02 UTC
I was editing a pom.xml file manually in the editor. It was working fine for a while. Then for some reason I couldn't save my changes anymore. The tab with the file name had bold text indicating modified. Apple key + S did not change this.
The menu item "Save" was greyed out which tricked me for a while thinking my changes were in fact saved. Looking at the file in vim revealed my changes I saw in the Netbeans editor were not there. With the file still open I chose "Save As" in the File menu thinking I would capture my changes displayed in the editor to a new file. Instead what happended was that a new file 'pom1.xml' got created with the contents of what was really on disk. ( the unchanged file). So I lost my changes to that point - had to start over.

<Speculation> At some point I did get an Exception editing the file which I reviewed and reported, although not sure if the throwing of this exception caused the subsequent problems. After all everything appeared fine in the editor.</Speculation>

Sorry I don't have the exact steps to reproduce.
Comment 1 mslama 2009-11-27 02:54:22 UTC
Already fixed by jtulach.
Comment 2 Jaroslav Tulach 2009-11-27 11:34:40 UTC
This could be a duplicate of issue 175750: http://hg.netbeans.org/core-main/rev/35e736c73924

However it is up to the XML guys to verify that.

*** This bug has been marked as a duplicate of bug 175750 ***