Eclipse 2020-09 fails to find plug-in sources on Linux [message #1833422] |
Mon, 12 October 2020 19:17 |
Eclipse User |
|
|
|
Hello,
I have installed the Eclipse IDE for Java Development (2020-09) on Linux and used the "Install New Software..." dialog to install some plug-ins (such as the Eclipse Modeling Framework SDK). Doing so did, for instance, add the following two files to my ~/.p2/pool/plugins directory:
- org.eclipse.emf.ecore_2.23.0.v20200630-0516.jar
- org.eclipse.emf.ecore.source_2.23.0.v20200630-0516.jar
In principle, all installed plug-ins work fine. However, if I try to take a look at the source code of a class provided by one of the installed plug-ins, Eclipse fails to find it.
For example, if I focus the EObject class in Java code and press F3, I am presented with the "Source not found" screen. Eclipse then asks me to attach the source myself. In this dialog, the "External location" defaults to "org.eclipse.emf.ecore_2.23.0.v20200630-0516.jar". Manually changing it to "org.eclipse.emf.ecore.source_2.23.0.v20200630-0516.jar" solves the issue, but is not persistent.
Interestingly, a comparable setup on Windows is not affected by this issue.
How can I solve this issue? Is there a way to make Eclipse aware of the "source" versions of all plug-ins?
Thanks!
|
|
|
|
Re: Eclipse 2020-09 fails to find plug-in sources on Linux [message #1833435 is a reply to message #1833434] |
Tue, 13 October 2020 06:51 |
Eclipse User |
|
|
|
I see, thank you for your answer.
What I failed to mention in my initial post was the fact that the project structure I am dealing with uses Tycho and is more or less configured as described here. Do I understand you correctly that "specifying a target platform with specific contents" then means to extend the "target-platform-configuration" with a <target> for every plug-in (such as the Eclipse Modeling Framework SDK) that I want to use? And if this is the case: Where can I obtain the respective groupId, artifactId, and version values from?
And finally, since the referenced bug seems to be fixed: Will this fix automatically find its way into 2020-09 when I update it in the next days? Or is it scheduled to appear in 2020-12?
|
|
|
Re: Eclipse 2020-09 fails to find plug-in sources on Linux [message #1833437 is a reply to message #1833435] |
Tue, 13 October 2020 07:22 |
Eclipse User |
|
|
|
Please consider the first part of my previous post obsolete. I think I figured out what you mean and it pointed me to the cause of the issue. Taking a look at the Running Platform target, I can see that Eclipse fails to locate the source plug-ins because it expects to find them at the wrong location (see attachment).
When I create a filesystem link from /home/.p2 to ~/.p2, everything works as expected. Is it maybe possible to configure the location that Eclipse expects to find the .p2 directory directly?
-
Attachment: eclipse.png
(Size: 100.54KB, Downloaded 73 times)
[Updated on: Tue, 13 October 2020 07:27] by Moderator Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.08979 seconds