Problem inspecting code with Advanced Source Lookup enabled (in a specific scenario) - Is this a bug? #1713
Unanswered
stephendnicholas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi There,
I'm having an issue in Eclipse where I can't "Ctrl + I" to inspect code while debugging, with Advanced Source Lookup enabled. I believe this is related to m2e and might be considered a bug, but I'm not sure, so I wanted to ask here first. Any help/guidance would be appreciated.
The setup:
The symptom I'm seeing is that when I try to inspect the code, with Eclipse's Advanced Source Lookup enabled, I get an error dialog that states:
Whereas with Advanced Source Lookup disabled, it works fine.
The reason I'm posting this here, is what I'm seeing in the flow of the code:
m2e-core/org.eclipse.m2e.sourcelookup/src/org/eclipse/m2e/sourcelookup/internal/launch/MavenSourceContainerResolver.java
Line 60 in 112488c
When I disable the Advanced Source Lookup behaviour in Eclipse, AdvancedSourceLookupParticipant isn't in the picture, only JavaSourceLookupParticipant, which doesn't call through to m2e and so correctly refers to the source path I setup on the launch configuration.
I believe that if m2e wasn't returning an instance of ExternalArchiveSourceContainer at all, or was returning a different type of container that is adaptable to IJavaElement, then things would work.
So my question I guess is: Why is that type being returned by m2e? And is it a bug given the above observed behaviour?
A little digging suggests it has always been the case, since https://bugs.eclipse.org/bugs/show_bug.cgi?id=384065:
Hope that all makes sense, but please feel free to ask any clarifying questions
Steve
Beta Was this translation helpful? Give feedback.
All reactions