GithubHelp home page GithubHelp logo

Comments (7)

ruspl-afed avatar ruspl-afed commented on July 24, 2024

What version range do you have in mind?
This is in theory good requirement, but in practice it implies that someone do revisit all the plugins relatively frequent and does care about updating the ranges. Is this really the case for the modern times?

from cdt.

Torbjorn-Svensson avatar Torbjorn-Svensson commented on July 24, 2024

Well, the problem is that without a range and changing the BREE, there is nothing that downstream can do to ensure that the right plugin is installed.
I don't think it's a good model that ever downstream vendor should look though each and every "internal" dependency that a certain plugin has, it should be enough to just say that I want this particular CDT feature and it should be just that and nothing else. With the current way, you get the CDT feature and some other hang-around plugins, but at random times, you get a version that is incompatible with the rest of the product and then nothing works. No warning, no error, no nothing to the user except that the plugins refuse to load.

In my world, this is a serious break of the contract to the downstream vendors/users.

from cdt.

ruspl-afed avatar ruspl-afed commented on July 24, 2024

Well, the problem is that without a range and changing the BREE, there is nothing that downstream can do to ensure that the right plugin is installed.

Platform updgraded to Java 11 without changing major version and most probably will repeat this trick after move to Java 17, so version range will not help a lot.

but at random times, you get a version that is incompatible with the rest of the product and then nothing works

This looks more like a p2 issue: p2 has all the information to analyze EE & BREE and reject to install.

from cdt.

akurtakov avatar akurtakov commented on July 24, 2024

Platform updgraded to Java 11 without changing major version and most probably will repeat this trick after move to Java 17, so version range will not help a lot.

Just FYI this is documented and expected behavior for long time now https://wiki.eclipse.org/Version_Numbering#When_to_change_the_minor_segment .

from cdt.

ruspl-afed avatar ruspl-afed commented on July 24, 2024

Thank you for this link @akurtakov , no idea why I was sure that BREE upgrade is API breaking change.

from cdt.

jonahgraham avatar jonahgraham commented on July 24, 2024

This sounds like a p2 bug - i.e. that installing Bundles with BREE > than running Java should not be allowed. This is going to affect much more than just CDT as other things (like tracecompass, lsp4e, tm4e) also all have (or will soon have) BREE of Java 17, but no major version change.

from cdt.

Torbjorn-Svensson avatar Torbjorn-Svensson commented on July 24, 2024

This sounds like a p2 bug - i.e. that installing Bundles with BREE > than running Java should not be allowed. This is going to affect much more than just CDT as other things (like tracecompass, lsp4e, tm4e) also all have (or will soon have) BREE of Java 17, but no major version change.

I think you are referring to the old discussion in ticket https://bugs.eclipse.org/bugs/show_bug.cgi?id=483383.
I do agree that it's hard to get this right for every possibility, but I think the major problem is that there is no validation that there will be a problem after restarting Eclipse if the BREE is higher than an available JRE.
I think that the follow use-cases should be supported:

  1. The user upgrades to a new version, or installs a new feature, with the same BREE requirements.
    This should be allowed without any issue.
  2. The user upgrades to a new version, or installs a new feature, with a higher BREE requirement.
    This should only be allowed if the upgrade also pulls in a new JRE that meets the new BREE requirement. If it does not fullfil the required BREE, then the user should at least be prompted about the implications of completing the upgrade.

I know that there is the checkbox in the Window -> Preferences -> Install/Update, but checking that checkbox will have the consequence that it's not possible to upgrade to a new version that do require a newer version of the JRE even if the new JRE would be installed in the same p2 operation.

When I wrote this issue, I was not aware that it was considered a "minor" bump for the BREE change. I personally think this is a mistake as there is simply no way to defend against the unwanted changes as a consumer of a bundle.

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.