Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 482751

Summary: Target Platform: locations not updated after eclipse upgrade
Product: [Eclipse Project] PDE Reporter: arne anka <eclipse-bugs>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: wim.jongman
Version: 4.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description arne anka CLA 2015-11-21 09:02:46 EST
no idea what version is the right one:
Eclipse IDE for Java Developers
Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200

  Eclipse PDE Plug-in Developer Resources	3.11.1.v20150904-0345	org.eclipse.pde.source.feature.group	Eclipse.org


first and foremost: to my recollection, i never created a Target Platform, let alone edited one.

after upgrade to mars sr1, i was plagued by a couple of bugs and researching due to a different issue (plugin manifest editor -> extensions -> cann add only "generic" and no schema files), i discovered the Target Platform.

the locations part of the active and only Target Platform "Running Platform" inluded both
${eclipse_home}
and
$HOME/.eclipse/org.eclipse.platform_4.4.2_1473617060_linux_gtk_x86_64/plugins


now, 4.4.2 is the version i was upgrading from -- a look into .eclipse showed a new subfolder 
$HOME/.eclipse/org.eclipse.platform_4.5.1_1473617060_linux_gtk_x86_64/
where all newly installed plugins lived.

changing the location thus to
$HOME/.eclipse/org.eclipse.platform_4.5.1_1473617060_linux_gtk_x86_64/plugins

fixed all my previous issues.

since, as stated above, i cannot recall to have seen this dialog before nor edited, i can only assume the PDE did this by its own.
which is entirely sensible since this is obviuosly a place to look for additional plugins by default, since it is created and used by P2 or whatever its name is now.

BUT: this location was not updated after the upgrade to mars sr1, leaving me with a couple of badly explained issues.

so, in short, PDE needs to check if the location still matches or, better, use a variable similar to ${eclipse_home} which always points to the current location below $HOMW/.eclipse/
Comment 1 Wim Jongman CLA 2015-11-23 05:40:45 EST
*** Bug 482209 has been marked as a duplicate of this bug. ***
Comment 2 Wim Jongman CLA 2015-11-23 09:56:33 EST
(In reply to arne anka from comment #0)

> after upgrade to mars sr1, i was plagued by a couple of bugs and researching
> due to a different issue (plugin manifest editor -> extensions -> cann add
> only "generic" and no schema files), i discovered the Target Platform.
> 
> the locations part of the active and only Target Platform "Running Platform"
> inluded both
> ${eclipse_home}
> and
> $HOME/.eclipse/org.eclipse.platform_4.4.2_1473617060_linux_gtk_x86_64/plugins


Did you install with the new eclipse installer (Oomph)?
Comment 3 arne anka CLA 2015-11-25 15:44:08 EST
no, downloaded the Java Development flavor archive and extracted
Comment 4 arne anka CLA 2015-11-25 15:58:25 EST
maybe i should clarify:
- the extracted eclipse archive is put into a central read-only location to be used by differnet user accounts
- everything installed by p2 later on ends up in $HOME/.eclipse/org.eclipse.platform_...
Comment 5 Eclipse Genie CLA 2019-05-03 16:17:43 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.