Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho build fails when Babel repo is included in the target platform

I've got the same problem and submitted a patch (see https://git.eclipse.org/r/#/c/8163/). It is only for Babel 4.2.

Jeff



On Tue, Jan 22, 2013 at 11:17 PM, Rizzo, Eric <Eric.Rizzo@xxxxxxx> wrote:
I'm building a product based on Eclipse 3.8. The product compiles fine in Eclipse IDEs and with our newly-constructed Tycho build. However, when I add the Babel repository () to our target platform, Tycho complains with strange compilation errors realting to not finding SWT classes. The exact same target platform applied in Eclipse 3.8 or 3.7 SDK workspaces (ie, in the IDE) produces no compilation errors.

Here is some of what Tycho spits out:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.16.0:compile (default-compile) on project com.emc.xcp.common.ui: Compilation failure: Compilation failure:
[ERROR] F:\P4_Int\depot\Platform\XCPBuilder\Int\int_XCPBLD_2.0\staging\app\bundles\com.emc.xcp.common.ui\src\com\emc\xcp\common\ui\function\FunctionPalette.java:[0,0]
[ERROR] package com.emc.xcp.common.ui.function;
[ERROR] ^
[ERROR] The type org.eclipse.swt.events.KeyEvent cannot be resolved. It is indirectly referenced from required .class files
[ERROR] F:\P4_Int\depot\Platform\XCPBuilder\Int\int_XCPBLD_2.0\staging\app\bundles\com.emc.xcp.common.ui\src\com\emc\xcp\common\ui\function\FunctionPalette.java:[20,0]
[ERROR] public class FunctionPalette extends AbstractTreePalette {
[ERROR] ^^^^^^^^^^^^^^^
[ERROR] The hierarchy of the type FunctionPalette is inconsistent

I have confirmed (twice) that simply removing the Babel bundles from the target platform restores the build to success, so I'm pretty confused about how including Babel bundles could trigger compile errors referring to SWT. I'm not even referencing any of the Babel bundles from any features or plugins.

Before you ask, no I haven't been able to construct a simple test project that demonstrates the problem. I'm not even sure if it's a Tycho problem or something in PDE that ignores a real problem, or what. At this point I'm just (desperately) looking for ideas about where to look and what to try.

Any ideas?

Thanks,
Eric


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top