IDE issues - out of working IDE now

Tags: #<Tag:0x00007efebf6ee1b8> #<Tag:0x00007efebf6ee0a0> #<Tag:0x00007efebf6edfd8>

My eclipse updated itself to Oxygen and it stopped seeing org.apache.karaf imports, so openhab does not compile now. I also can’t see karaf in osgi frameworks in preferences.
Is openhab supposed to work with Oxygen today and does anybody knows how to fix that problem?

I tried installing a new IDE following the instructions on the web that worked previously many times, and with Oxygen it fails with an error pasted at the end of this post.

I tried installing a new IDE choosing Neon and it installs fine, but compilation gives >90000 errors, which pretty much seems to be a big issue with the setup - but no idea if it is my machine (which worked fine yesterday and was not updated except for old Eclipse install), or is it some intermediate problem with openhab,

Other question is what is generally the recommendation on IDE automatic updates? In the last 2 months I experienced 3 times that IDE destabilized itself due to automatic updates. Two times I managed to fix it and one time it ended up with a new install. But now a new install does not work. This is pretty annoying and I tend to think disabling any updates and not touching anything once you have a working IDE is the only way to go.

Thanks
Pawel

Error of IDE setup with Oxygen:
ERROR: org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency.
at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.resolve(ProfileTransactionImpl.java:425)
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:337)
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:729)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3324)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3252)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3233)
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3133)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:567)
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:693)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1498770463328
ERROR: org.eclipse.equinox.p2.director code=1 Only one of the following can be installed at once:
ERROR: org.eclipse.equinox.p2.director code=0 Object Teams Development Tooling Core 3.13.0.v_OTDT_r260_201706061122 (org.eclipse.jdt.core 3.13.0.v_OTDT_r260_201706061122)
ERROR: org.eclipse.equinox.p2.director code=0 Java Development Tools Core 3.13.0.v20170516-1929 (org.eclipse.jdt.core 3.13.0.v20170516-1929)
ERROR: org.eclipse.equinox.p2.director code=0 org.eclipse.jdt.core 3.12.3.xx-201706291404-e46
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1498770463328
ERROR: org.eclipse.equinox.p2.director code=0 To: org.codehaus.groovy.eclipse.feature.feature.group 0.0.0
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1498770463328
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.jdt.feature.group 0.0.0
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1498770463328
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.mylyn.context_feature.feature.group 0.0.0
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Compilerless Feature 2.9.2.xx-201706291404-e46 (org.codehaus.groovy.compilerless.feature.feature.group 2.9.2.xx-201706291404-e46)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.codehaus.groovy.headless.feature.feature.group [2.9.2.xx-201706291404-e46]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Feature 2.9.2.xx-201706291404-e46 (org.codehaus.groovy.eclipse.feature.feature.group 2.9.2.xx-201706291404-e46)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.codehaus.groovy.compilerless.feature.feature.group [2.9.2.xx-201706291404-e46]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Headless Feature 2.9.2.xx-201706291404-e46 (org.codehaus.groovy.headless.feature.feature.group 2.9.2.xx-201706291404-e46)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.codehaus.groovy.jdt.patch.feature.group [2.9.2.xx-201706291404-e46]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Mylyn Context UI 3.23.0.v20170414-0629 (org.eclipse.mylyn.context.ui 3.23.0.v20170414-0629)
ERROR: org.eclipse.equinox.p2.director code=0 To: package org.eclipse.jdt.core 0.0.0
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From: Mylyn Task-Focused Interface 3.23.0.v20170414-0629 (org.eclipse.mylyn.context_feature.feature.group 3.23.0.v20170414-0629)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.mylyn.context.ui [3.23.0.v20170414-0629]
ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
ERROR: org.eclipse.equinox.p2.director code=0 From Patch: org.codehaus.groovy.jdt.patch.feature.group 2.9.2.xx-201706291404-e46 Eclipse Java Development Tools 3.13.0.v20170612-0950 (org.eclipse.jdt.feature.group 3.13.0.v20170612-0950)
ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.jdt.core [3.12.3.xx-201706291404-e46]

