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 42639 - Deleted projects not handled gracefully
Summary: Deleted projects not handled gracefully
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tboudreau
Depends on:
Blocks: 41535
  Show dependency tree
Reported: 2004-04-30 12:41 UTC by _ tboudreau
Modified: 2006-03-24 10:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-04-30 12:41:13 UTC
I just restarted a current trunk build.  Since I had last used my 
userdir, I had deleted the checkout where the last opened 
project was.

The result was numerous NPEs on startup, a bunch of open 
editor tabs with no contents, all of which were marked modified, 
missing Projects and Files tabs in Explorer, etc.  Pretty messy - 
in fact it required deleting the user dir to make the IDE usable 
Comment 1 Jesse Glick 2004-04-30 18:19:32 UTC
Deleted files should not be opened in the editor regardless of project
support - if this is broken, please file a separate bug in
openide/text as it has nothing to do with the project system.

Certainly the project tab's deser code is supposed to handle projects
which no longer exist on disk. Will leave it to Petr to evaluate.
Comment 2 Petr Hrebejk 2004-05-03 13:57:35 UTC
Tim, I looked at the exceptions and they are all about JavaEditor
windows. The Project/Files tabs should handle the deleted projects
gracefully. Moving the bug back to you to reassin to editor or Java or
whatever you think is appropriate. Or mark it as INVALID and create
new issue. (Btw just restarting the IDE was quite enoug for me to fix
the problem)
Comment 3 Jesse Glick 2004-05-03 17:28:12 UTC
Tim claims the Projects and Files tabs were missing in the Explorer.
True? Reproducible?
Comment 4 _ tboudreau 2004-05-05 11:05:31 UTC
Not reproducible with the J2SE project type; maybe specific to the netbeans module project 
type? (I don't feel like deleting my check-out at the moment to try to reproduce)
Comment 5 Jesse Glick 2004-06-15 13:15:39 UTC
No info to reproduce.
Comment 6 Marian Mirilovic 2005-07-12 10:15:00 UTC