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.
Summary: | Code Folds in XML files only work after formatting. | ||
---|---|---|---|
Product: | xml | Reporter: | bbrn <bbrn> |
Component: | Text-Edit | Assignee: | Samaresh Panda <samaresh> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | michaelnazarov, tonybeckham |
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
bbrn
2008-05-16 14:17:50 UTC
Do you have an example? If yes, please attach. Can you pl. provide an example? Providing an example is difficult, because it works most of the time. As it looks, the problem seems not to be caused by formatting directly, but by something else. I copied my original files to some other directory to simplify them a bit and suddenly they worked. Nevertheless, they didn't work at their original location. But even there the folding markers came back after after inserting some whitespace after the XML header. They even stayed there after reverting to the original file content. The effect is reproducible, however. If I close the file and reopen it, folding markers are gone and won't come back before doing some editing. In principle, I could live with that. What's really annoying is that folding also stops working again after doing some further editing. I cannot say what exactly causes this, but in that case, I only got folding to work again after reformatting, which brought me to the initial assumption that it is connected to formatting. I understand that it didn't work sometimes and I want to fix that, however, if I do not have an example xml which fails, I cannot really do anything. CC'ing Tony and Michael to try as well. For now, I'm downgrading. Please make it a P3 or P2 when you have an example. I'm sorry that I can't come up with a reasonable example. The problem doesn't seem to be related to a certain XML content. The only things that I was able to reproduce were the following: - Folds sometimes don't show after loading a file. Strangely this seems to depend on the file location on disc. - Folds disappear after manually editing the file. Not all kinds of editing cause this effect. I still couldn't find out what is exactly necessary to reproduce it. - Folds reliably come back after autoformatting the file, but only, if the XML validates successfully. How about you attach the files that you have had problems with, ever? There used to be some issues with folds, which were fixed in 6.5. Please verify again. XML Code folds seem to work fine with NB 6.5 |