GithubHelp home page GithubHelp logo

Comments (10)

martinlippert avatar martinlippert commented on June 8, 2024

If there is anything that I can provide to make the investigation of this easier, let me know. Since the data loss here is quite dramatic for someone working on plugin projects and having a bunch of launch configs with a specific set of plugins selected from the target platform and the workspace plugin project.

from eclipse.pde.

vik-chand avatar vik-chand commented on June 8, 2024

@HannesWell Can you please have a look?

from eclipse.pde.

iloveeclipse avatar iloveeclipse commented on June 8, 2024

Why do we want orElseThrow() at all? If I understand it right, we should simply return empty iterator

IPluginModelBase latestModel = selectedModels.max(VERSION).orElseThrow();

from eclipse.pde.

HannesWell avatar HannesWell commented on June 8, 2024

from eclipse.pde.

HannesWell avatar HannesWell commented on June 8, 2024

Looks like Github as detected the interesting part of my reply send via mail as an E-Mail an obfuscated it. I have edited it.

PR #93 should fix the problem. Feel free to have a look.
It also adds a test-case that should reproduce your problem and fails without the fix and passes with it.

from eclipse.pde.

martinlippert avatar martinlippert commented on June 8, 2024

Yes, I can take of this on thursday.And Andrey ist right, orElseThrow() should not be used here. An empty iterator could be returned if the Optional is empty, but I think the simplest way is to use Optional.stream(). @martinlippert could you please check if the old launch-config contains workspace-plugins that are absent or closed? And If removing the absent/closed entries avoids the exception.

Yes, I checked this again and you can easily reproduce this error using these steps:

  • open Eclipse with empty workspace
  • import a plugin project
  • create a launch config where this plugin from the workspace is selected (so switch to the mode where you select individual plugins)
  • close the launch config dialog
  • delete the plugin project from the workspace
  • open the launch config again, it will immediately throw the exception

Many thanks @HannesWell for taking a look and implementing a fix for this. Very much appreciated!!!

from eclipse.pde.

HannesWell avatar HannesWell commented on June 8, 2024

Many thanks @HannesWell for taking a look and implementing a fix for this. Very much appreciated!!!

You are very welcome and thank you for checking!
The fix should be available in next I-build. If possible please verify that the problem is really solved.

from eclipse.pde.

HannesWell avatar HannesWell commented on June 8, 2024

Verified with Eclipse SDK

Version: 2022-06 (4.24)
Build id: I20220516-1800

from eclipse.pde.

martinlippert avatar martinlippert commented on June 8, 2024

Tested my setup with the latest fixes, works all well again. Many many thanks again @HannesWell !!!

from eclipse.pde.

HannesWell avatar HannesWell commented on June 8, 2024

Great. :)
You are welcome and thanks for the bug report.

from eclipse.pde.

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.