Bug 2757 - [UI] EC: Export fails when files out of synch (1GIV9DS)
Summary: [UI] EC: Export fails when files out of synch (1GIV9DS)
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: ---   Edit
Assignee: Eduardo Pereira CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:42 EDT by Nick Edgar CLA
Modified: 2002-02-14 11:43 EST (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:42:57 EDT
From EC post: "Export to Filesystem fails" by PG on Aug 21, 2001.

I had a group of html files in a project to export.  Some of the files
were configured to use the default text editor.  Others were configured to
use an external editor (a GUI vi clone called gvim).  The ones that were
configured to use gvim failed to export.  The ones configured to use the
default editor suceeded.  Upon changing all file to use the Workbench text
editor by default, the export of all files succeeded.

Also, the "Details" button of the error panel told me which files failed
to export, but not the reason why.

I am using "jre-win32-Eclipse-SDK-SHIPPED-0.128.zip".

NOTES:

NE (8/22/01 11:35:21 AM)
This is probably due to the workspace being out of synch with the filesystem.
Before you export, try choosing "Refresh From Local" in the Navigator's popup menu 
with the project selected.
I've filed a problem report for this, since there doesn't seem to be any reason why you 
shouldn't be able to export even if it's out of sync.
Also, as you point out, the error reporting could use some improvement.

EJP (10/3/2001 4:46:13 PM)
	Suggestion: The catch block in the exportFile (zip and etc) could create a MultiStatus instead.
	So the user would know why it failed to export.

	} catch (CoreException e) {
		MultiStatus status = new MultiStatus(
				PlatformUI.PLUGIN_ID,
				0,
				DataTransferMessages.format(
					"DataTransfer.errorExporting", //$NON-NLS-1$
					new Object[] { fullPath }),
				e);
		status.add(e.getStatus());
		errorTable.add(status);
	}
	
	The same idea could be used for the IOException as well.
Comment 1 DJ Houghton CLA 2001-10-29 19:14:36 EST
PRODUCT VERSION:
128

Comment 2 Nick Edgar CLA 2002-01-27 15:09:35 EST
Error reporting should be improved.
Comment 3 Eduardo Pereira CLA 2002-02-14 11:43:23 EST
Error message has already been fixed.
It will show the file name and the reason.