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 152237 - Folded XML elements spontaneously unfold
Summary: Folded XML elements spontaneously unfold
Status: REOPENED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 155834 178220 197436 211178 238715 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-03 21:00 UTC by swpalmer
Modified: 2016-11-10 10:09 UTC (History)
6 users (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 swpalmer 2008-11-03 21:00:47 UTC
In the XML editor elements can be folded by clicking a '-' near the gutter.  I find that when I do this and continue 
editing other elements that come after those that are folded, the fold elements will spontaneously expand while I am 
manipulating the editor.
Comment 1 Svata Dedic 2011-10-21 09:11:11 UTC
*** Bug 178220 has been marked as a duplicate of this bug. ***
Comment 2 Svata Dedic 2011-10-21 09:11:16 UTC
*** Bug 197436 has been marked as a duplicate of this bug. ***
Comment 3 Svata Dedic 2011-10-26 14:54:32 UTC
The FoldManager in XML is very simplistic. Should be converted to CSL diff/commit fold support.
Comment 4 Svata Dedic 2011-11-11 20:48:47 UTC
*** Bug 155834 has been marked as a duplicate of this bug. ***
Comment 5 Svata Dedic 2012-05-21 11:51:51 UTC
*** Bug 211178 has been marked as a duplicate of this bug. ***
Comment 6 Svata Dedic 2013-04-11 09:23:04 UTC
*** Bug 228311 has been marked as a duplicate of this bug. ***
Comment 7 athompson 2013-04-11 14:16:18 UTC
Hi Svata,

Just verifying that issue #228311 is truly a duplicate of this issue. That issue is about code completion, not folding. Specifically, CC will pop up when pasting XML from the clipboard. This issue occurs even if nothing is folded, and even if code folding is disabled. The same issue that causes that problem causes this one as well?
Comment 8 Svata Dedic 2013-04-12 08:49:34 UTC
mea culpa ... I mixed two bugs together. Sorry & thanks for the notice.
Comment 9 Svata Dedic 2014-01-14 08:26:41 UTC
*** Bug 238715 has been marked as a duplicate of this bug. ***
Comment 10 messaged 2014-01-14 08:29:34 UTC
So it's could not be fixed for six years?
Comment 11 Svata Dedic 2014-01-14 08:45:26 UTC
The fix is not straightforward, as XML implements its own folding mechanism from scratch, APIs which could help with this (and other) issues on XML folding were introduced in NB 7.4. So XML folding support should not be fixed, but should be rather rewritten.

Anyway, there are priorities that I had to follow which round down to a work time I can dedicate for a particular module. XML folding has a rather low priority for me personally, compared to other assignments, sorry.

I understand you are unhappy with the progress; the easiest and fastest solution to do is to clone the source from hg.netbeans.org and propose the fix; review takes a lot less time than develop the fix + tests.
Comment 12 Martin Balin 2015-09-17 13:16:56 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.
Comment 13 theng 2016-11-10 10:09:02 UTC
Reopen this bug as still reproducible in Netbeans 8.1 and 8.2.