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.
Editor spuriously reformats the Ant build file after some changes are made. Usually happens on some keyboard event and happens quite often to make it really really annoyinng. Reformatting includes re-ordering of attributes, straightening of wrapped lines, etc. - pure formatting no content change. It looks like revalidation using XML parser which might resort and reformat the output.
This is a known bug if you make changes via the Explorer or property sheet, and so structure editing will just be disabled for the next release (no fix is readily available since it is a result of limitations in Xerces). However some users have reported that reformatting occurs sporadically without intentionally making changes via Explorer / propsheet, just while they are using the text editor. If you know how to reproduce this, or are willing to run with a diagnostic patch for a while in case it happens again, please see issue #40714. If someone can find how to reproduce this, it would be a candidate for a hotfix update to 3.6 - I have never personally seen it happen and don't have a clear idea what might cause it. *** This issue has been marked as a duplicate of 40714 ***
Jesse, I observed it in both cases, the propsheet editing and sporadical reformatting while making changes in text editor. Bit since I use text editor much more often I cannot comment on explorer/propsheet aspect of it. There are some lingering exceptions in IDE (NPE and IllegalStateException) and this reformatting seems to be connected to those, reformatting seems to start happening more often after one of those exceptions, but no hard data yet. I'll look into #40714. Best regards, -Azary
closed