Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » The user is waiting of "Building workspace" to complete
The user is waiting of "Building workspace" to complete [message #322599] Wed, 21 November 2007 05:58 Go to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

Hi,

I'm having this message displayed when I'm been trying to perform a save
on a EMF resource.

I've the following code

private void performSave(final Resource resource,
IProgressMonitor progressMonitor) {
// Do the work within an operation because this is a long running
// activity that modifies the workbench.
WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
public void execute(IProgressMonitor monitor) {
try {
resource.save(null);
} catch (IOException ioe) {
Logger.error("Unable to save the resource", ioe);
}
}
};

try {
// This runs the options, and shows progress.
new ProgressMonitorDialog(getSite().getShell()).run(true, false,
operation);


// Refresh the necessary state.
getEditDomain().getCommandStack().markSaveLocation();
firePropertyChange(IEditorPart.PROP_DIRTY);
} catch (InterruptedException ie) {
Logger.error("Unable to save the resource", ie);
} catch (InvocationTargetException ite) {
Logger.error("Unable to save the resource", ite);
}
}

Any idea on how I can fix this bug ?

Thanks
Re: The user is waiting of "Building workspace" to complete [message #322600 is a reply to message #322599] Wed, 21 November 2007 06:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

it's seem to be XMLResourceImpl bug on the xmlSave.save(this,
outputStream, options);

Suggestions ?
Re: The user is waiting of "Building workspace" to complete [message #322601 is a reply to message #322600] Wed, 21 November 2007 06:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

After doing a more complete debug the problem appear on XMLSave on the
writeAscii method -> os.flush() it's block my thread
Re: The user is waiting of "Building workspace" to complete [message #322602 is a reply to message #322600] Wed, 21 November 2007 06:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Alexandre,

This sounds like the kind of message you get when you are attempting a
workspace operation while another one is still in progress, i.e., if you
try to save a file during the middle of a build. I don't think there
are any bugs.


Alexandre Jaquet wrote:
> it's seem to be XMLResourceImpl bug on the xmlSave.save(this,
> outputStream, options);
>
> Suggestions ?
Re: The user is waiting of "Building workspace" to complete [message #322603 is a reply to message #322601] Wed, 21 November 2007 06:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Alexandre,

Well yes, because under the covers it will try to write to the
workspace, and if the workspace is locked because of a build, it has to
wait for the build to complete...


Alexandre Jaquet wrote:
> After doing a more complete debug the problem appear on XMLSave on the
> writeAscii method -> os.flush() it's block my thread
Re: The user is waiting of "Building workspace" to complete [message #322605 is a reply to message #322602] Wed, 21 November 2007 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

Thanks Ed for your remark, I bypass the problem by saving the resource
with an ouputstream its work well.
Re: The user is waiting of "Building workspace" to complete [message #322606 is a reply to message #322605] Wed, 21 November 2007 10:01 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Alexandre,

I'm not so convinced it will work "well." Most likely the workspace
will be out of sync with respect to the file system using this approach,
so this is masking a problem by creating a new one... Try opening the
resource with a text editor afterwards...


Alexandre Jaquet wrote:
> Thanks Ed for your remark, I bypass the problem by saving the resource
> with an ouputstream its work well.
Previous Topic:Plugin is instantiated but bundle is null
Next Topic:"Listening" to Team Actions (Commit/Update/...) (i.e. ISubscriberChangeListener)
Goto Forum:
  


Current Time: Sat Jun 07 11:57:14 EDT 2025

Powered by FUDForum. Page generated in 0.03195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top