Bug 414939 - Error when checking out 'org.eclipse.debug.examples.mixedmode' example
Summary: Error when checking out 'org.eclipse.debug.examples.mixedmode' example
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.4 M2   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords: example
Depends on:
Blocks:
 
Reported: 2013-08-13 03:50 EDT by Dani Megert CLA
Modified: 2013-08-14 10:11 EDT (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 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.