Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 77946 - Waiting for "Building workspace" to complete
Summary: Waiting for "Building workspace" to complete
Status: RESOLVED DUPLICATE of bug 77039
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-05 09:42 EST by Stephen Thompson CLA
Modified: 2004-11-22 14:56 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Thompson CLA 2004-11-05 09:42:00 EST
I have seen this reported elsewhere but on 3.0 betas mostly.  

Trying to iteratively debug my code I am tweaking my JUnit test cases and
launching them again.  Frequently, the launching window comes up indicating "The
user operation is waiting for background work to complete" and indicating above
that "The user operation is waiting for "Building workspace" to complete."

The workaround is to change the workspace perferences to Prompt when waiting for
the build to complete when launching.

I have tried running Eclipse under JDK 1.5.0 and 1.4.2.  I've alternated between
JDK 1.3.1_09, 1.4.2_02, and 1.5.0 as my compiler but this problem remains.
Comment 1 John Arthorne CLA 2004-11-05 11:16:23 EST
This sounds like the expected behaviour. If it did not wait for the build to
complete, you could be launching against out of date class files. There are a
variety of preference settings under Run/Debug > Launching that allow you to
change this if desired.

Can you clarify what you believe the bug is here?
Comment 2 Stephen Thompson CLA 2004-11-05 11:33:10 EST
The problem is that it never clears, and I cannot stop that "build".  I can go 
to lunch, come back and it is still not cleared.  

There is a comment on the message forums with a suggestion that something 
could be broken in the compiler notifying Eclipse that the build is done.  I 
have done a Clean..., rebuilding the whole workspace and when I try to launch 
I still get this message.

The other workaround is to close Eclipse and restart, which also clears the 
problem for the next run, though after my next change the problem returns.
Comment 3 John Arthorne CLA 2004-11-05 11:44:48 EST
Ok, that wasn't clear from the original description. Darin & Darin, have you
heard of this happening?  It could be related to some bugs we recently
discovered with the IJobManager.join implementation, which I believe is used to
wait for the build to complete. See bug 77039.
Comment 4 Darin Wright CLA 2004-11-05 11:50:38 EST
I have not heard of this happening. We do join an existing build if the user 
has asked to "wait for build before launching". See the code in 
DebugUIPlugin.launchInBackground(...).
Comment 5 Stephen Thompson CLA 2004-11-05 11:59:07 EST
Is there any other information I can offer to help diagnose this?
Comment 6 John Arthorne CLA 2004-11-05 12:24:58 EST
I'm suspecting the join is at fault. Stephen, once a fix for that is released
you can help by verifying it if you like. I haven't reproduced the problem here.
Comment 7 John Arthorne CLA 2004-11-22 14:56:38 EST
Marking as a duplicate of the bug in JobManager.join, as the symptoms here are
the same.  Please reopen if you still experience on a build *after* 3.1 M3 (such
as I20041111 or I20041117).

*** This bug has been marked as a duplicate of 77039 ***