eclipse / lsp4jakarta

Language Server for Jakarta EE
Eclipse Public License 2.0
34 stars 51 forks source link

Only reports one error when two exist in Bean Validation #523

Open turkeylurkey opened 6 months ago

turkeylurkey commented 6 months ago

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

turkeylurkey commented 6 months ago

The same applies with @AssertFalse in MethodConstraintValidation.java.

image

This has invalid type and is static.