Bug 3132 - Errors during build due to absent builder (1GKRNIT)
Summary: Errors during build due to absent builder (1GKRNIT)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 5649 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-10 22:50 EDT by Dani Megert CLA
Modified: 2001-11-08 12:28 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2001-10-10 22:50:01 EDT
I switched from 0.137 to 0.202 using my [old] workspace.
	Each time after building I get the followin dialog (no log):
	Save Problems
		Reason: Errors during build.
		Details:
			Error instantiating builder: org.eclipse.pde.ManifestBuilder
			Error instantiating builder: org.eclipse.pde.SchemaBuilder
			Error instantiating builder: org.eclipse.pde.ManifestBuilder
			Error instantiating builder: org.eclipse.pde.SchemaBuilder
			Error instantiating builder: org.eclipse.pde.ManifestBuilder
			Error instantiating builder: org.eclipse.pde.SchemaBuilder

	I guess the reaon is that 0.202 does not include PDE. The platform
	should not call builders of which the plug-in is not available. If the
	error is not severe (it seems I can continue to work) the dialog should
	only be a warning dialog.


NOTES:
Comment 1 DJ Houghton CLA 2001-10-24 06:45:26 EDT
PRODUCT VERSION:
	0.202


Comment 2 John Arthorne CLA 2001-10-30 12:40:02 EST
Fixed.  I now only report the error once per session.  On all subsequent build 
attempts during that session, a single line message is printed to the log 
indicating what went wrong, and no exception is thrown.

I think the error is sufficiently severe that the user should be notified... it 
means that the project is probably no longer working as expected.  However, it 
is annoying if this message continues to interrupt the user.  My fix is a 
compromise on these two points.
Comment 3 John Arthorne CLA 2001-10-30 17:48:32 EST
I wasn't completely satisfied with the fix so I made some more changes.  
Basically the builder persistent info for the old builder would have hung around 
forever, and it would have maintained a reference to an old tree.  I now create 
a "fake" builder to replace the builder that couldn't be instantiated.  As far 
as the core is concerned, this builder looks and acts like a normal builder so 
no special code is required.  However, when this fake builder is first run, it 
throws an exception, and then silently logs exceptions for all future build 
attempts.  This made the code much cleaner.
Comment 4 Rodrigo Peretti CLA 2001-11-01 10:19:58 EST
Fixed in v207
Comment 5 John Arthorne CLA 2001-11-08 12:28:18 EST
*** Bug 5649 has been marked as a duplicate of this bug. ***