Bug 66692

Summary: Compiler error not fixed up when converting from binary to source prerequisite project
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: wassim.melhem
Version: 3.0   
Target Milestone: 3.0 RC3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nick Edgar CLA 2004-06-11 10:56:35 EDT
build I20040611-0010

- load Text and UI loaded from head, except for org.eclipse.text
- built
- got some compile errors:
Severity	Description	Resource	In Folder	Location	Creation Time
2	The method computeUnprojectedMasterRegions(int, int) from the type
ProjectionDocument is not visible	ProjectionViewer.java
org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection
line 183	June 11, 2004 10:42:13 AM
2	The method computeProjectedMasterRegions(int, int) is undefined for the type
ProjectionDocument	ProjectionViewer.java
org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection
line 191	June 11, 2004 10:42:13 AM

- loaded org.eclipse.text from head
- Ctrl+B
- it did not fix up the errors
- touched ProjectionViewer
- Ctrl+B
- it appeared to do a full rebuild of org.eclipse.jface.text

It's as if the classpath change wasn't noticed earlier.
Comment 1 Olivier Thomann CLA 2004-06-11 11:54:37 EDT
Is org.eclipse.text referenced through the PDE container?
Comment 2 Nick Edgar CLA 2004-06-11 12:21:10 EDT
Yes.
Comment 3 Kent Johnson CLA 2004-06-15 12:42:10 EDT
Couldn't reproduce it.

I tried with the latest jdt.core on top of build I20040611-0010 & with just 
build I20040611-0010.

The 2 errors were fixed up during the first build (with & without Auto-build 
enabled) after extracting org.eclipse.text from head.

Nick: if you have time & can reproduce it, please let me know.
Comment 4 Kent Johnson CLA 2004-06-16 11:28:54 EDT
Could be related to bug 66766.
Comment 5 Wassim Melhem CLA 2004-06-16 11:38:17 EDT
bug 66766 only occurs when you delete org.eclipse.swt and 
org.eclipse.swt.win32 (in that order) from your workspace.  This would result 
in an incomplete classpath that is missing swt.jar.  No amount of rebuilds 
could fix this problem.

In this case, the classpath is complete since an explicit rebuild fixed it.
Comment 6 Philipe Mulet CLA 2004-06-17 10:34:25 EDT
Removing milestone. Cannot commit to address until it got reproduced.
Comment 7 Nick Edgar CLA 2004-06-17 10:59:27 EDT
Tried going back to I20040611-0010 and doing:
- delete org.eclipse.text 
- Ctrl+B (the 2 errors came back)
- loaded org.eclipse.text from head
- Ctrl+B
- the errors were correctly fixed up

Also tried with autobuild, and wasn't able to reproduce the problem.
Comment 8 Kent Johnson CLA 2004-06-17 11:58:37 EDT
Talked to Nick. We'll close this until we can reproduce it.