[
https://issues.jboss.org/browse/JBIDE-24488?page=com.atlassian.jira.plugi...
]
Rob Stryker commented on JBIDE-24488:
-------------------------------------
I pushed a fix in addition to Nick's. The compilation error is done, but build still
fails as follows
{code}
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.675 sec <<<
FAILURE! - in
org.jboss.tools.openshift.test.internal.ui.handler.DeleteResourceHandlerTest
testStopWatchProject(org.jboss.tools.openshift.test.internal.ui.handler.DeleteResourceHandlerTest)
Time elapsed: 0.943 sec <<< ERROR!
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-4756 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/rob/.swt/lib/linux/x86_64/libswt-gtk-4756.so
Can't load library: /home/rob/.swt/lib/linux/x86_64/libswt-gtk.so
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
at org.eclipse.swt.internal.C.<clinit>(C.java:16)
at org.eclipse.swt.internal.Callback.<clinit>(Callback.java:38)
at org.eclipse.swt.widgets.Control.<clinit>(Control.java:78)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:259)
at javassist.runtime.Desc.getClassObject(Desc.java:43)
at javassist.runtime.Desc.getClassType(Desc.java:152)
at javassist.runtime.Desc.getType(Desc.java:122)
at javassist.runtime.Desc.getParams(Desc.java:70)
at org.eclipse.jface.dialogs.MessageDialog.openConfirm(MessageDialog.java)
at
org.jboss.tools.openshift.test.internal.ui.handler.DeleteResourceHandlerTest.testStopWatchProject(DeleteResourceHandlerTest.java:50)
{code}
compilation error building Openshift Tools in master against Docker
Tools 3.0 from Oxygen.0.M7
----------------------------------------------------------------------------------------------
Key: JBIDE-24488
URL:
https://issues.jboss.org/browse/JBIDE-24488
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: docker, openshift, target-platform
Affects Versions: 4.5.0.AM1
Reporter: Nick Boldt
Assignee: Rob Stryker
Fix For: 4.5.0.AM1
Openshift Tools installation was failing with this error:
{code}
[p2.dir] !MESSAGE Cannot complete the install because one or more required items could
not be found.
[p2.dir] !MESSAGE Software being installed: JBoss OpenShift 3 Tools Developer
Resources 3.4.0.v20170519-1022 (org.jboss.tools.openshift.feature.source.feature.group
3.4.0.v20170519-1022)
[p2.dir] !MESSAGE Missing requirement: OpenShift 3 UI 3.4.0.v20170510-2205
(org.jboss.tools.openshift.ui 3.4.0.v20170510-2205) requires 'bundle
org.eclipse.linuxtools.docker.core [2.1.0,3.0.0)' but it could not be found
[p2.dir] !MESSAGE From: JBoss OpenShift 3 Tools 3.4.0.v20170519-1022
(org.jboss.tools.openshift.feature.feature.group 3.4.0.v20170519-1022)
{code}
So I pushed this PR:
https://github.com/jbosstools/jbosstools-openshift/pull/1507
And now it's failing with 9 compilation errors:
{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.0.0:compile
(default-compile) on project org.jboss.tools.openshift.ui: Compilation failure:
Compilation failure:
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[30]
[ERROR] import org.eclipse.linuxtools.docker.core.IDockerConnectionManagerListener2;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.eclipse.linuxtools.docker.core.IDockerConnectionManagerListener2
cannot be resolved
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[58]
[ERROR] implements IDeployImageParameters, IDockerConnectionManagerListener2,
PropertyChangeListener {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] IDockerConnectionManagerListener2 cannot be resolved to a type
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[97]
[ERROR] DockerConnectionManager.getInstance().addConnectionManagerListener(this);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method addConnectionManagerListener(IDockerConnectionManagerListener) in the
type DockerConnectionManager is not applicable for the arguments (DeployImageWizardModel)
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[103]
[ERROR] DockerConnectionManager.getInstance().removeConnectionManagerListener(this);
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method removeConnectionManagerListener(IDockerConnectionManagerListener) in
the type DockerConnectionManager is not applicable for the arguments
(DeployImageWizardModel)
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[667]
[ERROR] public void changeEvent(int event) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method changeEvent(int) of type DeployImageWizardModel must override or
implement a supertype method
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[670]
[ERROR] public void changeEvent(IDockerConnection connection, int event) {
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The method changeEvent(IDockerConnection, int) of type DeployImageWizardModel
must override or implement a supertype method
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[671]
[ERROR] if ((event == ADD_EVENT)
[ERROR] ^^^^^^^^^
[ERROR] ADD_EVENT cannot be resolved to a variable
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/deployimage/DeployImageWizardModel.java:[672]
[ERROR] || (event == REMOVE_EVENT)) {
[ERROR] ^^^^^^^^^^^^
[ERROR] REMOVE_EVENT cannot be resolved to a variable
[ERROR]
/home/nboldt/eclipse/workspace-jboss/jbosstools-github-master/jbosstools-openshift/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/wizard/newapp/fromimage/ApplicationSourceFromImageModel.java:[55]
[ERROR] public class ApplicationSourceFromImageModel
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The hierarchy of the type ApplicationSourceFromImageModel is inconsistent
[ERROR] 9 problems (9 errors)
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)