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 237085 - IDE fails to update recent projects list after settings import
Summary: IDE fails to update recent projects list after settings import
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.4
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on: 237084
Blocks:
  Show dependency tree
 
Reported: 2013-10-14 03:56 UTC by ytn01
Modified: 2013-11-19 10:47 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 ytn01 2013-10-14 03:56:41 UTC
It seems like NetBeans forgets to add a new project you were working on to recent projects list after restarting from settings import.

Procedure:
1. Create a new project, like Java Appication project called ProjectX
2. Modify one of the source file it contains
3. Import a setting by using NetBeans\Preferences\Import... on Mac or Tools\Options\Import... on other platforms
4. Agree to import all settings, and restart
5. IDE will ask to save modified files and restart
6. After IDE reopens, notice it didn't update recent projects list to contain the ProjectX,... though source files are open in the editor

Product Version = NetBeans IDE 7.4 (Build 201310012201)
Operating System = Mac OS X version 10.8.5 running on x86_64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Comment 1 ytn01 2013-10-14 05:14:57 UTC
I believe this bug is valid only if bug 237084 is an invalid one.
Comment 2 Theofanis Oikonomou 2013-10-14 11:36:01 UTC
Seems like an issue with project support. re-assigning for evaluation. Thank you
Comment 3 Martin Kozeny 2013-10-14 12:30:39 UTC
Actually for me all projects are missing and Open Recent Project dialog is empty. Maybe depends on what options do you import...
Comment 4 Martin Kozeny 2013-10-14 14:17:53 UTC
What settings do you exactly import?
Comment 5 ytn01 2013-10-14 14:49:48 UTC
This is happening to me when I import all settings.

(In reply to Martin Kozeny from comment #4)
> What settings do you exactly import?
Comment 6 Milos Kleint 2013-11-19 10:47:22 UTC
projects need to be explicitly closed (not during shutdown) to qualify as "recent" projects. There's no magic way of turning an open project into recent one.

But I suppose by importing everything from a given storage, you are importing both the open projects and recent project lists from that storage, no post processing is done to "merge" the imported values with the current state. That applies to open AND recent projects and any other setting. And I believe it's correct that way.

the open source file is likely a side effect of how window system settings are persisted.

closing as wontfix, no post processing on open projects and moving them to recent projects category is to be done after import of old settings