Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

User avatar
gtjoseph
Posts: 81
Joined: Fri Oct 15, 2021 10:55 pm

Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

Postby gtjoseph » Sat Dec 17, 2022 11:34 pm

I'm not sure what's going on but I can no longer build the plugin...

[ERROR] Cannot resolve target definition:
[ERROR] Software being installed: org.eclipse.tm.terminal.control.feature.feature.group 11.0.0.202211062329
[ERROR] Missing requirement: org.eclipse.tm.terminal.control 5.4.0.202211062329 requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=17))' but it could not be found
[ERROR] Cannot satisfy dependency: org.eclipse.tm.terminal.control.feature.feature.group 11.0.0.202211062329 depends on: org.eclipse.equinox.p2.iu; org.eclipse.tm.terminal.control [5.4.0.202211062329,5.4.0.202211062329]
[ERROR]
[ERROR] Failed to resolve target definition /usr/src/mcu/esp32/idf-eclipse-plugin/releng/com.espressif.idf.target/com.espressif.idf.target.target: See log for details -> [Help 1]

I know I could build it last month. It looks like something is weird on the eclipse side from a versioning perspective. I'm not sure where the 11.0.0 and 5.4.0 versions came from. Anyway, anyone know of a workaround to get a good build?

----------------------

EDIT: OK, I see the GitHub CI can't build it either :)
https://github.com/espressif/idf-eclips ... 6275985010
I guess you guys must be working on it.

ESP_kondalkolipaka
Posts: 174
Joined: Wed Jul 17, 2019 5:26 pm

Re: Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

Postby ESP_kondalkolipaka » Sun Dec 18, 2022 6:16 am

Hello, IDF Eclipse Plugin does not yet support Eclipse CDT 2022-12(which requires Java 17). Please continue to use Eclipse CDT 2022-09 or 2022-06 version.

Quick question - how did you get into this error state? Did you install the update manually or did eclipse installed it automatically?

Thanks

User avatar
gtjoseph
Posts: 81
Joined: Fri Oct 15, 2021 10:55 pm

Re: Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

Postby gtjoseph » Sun Dec 18, 2022 4:18 pm

I should have been clearer. I do have Eclipse 2022-09 installed and it's working fine with plugin version 2.7.0 I built from master about a month ago. It's building the latest plugin from master that's the issue...

I do a git pull on the master branch from https://github.com/espressif/idf-eclipse-plugin.git and build locally about once a month. Sometimes I pull in other branches that look like they have work in progress and might be interesting just to test.

Code: Select all

$ export JAVA_HOME=/usr/lib/jvm/java-11
$ mvn clean
$ mvn verify -Djarsigner.skip=true
The last time I did this was early November from tag "v2.7.0" and it worked fine. When I tried to build from master this week however, maven failed with...

Code: Select all

mvn verify -e -Djarsigner.skip=true	
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: com.espressif.idf:com.espressif.idf.core:1.0.1-SNAPSHOT @ /usr/src/mcu/esp32/idf-eclipse-plugin/bundles/com.espressif.idf.core/pom.xml
[ERROR] Cannot resolve target definition:
[ERROR]   Software being installed: org.eclipse.tm.terminal.control.feature.feature.group 11.0.0.202211062329
[ERROR]   Missing requirement: org.eclipse.tm.terminal.control 5.4.0.202211062329 requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=17))' but it could not be found
[ERROR]   Cannot satisfy dependency: org.eclipse.tm.terminal.control.feature.feature.group 11.0.0.202211062329 depends on: org.eclipse.equinox.p2.iu; org.eclipse.tm.terminal.control [5.4.0.202211062329,5.4.0.202211062329]
[ERROR] 
[ERROR] Failed to resolve target definition /usr/src/mcu/esp32/idf-eclipse-plugin/releng/com.espressif.idf.target/com.espressif.idf.target.target: See log for details -> [Help 1]
org.apache.maven.MavenExecutionException: Failed to resolve target definition /usr/src/mcu/esp32/idf-eclipse-plugin/releng/com.espressif.idf.target/com.espressif.idf.target.target
I thought it was my environment since I have Java 17 installed as the system default but as a test I removed 17 and made 11 the system default but it didn't help. Then I thought maybe the master branch was inconsistent so I went back to the checkout I did in November but that threw the same error.

After looking at the logs I concluded that maybe eclipse changed something upstream that made tm.terminal require Java 17 or maybe someone accidentally used 5.4.0 as the required tm.terminal version instead of 4.5.0 but I got no further than that. That's when I posted here. Right after that, I though to look at your github CI history to see if it was passing but found that it too was failing with the same error and has been since November 30th.
https://github.com/espressif/idf-eclips ... #step:7:23

ESP_kondalkolipaka
Posts: 174
Joined: Wed Jul 17, 2019 5:26 pm

Re: Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

Postby ESP_kondalkolipaka » Tue Dec 20, 2022 11:34 am

Appreciate for providing more details on the issue.

org.eclipse.tm.terminal.control* plugin dependency issue due to eclipse target and its dependencies are not being configured correctly to work with the IEP and latest eclipse version 2022-12.

2022-12 support might take some more time, but will fix the CI issues and enable the builds with Eclipse 2022-09 target. I will keep it posted here.

Thanks

User avatar
gtjoseph
Posts: 81
Joined: Fri Oct 15, 2021 10:55 pm

Re: Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

Postby gtjoseph » Tue Dec 20, 2022 12:08 pm

Cool, thanks!

ESP_kondalkolipaka
Posts: 174
Joined: Wed Jul 17, 2019 5:26 pm

Re: Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

Postby ESP_kondalkolipaka » Tue Dec 20, 2022 3:36 pm

Hello,

I have updated the builds to use Eclipse 2022-09 target, now the builds are working fine.
https://github.com/espressif/idf-eclips ... 0210218545

You should be able to build locally as well.

Thanks!

User avatar
gtjoseph
Posts: 81
Joined: Fri Oct 15, 2021 10:55 pm

Re: Can't build idf-eclipse-plugin anymore. requires osgi JavaSE 17

Postby gtjoseph » Wed Dec 21, 2022 11:52 am

That worked! Thanks!

Who is online

Users browsing this forum: No registered users and 7 guests