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.
Summary: | Recent project list not saved between sessions | ||
---|---|---|---|
Product: | projects | Reporter: | Jesse Glick <jglick> |
Component: | Generic Infrastructure | Assignee: | Petr Hrebejk <phrebejk> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 45774 | ||
Bug Blocks: | 41535 |
Description
Jesse Glick
2004-07-29 20:11:07 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. *** Issue 46803 has been marked as a duplicate of this issue. *** *** Issue 46812 has been marked as a duplicate of this issue. *** 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. 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 |