Bug 66437

Summary: Canceling search leads to broken workspace
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: wassim.melhem
Version: 3.0   
Target Milestone: 3.0 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Log file showing trace of cancelation none

Description John Arthorne CLA 2004-06-09 18:29:14 EDT
I20040609 1200

1) Switched to the Java perspective and then quickly did Ctrl+Shift+T. 
2) Got a "User operation is blocked dialog". 
3) Clicked the cancel button on the "User Operation" entry in the dialog.
4) The operation canceled as expected.

I am now in a state where all Java tooling is broken. F3 doesn't work, type
hierarchy doesn't work, etc. The Problems view shows no problems in the workspace.

5) Modify a file and hit save (autobuild is on).

Now I get the following problem marker on all projects:

The project was not built since its build path is incomplete. Cannot find the
class file for java.lang.Object. Fix the build path then try building this project.

I had to shutdown, restart, Clean the workspace, and do a full build to get back
into a good state. It seems that JDT isn't recovering from the cancelation of
the build path initialization.

Note: I was testing this scenario heavily in 3.0 RC1 and didn't find any
problems. It seems like there is a recent regression here. CCing Wassim as it
could possibly be caused by the PDE classpath container.
Comment 1 John Arthorne CLA 2004-06-09 18:29:43 EDT
Created attachment 11848 [details]
Log file showing trace of cancelation
Comment 2 Jerome Lanneluc CLA 2004-06-10 09:46:00 EDT
Good find John and thanks for the stack trace. 

Changed JavaModelManager.initializeAllContainers(...) to ensure that the 
containers are not left as 'initialization in progress' if an exception 
traverses this code.
Comment 3 Olivier Thomann CLA 2004-06-11 10:46:40 EDT
Could not reproduce with 200406110010.
Verified in 200406110010