netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Document Groups doesn't work after upgrade

Open Eccenux opened this issue 1 month ago • 2 comments

Apache NetBeans version

Apache NetBeans 28

What happened

Document Groups doesn't seem to work after upgrade to NB28 on Windows. The list is available but doesn't open any files.

Language / Project Type / NetBeans Component

Java Maven Web application project

How to reproduce

  1. In NB26 create a document group.
  2. Open some files.
  3. Switch to new document group.
  4. Upgrade using: https://www.codelerity.com/netbeans/
  5. Import settings.
  6. You can restart NB just to be sure you have everything.
  7. Switch to the document group you created. -> no files are opened.

Did this work correctly in an earlier version?

Apache NetBeans 26

Operating System

Windows 11 25H2

JDK

Java: 21.0.8; OpenJDK 64-Bit Server VM 21.0.8+9-LTS

Apache NetBeans packaging

Other

Anything else

No response

Are you willing to submit a pull request?

No

Eccenux avatar Nov 18 '25 12:11 Eccenux

Seems like AppData\Roaming\NetBeans\26\config\DocumentGroups\ was not copied to v28.

To workaround this:

  1. Switch to <none> group.
  2. Close NB.
  3. Copy NetBeans\26\config\DocumentGroups\* to NetBeans\28\config\DocumentGroups\ (replace all files).
  4. Copy NetBeans\26\config\Preferences\org\netbeans\core\windows\DocumentGroups\ to NetBeans\28\config\Preferences\org\netbeans\core\windows\DocumentGroups\.

Switching groups is slow after that (I assume some config conversion is done), but surprisingly so far it works fine. I also noticed each opened group is modified (names of views are modified like on the screen below).

Image

Eccenux avatar Nov 18 '25 12:11 Eccenux

switching document groups was always fairly slow - esp when it switched between a lot of files, but I don't use them very often.

My document groups did import into NB 28 though.

mbien avatar Nov 18 '25 17:11 mbien