-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make Xtext validators resilient #149
Labels
Milestone
Comments
echebbi
added
bug
prio - top
affect: validators
Related to Xtext validators
affect: editor
labels
Jun 26, 2020
echebbi
added a commit
that referenced
this issue
Jun 26, 2020
Because: - unexpected exceptions in a validator were stopping the whole validation How: - SafeValidator can be used to decorate IValidator and make their validation methods exception-proof - the possible absence of ExtendedClass::baseClass has been taken into account and is less likely to cause errors Signed-off-by: Emmanuel Chebbi <emmanuel.chebbi@outlook.fr>
echebbi
added a commit
that referenced
this issue
Jun 26, 2020
Because: - internal errors may crash source file validation without any error being log (#149) How: - actually catch exceptions & log them through the Activator Signed-off-by: Emmanuel Chebbi <emmanuel.chebbi@outlook.fr>
echebbi
added a commit
that referenced
this issue
Jun 26, 2020
Because: - unexpected exceptions in a validator were stopping the whole validation (#149) How: - SafeValidator can be used to decorate IValidator and make their validation methods exception-proof - the possible absence of ExtendedClass::baseClass has been taken into account and is less likely to cause errors Signed-off-by: Emmanuel Chebbi <emmanuel.chebbi@outlook.fr>
echebbi
added a commit
that referenced
this issue
Jun 26, 2020
Because: - unexpected exceptions in a validator were stopping the whole validation (#149) How: - SafeValidator can be used to decorate IValidator and make their validation methods exception-proof - the possible absence of ExtendedClass::baseClass has been taken into account and is less likely to cause errors Signed-off-by: Emmanuel Chebbi <emmanuel.chebbi@outlook.fr>
echebbi
added a commit
that referenced
this issue
Jun 27, 2020
Because: - internal errors may crash source file validation without any error being log (#149) How: - actually catch exceptions & log them through the Activator Signed-off-by: Emmanuel Chebbi <emmanuel.chebbi@outlook.fr>
echebbi
added a commit
that referenced
this issue
Jun 27, 2020
Because: - unexpected exceptions in a validator were stopping the whole validation (#149) How: - SafeValidator can be used to decorate IValidator and make their validation methods exception-proof - the possible absence of ExtendedClass::baseClass has been taken into account and is less likely to cause errors Signed-off-by: Emmanuel Chebbi <emmanuel.chebbi@outlook.fr>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
An unexpected exception in a validator is:
Proposition
Make sure that an Exception cannot stop the execution (granularity: method) and that errors are reported to the Error Logs view.
The text was updated successfully, but these errors were encountered: