lsp4jakarta icon indicating copy to clipboard operation
lsp4jakarta copied to clipboard

Only reports one error when two exist in Bean Validation

Open turkeylurkey opened this issue 1 year ago • 1 comments

Description:

When there are two errors the language server should detect and report them both. If you only report one error then the user may be confused when you later report another. This is a quality of implementation issue.

Here is a screen cap from the FieldConstraintValidation test case: image If you fix the static keyword then this diagnostic is generated. image It seems like both could be generated on the first pass.

Type of language feature proposed:

Select all that apply

  • [X] diagnostic
  • [ ] quick-fix
  • [ ] snippet
  • [ ] other, please specify:

turkeylurkey avatar May 27 '24 18:05 turkeylurkey

The same applies with @AssertFalse in MethodConstraintValidation.java. image This has invalid type and is static.

turkeylurkey avatar May 27 '24 22:05 turkeylurkey