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 245376 - Importing settings should not import projects
Summary: Importing settings should not import projects
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-03 13:20 UTC by blake1024
Modified: 2014-07-09 11:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description blake1024 2014-07-03 13:20:39 UTC
The first time you run NB 8.0 it asks if you want to import setting from a prior NB (presumably if there is one).  If the user selects "Yes", the system not only imports settings, but it also imports _projects_.  This is a major problem for several reasons as follows:

1.  It asked to import "settings" not "projects".  It should not do this unless given permission.

2.  When it imports projects, NB automatically modifies several project files to upgrade them to the new NB.  This renders the projects potentially unusable with the old version of NB.

So, let's say you are using NB 7.3.1 and mostly happy with it.  You wish to install NB 8.0 in order to do some testing of the new NB.  You are asked if you want to import "settings".  You select "yes" because you want your editor preferences set the same.  Without warning, NB 8.0 forces an upgrade of all of your projects.

Perhaps the popup box that asks if you want to import settings should include a checkbox that says "import projects too".

Thanks.

Blake
Comment 1 Martin Kozeny 2014-07-09 09:07:00 UTC
Hi Blake,

when you agree with importing settings with that settings is also imported configuration of project groups located in ${install.dir}/config/Preferences/org/netbeans/modules/projectui/(groups|nonegroup). In that configuration is also stored settings of none group which is default group and its project structure is imported.
Comment 2 blake1024 2014-07-09 09:13:26 UTC
I understand that.  The problem is the message.  If you insist on (destructively) importing the projects, at least tell the user that importing "configuration" also means "importing" and "upgrading" the projects.  It is not clear that this happens.  Many people end up installing an upgrade only to have to de-install it and restore all of their projects.  It's cool that you know that.  It would be nice if all users were warned in that message.
Comment 3 Martin Kozeny 2014-07-09 11:29:42 UTC
By importing settings is meant all settings including project groups which also belongs to settings. It is not very reasonable to enumerate in that dialog all options for import. If you want to import specific parts of settings, please use Export dialog (Tools->Options->Export...) http://wiki.netbeans.org/ExportImportOptions.