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 46759 - Recent project list not saved between sessions
Summary: Recent project list not saved between sessions
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
: 46803 46812 (view as bug list)
Depends on: 45774
Blocks: 41535
  Show dependency tree
 
Reported: 2004-07-29 20:11 UTC by Jesse Glick
Modified: 2004-08-13 12:11 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 Jesse Glick 2004-07-29 20:11:07 UTC
040729 but for a long time before too. It seems
that the list of recent projects is not saved
between IDE sessions. The menu item is always
disabled when I start the IDE.

There seems to be persistence code in
OpenProjectList and OpenProjectListSettings. Not
working?
Comment 1 Jesse Glick 2004-07-29 20:15:50 UTC
Guessing that because I run Linux, the save method stores
projectDirectory.getPath() (e.g. "home/jglick/prjs/foo") and the load
method calls new File(path) which of course does not work. On Windows
it may work by accident, assuming new File("d:/projects/foo") works
despite the incorrect separator.

Store URLs please.
Comment 2 Jesse Glick 2004-07-31 19:12:01 UTC
*** Issue 46803 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2004-08-02 12:43:18 UTC
*** Issue 46812 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2004-08-02 12:46:24 UTC
Especially bad on Macs where the cwd is '/', since it starts to work
but then fails with a runtime exception. Even worse, OPL.gD does

  INSTANCE.openProjects = loadProjectList();

without any checking for runtime exceptions, so if there is any kind
of persistence problem such as in issue #46812 which causes a runtime
exception, the whole OPL cannot be loaded and the IDE is totally
broken. Needs to be made more robust.
Comment 5 Petr Hrebejk 2004-08-03 10:35:00 UTC
Checking in
projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java,v
 <--  OpenProjectList.java
new revision: 1.17; previous revision: 1.16
done
Checking in
projectui/src/org/netbeans/modules/project/ui/OpenProjectListSettings.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectListSettings.java,v
 <--  OpenProjectListSettings.java
new revision: 1.9; previous revision: 1.8
done