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.
[ BUILD # : 201201180601 ] [ JDK VERSION : 1.6.29 ] When you try to expand the code fold for the generated code, it does not. This has worked earlier and as such it is a regression. When IDE is newly started and files are opened in source mode you can expand the fold, but if you switch to design mode, and then back, the folds could no longer be expanded. Also if you close and load a file you can't expand the fold either. This report is specific to the "generated code" fold as for what I can see no other folds have this problem.
Also, just checked the following; disabled code folding in options, and it can't be expanded at all, it is still folded down with no way of unfolding. I tried restarting the IDE after changing the option but no change. Also after restoring the option to use code folding you can expand the fold but then it can no longer be folded down (same problem but the other way around...)
reproducible, the fold can be expanded by double click but not by key shortcut. Anyway, please fix it ASAP, this is highly visible bug. Thanks
Note - if you open the file in source mode (e.g. using right-click - Edit), folding is OK. According to the debugger, there are several rounds of rebuildManagers() calls when the file is opened in Design mode. It seems that already released managers attempt to push their folds to the current set (and they succeed !), so there's a parent+child occupying the same range for the "Generated code" block.
Changeset: c29d16a0f508 Author: Svata Dedic <sdedic@netbeans.org> Date: 2012-01-27 13:20 Message: #207657: fixed race between reparenting the Editor view in a multiview container. Added consistency check that rejects Fold updates from already released managers. Issue #207657 - Code fold for generated code does not expand: fixed
Oki, I'll check it out as soon as it gets into the build...
Wonder why I've not verified this earlier