Document Groups doesn't work after upgrade
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
- In NB26 create a document group.
- Open some files.
- Switch to new document group.
- Upgrade using: https://www.codelerity.com/netbeans/
- Import settings.
- You can restart NB just to be sure you have everything.
- 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
Seems like AppData\Roaming\NetBeans\26\config\DocumentGroups\ was not copied to v28.
To workaround this:
- Switch to
<none>group. - Close NB.
- Copy
NetBeans\26\config\DocumentGroups\*toNetBeans\28\config\DocumentGroups\(replace all files). - Copy
NetBeans\26\config\Preferences\org\netbeans\core\windows\DocumentGroups\toNetBeans\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).
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.