Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342152 - Wrong plugin is loaded when Eclipse application is launched
Summary: Wrong plugin is loaded when Eclipse application is launched
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-04-07 09:06 EDT by Alexander Koptelov CLA
Modified: 2019-09-13 11:57 EDT (History)
1 user (show)

See Also:


Attachments
A couple of plugins and launch config to reproduce the bug (2.72 KB, application/x-bzip)
2011-04-07 09:11 EDT, Alexander Koptelov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Koptelov CLA 2011-04-07 09:06:27 EDT
Build Identifier: M20110210-1200

I have two platform-dependent fragments in my workspace. Their names (and corresponding directories) are differ only in the last segment (x86 and x86_64 respectively).

In the Debug configuration I choose 'Only selected plugins' and select the x86 plugin. Though when I launch the configuration, the platform uses x86_64 plugin instead.

The problem is that when the EclipseStarter searches plugin location, it takes that trailing '64' as a version, and thinks that the 64-bit bundle is just a newer version if x86 fragment and uses this one. See the org.eclipse.core.runtime.adaptor.EclipseStarter.searchFor(String, String).

Not sure about product/component (may be Equinox instead?), but hope you guys will handle it better than me.

Reproducible: Always

Steps to Reproduce:
1. Create a plugin project "simple.plugin.x86"
2. Create a plugin project "simple.plugin.x86_64"
3. Create a new Eclipse Application launch configuration and edit it to enable the simple.plugin.x86 plugin and disable the simple.plugin.x86_64.
4. Launch the configuration.
5. In the newly launched Eclipse instance, choose Help->About Eclipse SDK->Installation details and observe that the simple.plugin.x86_64 is listed instead of simple.plugin.x86.
Comment 1 Alexander Koptelov CLA 2011-04-07 09:11:39 EDT
Created attachment 192733 [details]
A couple of plugins and launch config to reproduce the bug
Comment 2 Curtis Windatt CLA 2011-04-07 12:19:38 EDT
That is very interesting behaviour.  A patch would be great as I don't have time to work on this in M7.
Comment 3 Eclipse Genie CLA 2019-09-13 11:57:22 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.