netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

NetBeans 30 does not migrate the previous user profile on macOS

Open gitsocko opened this issue 4 months ago • 6 comments

Apache NetBeans version

Apache NetBeans 30

What happened

On first launch after upgrading to Apache NetBeans 30, the IDE starts with a fresh profile instead of detecting and importing the previous version's user profile.

The NetBeans 30 window layout is reset, previously open and recent projects are missing, editor preferences are not retained, database connections are absent, and other profile settings are not migrated. No useful migration prompt appears.

Expected behavior: On first launch, NetBeans 30 should detect the most recent prior profile and offer to migrate the UI layout, open/recent projects, editor preferences, database connections, and other user settings.

Language / Project Type / NetBeans Component

IDE startup / user profile migration

How to reproduce

  1. Use Apache NetBeans 29 on macOS with a configured UI layout, open/recent projects, editor preferences, database connections, and other user settings.
  2. Install Apache NetBeans 30.
  3. Launch NetBeans 30 for the first time.
  4. Observe that no useful migration prompt appears.
  5. Observe that NetBeans 30 opens with a fresh layout and no knowledge of the prior recent/open projects or other profile settings.

This was reproduced on two Macs:

  • Apple-silicon MacBook Air, upgrading NetBeans 29 to 30.
  • 2017 Intel iMac, upgrading NetBeans 25 to 30.

The failure occurred on both upgrade paths.

Did this work correctly in an earlier version?

No / Don't know

Operating System

macOS 26.5.2 (build 25F84), Apple silicon arm64; also reproduced on a 2017 Intel iMac

JDK

Eclipse Adoptium OpenJDK 26.0.1+8, aarch64

Apache NetBeans packaging

Community provided installer

Anything else

Current system:

  • MacBook Air (Mac16,12)
  • Apple M4, 10-core CPU
  • 16 GB memory
  • macOS 26.5.2 (build 25F84), arm64
  • Apache NetBeans IDE 30
  • Build: 30-46c1feab2cb98b58ae1eccb4f9fba1c29137cf5d (11 May 2026)
  • Runtime: Eclipse Adoptium OpenJDK 26.0.1+8, aarch64

Workaround that restores the previous profile:

rm -rf ~/Library/Application\ Support/NetBeans/30
cp -a ~/Library/Application\ Support/NetBeans/29 \
      ~/Library/Application\ Support/NetBeans/30
rm -rf ~/Library/Application\ Support/NetBeans/30/var/cache
rm -f ~/Library/Application\ Support/NetBeans/30/lock

Related reports found during duplicate search:

  • #6365 requests preserving editor/index history across upgrades, but does not report this NetBeans 30 full-profile migration failure.
  • #9410 concerns only target servers for web projects and does not cover the fresh-profile behavior described here.

Are you willing to submit a pull request?

No

gitsocko avatar Jul 22 '26 17:07 gitsocko

You can import settings later by using Tools / Options / Import, or wherever macOS puts that menu item (NetBeans / Preferences?). Copying the whole userdir is not recommended.

The Intel test doesn't show the same failure. NB25 is too old to be suggested for automatic import. Only the previous 3 releases will be offered.

If you backup the userdir elsewhere and delete it, does the import from NB29 fail to trigger again? I assume this is with the Codelerity installer? Where was the NB29 version from? This behaviour is not universally reproducible - importing is part of the testing before distribution.

neilcsmith-net avatar Jul 22 '26 17:07 neilcsmith-net

On first launch after upgrading to Apache NetBeans 30, the IDE starts with a fresh profile

there would be a dialog asking if you wanted to import a previous configuration, assuming the configuration is at the usual place. Since you didn't mention it, does it mean there was no dialog?

The NetBeans 30 window layout is reset

just as sidenote: UI state like window positions were never migrated. It imports most of the other configuration though.

mbien avatar Jul 22 '26 22:07 mbien

You can import settings later by using Tools / Options / Import, or wherever macOS puts that menu item (NetBeans / Preferences?). Copying the whole userdir is not recommended.

Got it; thanks. So maybe my bug report should have been a feature request. I don't think I've ever in 40 years used an app that makes me reconfigure all of my views every time I upgrade, reopen projects, etc.; so I assumed it was a bug.

The Intel test doesn't show the same failure. NB25 is too old to be suggested for automatic import. Only the previous 3 releases will be offered.

Behavior is identical for me on M4/NBv29 and Intel/NBv25.

If you backup the userdir elsewhere and delete it, does the import from NB29 fail to trigger again?

I would not think to try this. It's an upgrade, so any userdir manipulation should be handled by the installer.

I assume this is with the Codelerity installer?

Yes.

Where was the NB29 version from?

Also Codelerity, but all standalone installers have behaved this way.

This behaviour is not universally reproducible - importing is part of the testing before distribution.

So you're saying user interaction is required? I guess that goes back to feature request. Not friendly UX if that's the user expectation.

On first launch after upgrading to Apache NetBeans 30, the IDE starts with a fresh profile

there would be a dialog asking if you wanted to import a previous configuration, assuming the configuration is at the usual place. Since you didn't mention it, does it mean there was no dialog?

There was no dialog. Previous versions at least asked about plugin migration after install, but never about window position, pane existence/position or previously open projects (to my recollection).

The NetBeans 30 window layout is reset

just as sidenote: UI state like window positions were never migrated. It imports most of the other configuration though.

I think it remembers everything inside the settings window. Having to set up my workspace (mainly window views) every update, though, is not good UX.

gitsocko avatar Jul 31 '26 10:07 gitsocko

there would be a dialog asking if you wanted to import a previous configuration, (...)

There was no dialog. Previous versions at least asked about plugin migration after install, (...)

right, so this would be the root cause. The import step on first launch didn't see or recognize the config of the previous version or didn't import for other reasons. NB doesn't import config without asking the user first. If you didn't see the dialog or clicked "no", the config migration didn't occur.

Workaround that restores the previous profile:

renaming config folders isn't a supported way to upgrade to a newer version, it might work but it will likely also lead to problems down the line - this might also include that the importer isn't working (on future updates).

mbien avatar Jul 31 '26 10:07 mbien

You can import settings later by using Tools / Options / Import, or wherever macOS puts that menu item (NetBeans / Preferences?). Copying the whole userdir is not recommended.

Got it; thanks. So maybe my bug report should have been a feature request. I don't think I've ever in 40 years used an app that makes me reconfigure all of my views every time I upgrade, reopen projects, etc.; so I assumed it was a bug.

If the dialog didn't appear at first start from upgrade, then it's a bug. This is just the way to import settings from somewhere at a later date.

If you backup the userdir elsewhere and delete it, does the import from NB29 fail to trigger again?

I would not think to try this. It's an upgrade, so any userdir manipulation should be handled by the installer.

a) this has nothing to do with the installer. If it did, this is not the right place to discuss issues with that. The import feature is built into the IDE, not the installer.

b) I'm asking you to see if you can reproduce the error, not suggesting how you should fix it. If you cannot confirm whether the problem recurs on your setup, then I will close this as not reproducible. The behaviour is not correct, but it's currently only reported for one run on one of your machines.

neilcsmith-net avatar Jul 31 '26 13:07 neilcsmith-net

I've tested this workflow multiple times while checking the community installer builds on macOS. Import dialog always shows up on first run after install when userdir absent. Still no feedback on whether it's reproducible on the reporter's machine, so closing.

neilcsmith-net avatar Aug 10 '26 13:08 neilcsmith-net