Comments (10)
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.
@HannesWell Can you please have a look?
from eclipse.pde.
Why do we want orElseThrow()
at all? If I understand it right, we should simply return empty iterator
from eclipse.pde.
from eclipse.pde.
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.
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.
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.
Verified with Eclipse SDK
Version: 2022-06 (4.24)
Build id: I20220516-1800
from eclipse.pde.
Tested my setup with the latest fixes, works all well again. Many many thanks again @HannesWell !!!
from eclipse.pde.
Great. :)
You are welcome and thanks for the bug report.
from eclipse.pde.
Related Issues (20)
- Two ClasspathResolutionTest failures since I20240317-1800 HOT 4
- launch config (plugin) section doesn't correctly add all required and if those are added doesn't validate correctly
- Multiple versions of Jetty bundles cause Missing Constraint problems
- Blank workbench on macOS aarch64 HOT 1
- Attempted to beginRule: MultiRule[], does not match outer scope rule: R/ HOT 1
- class org.eclipse.jdt.internal.core.JavaNature cannot be cast to class org.eclipse.jdt.core.IJavaProject HOT 7
- [scr 1.4] constructor for injection must be public
- commons-jxpath CVE-2022-41852 vulnerabiltiy
- Target definition file contribution is missing for compare editor HOT 1
- Validation errors starting Eclipse launch with Java 23 HOT 1
- PDE errors on all bundles that use system packages since I20240412-1800 HOT 18
- API tooling warnings mismatch IDE vs github HOT 1
- Error validating SDK launch due missing JRE 1.1 support HOT 8
- Expensive operations running on initialization of tabs HOT 2
- Failure of tests in org.eclipse.pde.core.tests.internal.classpath.ClasspathResolutionTest for I-BUILD I20240414-1800 HOT 1
- Invalid generation of SCR component xml after update to 2403 HOT 20
- Access restrictions of package-private elements in dependencies is not respected HOT 10
- TargetDefinition leak
- Unable to run plug-in tests after opening Plugins tab HOT 10
- Modifying the software site "Included Software" settings in the Target Editor doesn't do anything
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse.pde.