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 43232 - Spurious reformatting of the build file
Summary: Spurious reformatting of the build file
Status: VERIFIED DUPLICATE of bug 40714
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-05-13 18:53 UTC by asmotrich
Modified: 2005-07-15 07:52 UTC (History)
0 users

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 asmotrich 2004-05-13 18:53:27 UTC
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.
Comment 1 Jesse Glick 2004-05-13 19:04:40 UTC
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 ***
Comment 2 asmotrich 2004-05-13 21:29:24 UTC
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
Comment 3 Marian Mirilovic 2005-07-15 07:52:59 UTC
closed