I managed to overcome Oxygen IDE installation issue by removing all eclipse-related hidden directories in home directory (.p2, .oomph, …)
Now it installs fine, but reports lots of missing imports, same as for neon and similar to the updated IDE (which however was complaining only about one).
I am attaching a screenshot, which also shows some missing target plug-ins locations. This is a fresh install of the IDE.
Appreciate any help.
Thanks
Pawel

I’m also seeing similar issues after an automatic upgrade to Oxygen. It’s a challenge to keep this development environment working. I’ve never been able to install the openHAB Eclipse IDE and get a clean build but there are now too many errors to easily work around by unloading projects, etc. Hopefully someone can provide some guidance.

I suppose this is related to the 2.1 release and moving to 2.2 on master. .p2 repos for 2.1 seem to be empty and new ones fo 2.2 appeared (was it a mv instead of cp?) but the code on master is still 2.1

Would appreciate if one of the maintainers checked and confirmed this is a known problem.

When I manually removed 2.1 repos and added 2.2 I was able to get it built but it was such a mess after all that it did not start properly.

Thank you
Pawel

Ok, exactly same things done today - different result. Now everything installs fine, compiles and works. Frustrating, this is so surprising and not predictible. I am running a backup of my home directory to save for bad times again.

I encounter similar issue with latest Eclipse version as well [ 2018-12 (4.10.0) ], when following steps from https://www.openhab.org/docs/developer/development/ide.html
see logs below:

