Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Select proper Launcher in case of multiple Launchers #112

Open
marchof opened this issue Dec 7, 2015 · 5 comments
Open

Select proper Launcher in case of multiple Launchers #112

marchof opened this issue Dec 7, 2015 · 5 comments
Labels

Comments

@marchof
Copy link
Member

marchof commented Dec 7, 2015

If additional launchers are configured EclEmma seems to delegate to a random one which leads to unexpected results. See forum posts: https://groups.google.com/forum/?fromgroups=#!topic/jacoco/JP244L-DzbU

@marchof marchof added the bug label Dec 7, 2015
@kossmoboleat
Copy link

Is this hard to fix? Where would you start when implementing a fix, if the maintainers don't have enough time to look at it?

@marchof
Copy link
Member Author

marchof commented Jan 15, 2016

@kossmoboleat I don't think so. If somebody has the chance to study the APIs contributions are welcome. I might find some time to pick this up the next weeks.

@kossmoboleat
Copy link

@marchof Hmm, I don't know anything about Eclipse plugins, but maybe the relevant class is ILaunchConfigurationDelegate?

In the two lines below the first delegate is always chosen, which sounds like the described behavior:

return type.getDelegates(Collections.singleton(DELEGATELAUNCHMODE))[0]
.getDelegate();

I guess a good first default would be the normal JDT launcher, if there are only two launchers instead of something more specific like a VisualVM launcher. You usually don't want to profile and measure coverage at the same time...

@marchof
Copy link
Member Author

marchof commented Jan 18, 2016

@kossmoboleat Yep, that looks reasonable. Now we need a strategy to select the "correct" launcher for all 9 launch types we currently support. So the task is to identify the correct launcher IDs

org.eclipse.debug.core.ILaunchDelegate.getId()

and add a new attribute for the CoverageLauncher.

@wiwie
Copy link

wiwie commented Sep 3, 2016

any news on a fix for this bug? I am encountering it as well and the only workaround right now is to uninstall the additional launchers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants