GithubHelp home page GithubHelp logo

Comments (12)

jonahgraham avatar jonahgraham commented on July 4, 2024 1

I will be doing a 10.7.1 release that contains this in the coming days (for 2022-09 M3).

from cdt.

trancexpress avatar trancexpress commented on July 4, 2024

@jonahgraham are CDT maintainers aware of this problem?

How will CDT deal with the newer Eclipse SDKs? Will newer CDT releases (where the problem is fixed) require a newer SDK build to run on?

from cdt.

iloveeclipse avatar iloveeclipse commented on July 4, 2024
git grep "org.apache.commons.io"
debug/org.eclipse.cdt.debug.application.product/debug.product:      <plugin id="org.apache.commons.io"/>
debug/org.eclipse.cdt.debug.dap-feature/feature.xml:      <import plugin="org.apache.commons.io"/>
jsoncdb/org.eclipse.cdt.jsoncdb.core/META-INF/MANIFEST.MF: org.apache.commons.io;bundle-version="2.6.0"
jsoncdb/org.eclipse.cdt.jsoncdb.core/src/org/eclipse/cdt/jsoncdb/core/CompileCommandsJsonParser.java:import org.apache.commons.io.FilenameUtils;
jtag/org.eclipse.cdt.debug.dap.gdbjtag-feature/feature.xml:      <import plugin="org.apache.commons.io"/>
jtag/org.eclipse.cdt.debug.dap.gdbjtag/META-INF/MANIFEST.MF:Require-Bundle: org.apache.commons.io,

from cdt.

jonahgraham avatar jonahgraham commented on July 4, 2024

My best guess is:

  • this a side-effect of https://www.eclipse.org/lists/cross-project-issues-dev/msg19288.html
  • we need releng/org.eclipse.cdt.repo/category.xml to be updated to re-publish the third-party dependencies we need. As the ones that were always in platform were not noticed as being absent from CDT's p2 site.
  • Alternatives to the above is to change require-bundle to import-package - which seems more suitable for main branch, less so for cdt 10.7 one.

In the meantime, the workaround is to add https://download.eclipse.org/tools/orbit/downloads/drops/R20220531185310/repository to the list of available repos and "Contact all update sites during install to find required software".

The simrel seems to be fine because commons.io is pulled in from tracecompass and the commons-io one does not actually exist in the simrel site.

from cdt.

iloveeclipse avatar iloveeclipse commented on July 4, 2024

@jonahgraham : we aren't interested in workaround because we can build in our (closed) environment.

We are interested in a permanent solution that allows us consume CDT for offline build, without extra repositories added.

The main question is if CDT is supposed to be backwards compatible with older SDK releases? If not, one could simply replace old bundle name with new one I guess.

from cdt.

jonahgraham avatar jonahgraham commented on July 4, 2024

The main question is if CDT is supposed to be backwards compatible with older SDK releases? If not, one could simply replace old bundle name with new one I guess.

We don't provide compatibility with older releases. The catch is that CDT 10.7 was released for 2022-06 and we weren't planning on a new release for 2022-09.

The fix on main branch is to just do the update (either require-bundle name change or change to import-package).

Do we need to do anything for 2022-09 release cycle?

from cdt.

iloveeclipse avatar iloveeclipse commented on July 4, 2024

Do we need to do anything for 2022-09 release cycle?

Well, update bundle references, see above. Because depending on how end users update or install CDT, they may face issues with missing dependencies.

from cdt.

jonahgraham avatar jonahgraham commented on July 4, 2024

We can't change require-bundle in CDT 10.7 branch. We can add commons.io to the CDT p2 repo by adding it to category.xml.

from cdt.

iloveeclipse avatar iloveeclipse commented on July 4, 2024

We can't change require-bundle in CDT 10.7 branch.

Why?

We can add commons.io to the CDT p2 repo by adding it to category.xml.

Will that mean, the new bundle will be also found if updating from CDT update site without extra update sites, and the bundle will land in the zipped p2 update site? If so, sounds OK.

from cdt.

jonahgraham avatar jonahgraham commented on July 4, 2024

We can't change require-bundle in CDT 10.7 branch.

Why?

I am being perhaps too pessimistic, but changing the dependencies of bundles in a service release seems like a bad idea.

We can add commons.io to the CDT p2 repo by adding it to category.xml.

Will that mean, the new bundle will be also found if updating from CDT update site without extra update sites, and the bundle will land in the zipped p2 update site? If so, sounds OK.

Yes - commons.io will be in the p2 site (zipped and plain) for CDT 10.7.1. All of CDT's 3rd party dependencies are supposed to be in there already, but commons.io is actually a relatively new dep of CDT (in the 20 year lifespan of CDT) and was missed.

Note that the CDT 10.7.0 repo will not be modified.

from cdt.

trancexpress avatar trancexpress commented on July 4, 2024

@jonahgraham , when I try to use the 10.7.1 release I still see the error for this plug-in:

https://download.eclipse.org/tools/cdt/releases/10.7/cdt-10.7.1/plugins/org.eclipse.cdt.jsoncdb.core_1.3.0.202206081803.jar

Error: [org.eclipse.cdt.jsoncdb.core 1.3.0.202206081803] plugin not found: org.apache.commons.io 2.6.0

In the MANIFEST.MF I see:

org.apache.commons.io;bundle-version="2.6.0"

I see the release contains org.apache.commons.io_2.8.0.v20210415-0900.jar... Does this work with the version constraint above?

from cdt.

trancexpress avatar trancexpress commented on July 4, 2024

@jonahgraham , when I try to use the 10.7.1 release I still see the error for this plug-in:

Actually never mind, I forgot to update an RPM. Seems to work when I use the new release, sorry for the noise.

from cdt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.