Bug 2028 - Unhelpful error message when deleting project (1GDQ11R)
Summary: Unhelpful error message when deleting project (1GDQ11R)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2001-10-10 22:24 EDT by Nick Edgar CLA
Modified: 2002-04-29 18:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2001-10-10 22:24:52 EDT
- tried deleting a project containing JUnit and some other test files I created
- restarted workbench
- deleted project
- it deleted Junit, did an auto-build, then complained that there were "problems deleting resources"
- the error dialog has some nested errors, with the message "problems deleting resources"

I suspect the problem was just having files out-of-synch.  The error messages should be more helpful.
Or, preferably, don't give me errors at all and just force deletion.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:46:31 EST
PRODUCT VERSION:
104 VAJ

Comment 2 Kevin Haaland CLA 2002-01-25 12:39:27 EST
Pls include this in your "Improved Servicability" task. 
Comment 3 John Arthorne CLA 2002-01-25 16:52:27 EST
The exception returned by Core (with the message "problems deleting resources") 
is a multistatus.  The children of the multistatus indicate that there are files 
out of sync with the filesystem.  This is indicated by the status code of 
IResourceStatus.OUT_OF_SYNC_LOCAL, and by a message to the user.

In build 20020125, this information is correctly revealed in the UI if the user 
clicks on the "Details" button.  So it looks like the main servicability problem 
has been addressed since this PR was entered.

For a nicer user experience, the UI should detect the OUT_OF_SYNC_LOCAL case, 
and then prompt the user with something like "The project has changed in the 
filesystem since the last refresh.  Delete anyway?"  If the user clicks yes, 
then call delete a second time with force=true.  This will force deletion 
regardless of whether the filesystem is out of sync with the workbench.  I 
wouldn't recommend forcing deletion without user interaction, because files may 
have been added in the filesystem that the user forgot about.  Silently forcing 
deletion in that case could mean lost work.

Moving to UI for consideration.
Comment 4 Nick Edgar CLA 2002-01-28 10:49:14 EST
Filed separate bug 8592 for review of how we handle out of synch resources.
Comment 5 Knut Radloff CLA 2002-04-29 18:53:33 EDT
This scenario works, presumably because the workbench is passed the refresh 
from local command line parameter.

In addition, the new "Delete project contents" prompt always forces deletion 
when the project content is deleted and a contained resource is out of sync.