Registry exception in property tester init prevents proper startup
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start in runtime/bundles/org.eclipse.core.expressions/src/org/eclipse/core/internal/expressions/TypeExtensionManager.java at the loadTesters loop around line 193. Reproduce the fresh-install and clean-workspace startup sequence if possible, then verify that an InvalidRegistryObjectException is handled like the existing CoreException path, with logging and a null tester so startup proceeds.
Written by the indexing model from the issue text.
Description
- I verified I can reproduce this issue against latest Integration Build of Eclipse SDK
Steps to reproduce
From a fresh installation and clean workspace:
- install from this spec: https://github.com/user-attachments/files/26249857/eclipse-windows-setup.txt
- open maven project
- open java source
- restart eclipse
see https://github.com/groovy/groovy-eclipse/issues/1660
When groovy bundles are refreshed to select a specific one, a property tester is part of that refresh. The next request to org.eclipse.core.internal.expressions.TypeExtensionManager#loadTesters fails with org.eclipse.core.runtime.InvalidRegistryObjectException.
The tester loader loop already catches CoreException and substitutes a null tester plus logs. I think this loop could also catch InvalidRegistryObjectException.
IPropertyTester[] result= new IPropertyTester[typeConfigs.size()];
for (int i= 0; i < result.length; i++) {
IConfigurationElement config= typeConfigs.get(i);
try {
result[i]= new PropertyTesterDescriptor(config);
} catch (CoreException e) {
ILog.of(TypeExtensionManager.class).log(e.getStatus());
result[i]= NULL_PROPERTY_TESTER;
} catch (InvalidRegistryObjectException e) { // NEW
ILog.of(TypeExtensionManager.class).log(...);
result[i]= NULL_PROPERTY_TESTER;
}
}
Community
- I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.
- Dominant language
- Java
- Stars
- 165
- Forks
- 174
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 22
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-platform/eclipse.platform
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eclipse-platform/eclipse.platform#2940 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
eclipse-platform/eclipse.platform#2881 ·
-
bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eclipse-platform/eclipse.platform#2774 · 4 comments ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
eclipse-platform/eclipse.platform#2950 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
eclipse-platform/eclipse.platform#2947 ·
All issues in eclipse-platform/eclipse.platform
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100