Bug 414939

Summary: Error when checking out 'org.eclipse.debug.examples.mixedmode' example
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 4.3Keywords: example
Target Milestone: 4.4 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Dani Megert CLA 2013-08-13 03:50:41 EDT
master (N20130812-2000).

I get the following error when checking out 'org.eclipse.debug.examples.mixedmode':

Referenced class 'org.eclipse.debug.internal.examples.mixedmode.LaunchConfigurationDelegate1' in attribute 'delegate' is not on the plug-in classpath
Comment 1 Michael Rennie CLA 2013-08-13 11:37:40 EDT
(In reply to comment #0)
> master (N20130812-2000).
> 
> I get the following error when checking out
> 'org.eclipse.debug.examples.mixedmode':
> 
> Referenced class
> 'org.eclipse.debug.internal.examples.mixedmode.LaunchConfigurationDelegate1'
> in attribute 'delegate' is not on the plug-in classpath

Its not an error in my workspace, I should have added project-specific PDE setting s to match the other example bundles. The delegate was intentionally not implemented to make sure that a bogus delegate worked, but we have unit tests for that so I'll just implement it.

Added project settings and implemented the delegate: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=39bca0f1b40f46d2e1c17f9c0a91a059ef2b8415

also update the JDT Debug tests to run properly with the mixed mode example in your workspace: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=1069a6451bf19d12694a39955a0623471850aacd
Comment 2 Dani Megert CLA 2013-08-14 05:40:29 EDT
(In reply to comment #1)
> also update the JDT Debug tests to run properly with the mixed mode example
> in your workspace:
> http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/
> ?id=1069a6451bf19d12694a39955a0623471850aacd

Not good, see bug 415020. Would be good to run the tests locally before committing ;-).
Comment 3 Michael Rennie CLA 2013-08-14 10:11:58 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > also update the JDT Debug tests to run properly with the mixed mode example
> > in your workspace:
> > http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/
> > ?id=1069a6451bf19d12694a39955a0623471850aacd
> 
> Not good, see bug 415020. Would be good to run the tests locally before
> committing ;-).

I do, but I run them with the examples in my workspace. It looks like the code for ILaunchConfigurationType#getPreferredDelegate might have bug in it, since I am explicitly setting a preferred delegate when the test project is set up. Likely there is short-circuit happening somewhere because without the examples there is only one launch delegate for Java.