Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-core-dev] Save termination of headless Eclipse


This is caused by someone modifying the workspace after the point where you called IWorkspace#save. Typically this is some thread or job that was not correctly cleaned up before shutdown.  One way to debug this is by putting a breakpoint in Workspace#beginOperation and enabling the breakpoint immediately after the save completes. Then you should see the culprit that is modifying the workspace after save.

John



Thomas Hallgren <thomas@xxxxxxx>
Sent by: platform-core-dev-bounces@xxxxxxxxxxx

07/24/2008 05:08 AM

Please respond to
"Eclipse Platform Core component developers list."        <platform-core-dev@xxxxxxxxxxx>

To
platform-core-dev@xxxxxxxxxxx
cc
Subject
[platform-core-dev] Save termination of headless Eclipse





Hi,
We are using a headlessly configured Eclipse instance to populate a
workspace and then build it. This is typically done with two
invocations. One where projects are created (typcially by checking out
from CVS or SVN) and one that performs the build.

On occasion, the second invocation will print the message:

"The workspace exited with unsaved changes in the previous session;
refreshing workspace to recover changes."

I've tried various things to rectify this but so far they have all been
in vain. The current implementation does the following:

1. If autobuild is set, turn it off.
2. run the command in a try/finally clause.
3. In the finally clause, save the workspace with
ResourcesPlugin.getWorkspace().save(true, monitor)

I don't get any errors indicating any problems when I do this (the save
command returns an OK status) and I don't do any workspace related
operations after that. Still, the next time around, I get the "workspace
exited with unsaved changes" message.

I really need some help with this. What is it that the IDE does that we
seem to forget in our headless set-up?

I hope this is the right mailing list to ask this question. If not,
please advice.

Kind Regards,
Thomas Hallgren

_______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-core-dev


Back to the top