Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 128598 - Cannot export to other platforms using delta pack
Summary: Cannot export to other platforms using delta pack
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Target Milestone: 3.2 M6   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 128648 130054 131231 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-20 03:46 EST by Dominik Wei-Fieg CLA
Modified: 2006-03-29 04:34 EST (History)
9 users (show)

See Also:


Attachments
Screenshot of the export wizard in 3.2 M4 (44.22 KB, image/png)
2006-02-20 03:47 EST, Dominik Wei-Fieg CLA
no flags Details
Screenshot of the export wizard in 3.2 M5 (42.79 KB, image/png)
2006-02-20 03:47 EST, Dominik Wei-Fieg CLA
no flags Details
Configuration Details of my 3.2 M5 installation (144.59 KB, text/plain)
2006-02-20 11:28 EST, Dominik Wei-Fieg CLA
no flags Details
screen shot of platforms to select for export (43.82 KB, image/jpeg)
2006-03-14 15:31 EST, Kim Moir CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Wei-Fieg CLA 2006-02-20 03:46:13 EST
The product export wizard is missing the option to export a product to multiple platforms.
There was a checkbox in 3.2 M4 which, when checked, added another page to the wizard which allowed to export the product for multiple platforms. This checkbo is missing in 3.2 M5.
I have the RCP delta pack installed and the product configuration is showing the right versions of fragments provided by the RCP delta pack.
Comment 1 Dominik Wei-Fieg CLA 2006-02-20 03:47:15 EST
Created attachment 34991 [details]
Screenshot of the export wizard in 3.2 M4
Comment 2 Dominik Wei-Fieg CLA 2006-02-20 03:47:40 EST
Created attachment 34992 [details]
Screenshot of the export wizard in 3.2 M5
Comment 3 Dominik Wei-Fieg CLA 2006-02-20 03:49:07 EST
I hope the option did not go somewhere else, but I tried to find it in the *.product file but did not find it there.
Comment 4 Wassim Melhem CLA 2006-02-20 09:42:13 EST
I see that option just fine using 3.2M5 on Windows, but I haven't verified on Linux.  Does it happen to you on Windows too?
Comment 5 Dominik Wei-Fieg CLA 2006-02-20 11:08:16 EST
(In reply to comment #4)
> I see that option just fine using 3.2M5 on Windows, but I haven't verified on
> Linux.  Does it happen to you on Windows too?
> 
yes, happens on my brand new Windows installation as well, but the plugins and features I'm using were created with 3.2 M4. I'll try to create a new project and test it with that one.
Comment 6 Dominik Wei-Fieg CLA 2006-02-20 11:26:03 EST
This also happens with new plugins created with 3.2 M%, both on windows and linux.
Could it be that I haven't properly installed the delta pack? The plugins of the delta pack are showing fine in the configuration details (next attachment)

Comment 7 Dominik Wei-Fieg CLA 2006-02-20 11:28:05 EST
Created attachment 35012 [details]
Configuration Details of my 3.2 M5 installation
Comment 8 Wassim Melhem CLA 2006-02-20 11:46:50 EST
From you configuration, it does not appear that the delta pack is installed correctly.

how did you do it?

When we decide whether to show/hide the checkbox, we look for a feature called org.eclipse.platform.launchers in your target platform.  You do not have it.
Comment 9 Dominik Wei-Fieg CLA 2006-02-20 11:56:11 EST
Hi, 

I took a look at the RCP delta pack zip I downloaded and the feature is included. Then I looked at the features directory of my installation, here it is:

wei-fieg@nono applications $ ls eclipse/features/
org.eclipse.jdt.source_3.2.0.v20060215-1200-0cq-cuim1y
org.eclipse.jdt_3.2.0.v20060215-1200-0cq-cuim1y
org.eclipse.pde.source_3.2.0.v20060210--qSWJzJJez
org.eclipse.pde_3.2.0.v20060210--qSWJzJJez
org.eclipse.platform.launchers_3.1.0
org.eclipse.platform.source_3.2.0.v20060215-6arkIf-1sI
org.eclipse.platform_3.2.0.v20060215-6arkIf-1sI
org.eclipse.rcp.source_3.2.0.v20060210-3BlARRhN5X
org.eclipse.rcp_3.2.0.v20060210-3BlARRhN5X
org.eclipse.sdk_3.2.0.v20060210--hQXJzJJez


The contents of the org.eclipse.platform.launchers_3.1.0 directory are:

wei-fieg@nono applications $ ls eclipse/features/org.eclipse.platform.launchers_3.1.0/
bin

and that directory contains:

wei-fieg@nono applications $ ls eclipse/features/org.eclipse.platform.launchers_3.1.0/bin
startup.jar

This matches the contents of the RCP Delta pack I had downloaded.

I see that the org.eclipse.platform.launchers_3.1.0 feature contained a lot more in my eclipse 3.2 M4 installation. I'll try to download once more and tell you the outcome. (My download was from germany, universiy of applied siences esslingen)
Comment 10 Dominik Wei-Fieg CLA 2006-02-20 12:05:05 EST
So, I did the download again (from the same server, the others were too slow). 
The MD5 checksum is OK:

wei-fieg@nono applications $ md5sum  -c eclipse-RCP-3.2M5-delta-pack.zip.md5
eclipse-RCP-3.2M5-delta-pack.zip: OK

but the contents of the delta pack zip are the same, the feature only contains the bin directory with the startup.jar
Comment 11 Wassim Melhem CLA 2006-02-20 12:11:05 EST
at then end of the day, do you have a feature directory called org.eclipse.platform.launchers_xxxxxx in your features/ directory of the Eclipse install?
Comment 12 Dominik Wei-Fieg CLA 2006-02-20 12:13:59 EST
(In reply to comment #11)
> at then end of the day, do you have a feature directory called
> org.eclipse.platform.launchers_xxxxxx in your features/ directory of the
> Eclipse install?
> 

yes, but the contents are wrong. It seems that the feature was not correctly packed into the RCP delta pack zip. (see comments #9 and #10)
Comment 13 Dominik Wei-Fieg CLA 2006-02-20 12:17:50 EST
(In reply to comment #12)
> (In reply to comment #11)
> > at then end of the day, do you have a feature directory called
> > org.eclipse.platform.launchers_xxxxxx in your features/ directory of the
> > Eclipse install?
> > 
> 
> yes, but the contents are wrong. It seems that the feature was not correctly
> packed into the RCP delta pack zip. (see comments #9 and #10)
> 
when I copy the contents of the delta pack I had downloaded and installed for 3.2 M4 into my 3.2 M5 installation, everything works out fine. Please check the delta pack that is provided for download with M5, that pack is broken
Comment 14 Wassim Melhem CLA 2006-02-20 12:18:46 EST
then we're fine from a PDE standpoint.

moving to Platform/Releng to see if the zips are generated correctly.
Comment 15 Sonia Dimitrov CLA 2006-02-20 13:39:55 EST
*** Bug 128648 has been marked as a duplicate of this bug. ***
Comment 16 Kim Moir CLA 2006-02-22 13:22:39 EST
The launcher feature was recently changed to use a qualifier.  The packaging scripts that build the delta pack pointed to a specific version of the launcher feature.  This has been fixed to be more generic for builds >= N20060223-0010 and I am in the process of recreating the M5 delta pack by hand.
Comment 17 Kim Moir CLA 2006-02-22 20:05:53 EST
had to revert these changes, found other issues in a test build.  Will try another solution tomorrow.
Comment 18 Kim Moir CLA 2006-02-24 13:09:09 EST
Okay, there was a problem in the custom build script for the platform launchers feature that has been fixed for builds > N20060225 that I have confirmed with a test build.
Comment 19 Dominique Buenzli CLA 2006-02-24 13:15:43 EST
Thanks, what do you suggest then ?

Using 3.2 M5 with the delta pack of N20060225 or eclipse plateform N20060225 with delta pack N20060225 ?
Thanks
Comment 20 Dominique Buenzli CLA 2006-02-24 13:21:00 EST
Ok saw too late. There is a 3.2 M5a version of eclipse, rcp and delta pack, so I suppose it is this one you should use.
Thanks
Comment 21 Kim Moir CLA 2006-02-24 13:26:32 EST
no.  M5a is not correct.

The changes for M5a are detailed here.  Nothing else was fixed.

http://dev.eclipse.org/mhonarc/lists/eclipse-dev/msg07430.html

I'll regenerate the delta pack for M5a.  Or you can use the one from tonight's build. 


Comment 22 Dominique Buenzli CLA 2006-02-25 07:43:38 EST
Ok used the N20060225 delta pack along with the RCP-SDK N20060225 as target.

The "export to multiple plateform" possibility is now correctly displayed but if I try to export to another plateform than the one I'm using (Mac OS X), it will display this error message: "Problem during export. Reason: Unable to find plugin-in: ch.medclipse.application_0.0.0. Please check the error log for more details.". The error log doesn't show anything about the export.

My plugin version is 1.0.0 and not 0.0.0. If I export into Mac OS X, I don't receive this message.
Comment 23 Dominique Buenzli CLA 2006-02-28 08:11:00 EST
Same problem with the N20060228 release. Does someone else have this problem ?
Thanks
Comment 24 Kim Moir CLA 2006-03-02 07:55:00 EST
*** Bug 130054 has been marked as a duplicate of this bug. ***
Comment 25 Kim Moir CLA 2006-03-02 16:50:07 EST
I just pushed a hand crafted delta pack for m5a to eclipse.org.
Comment 26 Ivan Bojer CLA 2006-03-02 18:55:11 EST
We have the same problem as in Comment #22 with N20060302-0010-delta-pack. The error says:

Problem during export. Reason: Unable to find
plugin-in: ch.medclipse.application_0.0.0. Please check the error log for more
details.".

We are trying to export Win32 based app from unix-gtk

I just cleaned a log and the only entry in there is this one and I am not even sure if it is realated?

!ENTRY org.eclipse.ui 4 4 2006-03-02 15:47:00.868
!MESSAGE Plugin org.eclipse.ui.ide, extension org.eclipse.ui.propertyPages
Unknown extension tag found: enablement
Comment 27 Dominique Buenzli CLA 2006-03-03 10:28:03 EST
Hello,
Still the same problem with the new delta pack for 3.2M5a (m5b). This happens also on a windows xp machine trying to export in other plateforms.

It is related to exporting from one plateform to different on. Exporting to the same plateform than the one used is working.
Comment 28 Dominique Buenzli CLA 2006-03-07 16:36:47 EST
Hello,
Is someone looking at this issue or should we open a new bug as it differs a little bit from the original title ?
Thanks
Dominique
Comment 29 Kim Moir CLA 2006-03-14 10:08:39 EST
Sorry for the delay, I was away last week.

I just replaced the startup jar and the new delta pack is being pushed to eclipse.org.
Comment 30 Kim Moir CLA 2006-03-14 11:11:24 EST
*** Bug 131231 has been marked as a duplicate of this bug. ***
Comment 31 Dominique Buenzli CLA 2006-03-14 13:51:43 EST
Hello. 
Thanks for the new version. I downloaded Delta Pack 3.2M5c and installed over RCP SDK 3.2M5a, but I still got the same error when exporting to another plateform than the one used...

Problem during export. Reason: Unable to find
plugin-in: ch.medclipse.application_0.0.0. Please check the error log for more
details."

Error log doesn't show anything...


Comment 32 Kim Moir CLA 2006-03-14 15:24:15 EST
The content of the m5a delta pack is now correct.

I have replicated the problem.  If you create a sample rcp app and product configuration, you cannot export to platforms other than the one you are running.

Also, the page the presents the list of available platforms looks strange. I'll attach a screenshot.
Comment 33 Kim Moir CLA 2006-03-14 15:31:53 EST
Created attachment 36275 [details]
screen shot of platforms to select for export

notice that it shows win32/CVS in addition to win32/x86. Quite strange.
Comment 34 Dominique Buenzli CLA 2006-03-26 11:22:34 EST
I stil have this "Unable to find plugin-in: ch.medclipse.application_0.0.0."

Is someone looking into this annoying bug ?
Comment 35 Wassim Melhem CLA 2006-03-27 22:20:39 EST
I fixed the problem in comment 33.

It is an artefact of self-hosting though and is not related to the issue here.
When collecting the list of available ws/os/arch, PDE goes through the directories under the bin/ directory in the org.eclipse.platform.launchers feature.

In this case, the feature was checked out from CVS, so we read the CVS folder among the others.


The problem with building plug-ins across multiple platforms is certainly there, but it's a PDE/Build issue.  I will move to that component

Note that the RCP delta packs produced this week are bogus, as they are missing features (bug 133450)

I reproduced the problem with I-20050327-1600 as my host and 3.2M5a + 3.2M5c RCP as my target.
Comment 36 Anthony Guselnikov CLA 2006-03-27 23:35:05 EST
(In reply to comment #34)
> I stil have this "Unable to find plugin-in: ch.medclipse.application_0.0.0."
> Is someone looking into this annoying bug ?
I'm having the same problem as comment_34.

I'm probably not helping at all but here's what I've noticed:
When I run ProductExportJob through debugger, and run export feature for multiple platforms, every platform other than the one I'm running on (i.e. TargetPlatform.getState() --native) creates it's own state via 			

fStateCopy = main.getFactory().createState(main);

All these newly creative states contain BundleDescriptions that are slightly different from what the original (native state) in that stateBits in BundleDescriptionImpl are slightly different. In my native Windows XP state for instance these bits are set to 203 whereas in Mac OS state these bits are set to 202. This causes the PDEState.getResolvedBundle call to fail on every bundle in question because it's respective isResolved call is failing, hence the bundle gets default version of 0.0.0, which in turn throws a CoreException in FeatureBuildScriptGenerator:

if (model == null) {
....
		throw new CoreException(new Status(IStatus.ERROR, PI_PDEBUILD, EXCEPTION_PLUGIN_MISSING, message, null));
}

Once again, I apologize if this info is completely useless, <--- first time poster here :(. I hope someone can fix this for the 3.2 release.

Comment 37 Pascal Rapicault CLA 2006-03-28 12:18:43 EST
Dominik, the initial problem was a UI problem, now it ends up in the PDE build bucket but I can succesfully export product from within the ide. Could you give precise steps or examples to reproduce the problem?
Comment 38 Dominique Buenzli CLA 2006-03-28 15:39:08 EST
To Pascal Rapicault

Hello,
To reproduce this bug, please follow these instructions:

Download Ecplise 3.2M5a, RCP SDK 3.2M5a and the RCP Delta Pack 3.2M5c from this page
http://download.eclipse.org/eclipse/downloads/drops/S-3.2M5a-200602231656/index.php

Create a target folder with RCP SDK and the Delta Pack. Create a new rcp plugin project using mail template. Make it use the just created target via "Preferences" --> "Plug-in Development" --> "Target Plateform".

Then create a "Product Configuration" for your project and open it. Click on "Eclipse Product export wizard" under "Exporting". Choose "Export for multiple platforms", check at least one other plateform you are using. Click on "Finish"

This is it...
Comment 39 Wassim Melhem CLA 2006-03-29 04:31:07 EST
Moving to PDE/UI
Comment 40 Wassim Melhem CLA 2006-03-29 04:34:45 EST
The cross-platform builds are failing because we are passing pde/build a bad state.

This problem was introduced after PDE started setting multiple environment dictionaries on its state.

When we copy the state during cross-platform export, we were only copying one dictionary only.  The dictionary contained the JRE1.1 EE profile, so this resulted in many bundles being unresolved, so PDE/Build was choking.

Fixed.