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.

Bug 194487 - [70cat] No check for importing old settings
Summary: [70cat] No check for importing old settings
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 18:49 UTC by esmithbss
Modified: 2013-09-04 15:42 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
IDE Log (66.11 KB, application/octet-stream)
2011-01-19 18:50 UTC, esmithbss
Details
IDE Log (30.69 KB, application/octet-stream)
2011-01-26 09:17 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2011-01-19 18:49:57 UTC
Product Version = NetBeans IDE Dev (Build 201101190000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

I installed 201101190000 onto a machine with an existing 6.9 installation, but during initial start, I was not queried for importing the old settings.
Comment 1 esmithbss 2011-01-19 18:50:23 UTC
Created attachment 105158 [details]
IDE Log
Comment 2 Marian Mirilovic 2011-01-20 11:26:36 UTC
Did you reused already existing userdir / If so, this behavior is correct, if not please reopen.
Comment 3 esmithbss 2011-01-25 05:08:58 UTC
Prior uninstall settings were for a complete uninstall.  Remove NetBeans, glass fish, and userdir.

Possibility exists due to Windows and McAfee behavior that userdir was not removed due to folder being open (unlike *nix boxes which can delete open folders)
Comment 4 stefan79 2011-01-26 09:16:33 UTC
I have the same problem:
My netbeans_default_userdir="E:/.netbeans/dev".
There´s also a folder „E:\.netbeans\6.9“ (Settings from 6.9).

But there was no question to import the settings, after removing „E:/.netbeans/dev“.
Comment 5 stefan79 2011-01-26 09:17:27 UTC
Created attachment 105354 [details]
IDE Log
Comment 6 Yulia Novozhilova 2011-01-26 13:46:54 UTC
This is the expected behaviour. Currently the IDE is designed to check the settings in the "${HOME}/.netbeans" directory only. In case if you changed the default userdir and want to import setting from the existing non-default userdirs
please use Tools -> Options -> General tab -> Import button.
I agree it is inconvenient and should be improved. Issue type -> ENCHANCEMENT. Priority -> P2

java file: o.n.upgrader/src/org/netbeans/upgrade/AutoUpgrade.checkPrevious (String[], List<String>)
Comment 7 esmithbss 2011-01-26 21:31:50 UTC
I think that begs the question "what is ${HOME} set to, and when is it set?"

On my test machine, I have my user folder "c:\Documents And Settings\esmith" mapped to my C:\Data folder on my notebook, but desktops in my environment map this to a shared drive on our server.

Is this redirection causing a problem?
Comment 8 Theofanis Oikonomou 2013-09-04 15:42:17 UTC
(In reply to esmithbss from comment #7)
> I think that begs the question "what is ${HOME} set to, and when is it set?"

http://wiki.netbeans.org/FaqWhatIsUserdir

> 
> On my test machine, I have my user folder "c:\Documents And Settings\esmith"
> mapped to my C:\Data folder on my notebook, but desktops in my environment
> map this to a shared drive on our server.
> 
> Is this redirection causing a problem?

You can change the default userdir location by specifying --userdir through command line or by modifying the netbeans.conf file in your installation directory. In the latter case the upgrader should pick the changed userdir and offer you to import from previous version.

Another possibility is to manually import setting previously exported from an older version through the Options-> Import functionality.

I am not sure what exactly you did but if this does not work for you please reopen describing exact steps to reproduce. Thank you for reporting.