-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore old exception handling for #2738
Conversation
} catch (Throwable e) { | ||
throw new RuntimeException(e); | ||
} catch (CoreException e) { | ||
Exceptions.sneakyThrow(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excedption handling is still bogus in
org.eclipse.xtext.builder.builderState.MarkerUpdaterImpl.processDelta(Delta, ResourceSet, IProgressMonitor)
case where delete markers is dirctly called. wonder if we should catch and log there too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@szarnekow could you please have a look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder how to run in the delta.getNew() == case? uninstalling the language? but how get we the contributor then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://ci.eclipse.org/xtext/job/xtext/job/cd_restore_deleteMarkers_b/1/
seems to be ran by some tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other code like
org.eclipse.xtext.ui.validation.MarkerEraser.deleteValidationMarkers(IFile, CheckMode, IProgressMonitor)
org.eclipse.xtext.ui.validation.MarkerEraser.deleteValidationMarkers(IFile, CheckMode, IProgressMonitor)
directly catch and log
=> propose to change to
@Override
public void deleteMarkers(IFile file, IProgressMonitor monitor) {
try {
file.deleteMarkers(TaskMarkerTypeProvider.XTEXT_TASK_TYPE, true, IResource.DEPTH_ZERO);
} catch (CoreException e) {
LOG.error(e.getMessage(), e);
}
}
```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. We shouldn't fail miserably because some marker wasn't created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx. updated the pr
Signed-off-by: Christian Dietrich <chriTaskMarkerContributorstian.dietrich@itemis.de>
88a8cd6
to
4cebfc2
Compare
Restore old exception handling for