[2018-12-22 00:48:14] Executing bootstrap tasks
[2018-12-22 00:48:14] Java(TM) SE Runtime Environment 1.8.0_191-b12
[2018-12-22 00:48:14] Product org.eclipse.products.epp.package.java.latest.released
[2018-12-22 00:48:14] Workspace C:\Users\Lukasz\openhab2-master4\ws
[2018-12-22 00:48:14] Project com.github.openhab2.2_openhab2.master
[2018-12-22 00:48:14] Bundle org.eclipse.oomph.setup 1.10.0.v20180914-1031, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
[2018-12-22 00:48:14] Bundle org.eclipse.oomph.setup.core 1.11.0.v20181203-0741, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
[2018-12-22 00:48:14] Bundle org.eclipse.oomph.setup.installer 1.11.0.v20181107-1003, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
[2018-12-22 00:48:14] Bundle org.eclipse.oomph.setup.p2 1.10.0.v20180706-1242, build=3784, branch=d5b911e1f3bc20f8e0c54af3126d8150fbc53bdf
[2018-12-22 00:48:14] Performing Workspace C:\Users\Lukasz\openhab2-master4\ws
[2018-12-22 00:48:14] Performing P2 Director (Eclipse IDE for Java Developers (2018-12))
[2018-12-22 00:48:14] Offline = false
[2018-12-22 00:48:14] Mirrors = true
[2018-12-22 00:48:14] Resolving 32 requirements from 5 repositories to C:\Users\Lukasz\openhab2-master4\eclipse
[2018-12-22 00:48:14] Requirement org.eclipse.wst.xml_ui.feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn.java_feature.feature.group
[2018-12-22 00:48:14] Requirement org.codehaus.groovy.eclipse.feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn.git.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.pde.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.wst.jsdt.feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.wst.web_ui.feature.feature.group
[2018-12-22 00:48:14] Requirement epp.package.java [4.10.0,5.0.0)
[2018-12-22 00:48:14] Requirement org.eclipse.platform.feature.group [4.10.0,5.0.0)
[2018-12-22 00:48:14] Requirement org.eclipse.rcp.feature.group [4.10.0,5.0.0)
[2018-12-22 00:48:14] Requirement org.eclipse.buildship.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.eclemma.feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.egit.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.egit.mylyn.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.epp.mpc.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.jdt.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.jgit.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.m2e.feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.m2e.logback.feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn.bugzilla_feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn.context_feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn.hudson.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn.ide_feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn.wikitext_feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.mylyn_feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.tips.feature.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.oomph.setup.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.oomph.setup.jdt.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.oomph.setup.git.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.oomph.setup.workingsets.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.oomph.setup.projects.feature.group
[2018-12-22 00:48:14] Requirement org.eclipse.oomph.setup.pde.feature.group
[2018-12-22 00:48:14] Repository http://dist.springsource.org/snapshot/GRECLIPSE/e4.8
[2018-12-22 00:48:14] Repository http://download.eclipse.org/technology/epp/packages/2018-12
[2018-12-22 00:48:14] Repository http://download.eclipse.org/releases/2018-12/201812191000
[2018-12-22 00:48:14] Repository http://download.eclipse.org/oomph/updates/milestone/latest
[2018-12-22 00:48:14] Repository http://download.eclipse.org/egit/updates
[2018-12-22 00:48:16] Calculating requirements and dependencies.
[2018-12-22 00:48:21] Cannot complete the request.  Generating details.
[2018-12-22 00:48:21] ERROR: org.eclipse.equinox.p2.director code=10054 Cannot complete the install because of a conflicting dependency.
  at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:280)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.resolve(ProfileTransactionImpl.java:425)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:337)
  at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:733)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:3334)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:3262)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:3243)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:3143)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:575)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:701)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
  ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1545436096775
  ERROR: org.eclipse.equinox.p2.director code=1 Only one of the following can be installed at once: 
    ERROR: org.eclipse.equinox.p2.director code=0 Java Development Tools Core 3.14.0.xx-201812211534-e48 (org.eclipse.jdt.core 3.14.0.xx-201812211534-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 Java Development Tools Core 3.16.0.v20181130-1748 (org.eclipse.jdt.core 3.16.0.v20181130-1748)
    ERROR: org.eclipse.equinox.p2.director code=0 Object Teams Development Tooling Core 3.16.0.OTDT_r272_201812061254 (org.eclipse.jdt.core 3.16.0.OTDT_r272_201812061254)
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1545436096775
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.eclipse.feature.feature.group 0.0.0
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: artificial_root 1.0.0.v1545436096775
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.feature.group 0.0.0
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Compilerless feature 3.2.0.xx-201812211534-e48 (org.codehaus.groovy.compilerless.feature.feature.group 3.2.0.xx-201812211534-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.headless.feature.feature.group [3.2.0.xx-201812211534-e48,3.2.0.xx-201812211534-e48]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Eclipse Groovy Development Tools 3.2.0.xx-201812211534-e48 (org.codehaus.groovy.eclipse.feature.feature.group 3.2.0.xx-201812211534-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.compilerless.feature.feature.group [3.2.0.xx-201812211534-e48,3.2.0.xx-201812211534-e48]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Groovy-Eclipse Headless feature 3.2.0.xx-201812211534-e48 (org.codehaus.groovy.headless.feature.feature.group 3.2.0.xx-201812211534-e48)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.codehaus.groovy.jdt.patch.feature.group [3.2.0.xx-201812211534-e48,3.2.0.xx-201812211534-e48]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: JDI Debug UI 3.10.100.v20181120-0542 (org.eclipse.jdt.debug.ui 3.10.100.v20181120-0542)
    ERROR: org.eclipse.equinox.p2.director code=0 To: osgi.bundle; org.eclipse.jdt.core [3.15.0,4.0.0)
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From: Eclipse Java Development Tools 3.16.0.v20181206-1038 (org.eclipse.jdt.feature.group 3.16.0.v20181206-1038)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.debug.ui [3.10.100.v20181120-0542,3.10.100.v20181120-0542]
  ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency:
    ERROR: org.eclipse.equinox.p2.director code=0 From Patch: org.codehaus.groovy.jdt.patch.feature.group 3.2.0.xx-201812211534-e48 Eclipse Java Development Tools 3.16.0.v20181206-1038 (org.eclipse.jdt.feature.group 3.16.0.v20181206-1038)
    ERROR: org.eclipse.equinox.p2.director code=0 To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.core [3.14.0.xx-201812211534-e48,3.14.0.xx-201812211534-e48]

[2018-12-22 00:48:21] 

I’ve tried fresh installation of Eclipse as described on

and also importing project via Oomph for already installed Eclipse instance:

Both results are the same. I thought about trying with installing required org.eclipse.jdt.core manually, but i can not find any Eclipse repo with it.
Any ideas?

I’ve managed to avoid above conflicts by importing first: “Eclipse Projects” -> “SmartHome”.

1 Like