Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Can't open a simple view

You either need to add org.eclipse.equinox.event to the target-platform (patch #2) or add the whole sdk.ide (patch #1). org.eclipse.equinox.event is not explicitly required by manifest.mf dependencies but it breaks at run-time. It would be nicer if it was somewhere in the dependencies... I hit this problem sometimes when I try to make a minimal launch configuration.

Marc-Andre

________________________________________
From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Pascal Rapicault [pascal@xxxxxxxxxxxxx]
Sent: Monday, 02 November 2015 4:21 PM
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Can't open a simple view

Hi,

I have a simple test code that opens a view. When I run the test from
within the IDE, everything works fine.
When I run the same test with Tycho, the test fails saying that the
workbench is in an abnormal state.
I'm attaching a simple project showing the problem.

Does that ring a bell?

Thanks,

Pascal


diff --git a/pom.xml b/pom.xml
index 45e4b08..ba26879 100644
--- a/pom.xml
+++ b/pom.xml
@@ -67,17 +67,23 @@
 					<useUIThread>true</useUIThread>
 					<product>org.eclipse.sdk.ide</product>
 					<application>org.eclipse.ui.ide.workbench</application>
-					<dependency-resolution>
-						<extraRequirements>
-							<requirement>
-								<type>p2-installable-unit</type>
-								<id>org.eclipse.sdk.ide</id>
-								<versionRange>4.5.1</versionRange>
-							</requirement>
-						</extraRequirements>
-					</dependency-resolution>
 				</configuration>
 			</plugin>
+                        <plugin>
+                                <groupId>org.eclipse.tycho</groupId>
+                                <artifactId>target-platform-configuration</artifactId>
+                                <configuration>
+                                        <dependency-resolution>
+                                                <extraRequirements>
+                                                        <requirement>
+                                                                <type>p2-installable-unit</type>
+                                                                <id>org.eclipse.sdk.ide</id>
+                                                                <versionRange>4.5.1</versionRange>
+                                                        </requirement>
+                                                </extraRequirements>
+                                        </dependency-resolution>
+                                </configuration>
+                        </plugin>
 		</plugins>
 
 	</build>
diff --git a/pom.xml b/pom.xml
index 45e4b08..ee3d8d3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -67,17 +67,23 @@
 					<useUIThread>true</useUIThread>
 					<product>org.eclipse.sdk.ide</product>
 					<application>org.eclipse.ui.ide.workbench</application>
-					<dependency-resolution>
-						<extraRequirements>
-							<requirement>
-								<type>p2-installable-unit</type>
-								<id>org.eclipse.sdk.ide</id>
-								<versionRange>4.5.1</versionRange>
-							</requirement>
-						</extraRequirements>
-					</dependency-resolution>
 				</configuration>
 			</plugin>
+                        <plugin>
+                                <groupId>org.eclipse.tycho</groupId>
+                                <artifactId>target-platform-configuration</artifactId>
+                                <configuration>
+                                        <dependency-resolution>
+                                                <extraRequirements>
+                                                        <requirement>
+                                                                <type>p2-installable-unit</type>
+                                                                <id>org.eclipse.equinox.event</id>
+                                                                <versionRange>0.0.0</versionRange>
+                                                        </requirement>
+                                                </extraRequirements>
+                                        </dependency-resolution>
+                                </configuration>
+                        </plugin>
 		</plugins>
 
 	</build>

Back to the top