Skip to content

improve validation for Spring Data queries #1516

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

Open
martinlippert opened this issue Mar 18, 2025 · 0 comments
Open

improve validation for Spring Data queries #1516

martinlippert opened this issue Mar 18, 2025 · 0 comments
Assignees
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: spring-data-support theme: validation type: enhancement

Comments

@martinlippert
Copy link
Member

The validation for Spring Data queries seem to flag errors in the statement nicely when the error appears at the beginning, for example:

@Query("SELECTX ptype FROM PetType ptype ORDER BY ptype.name")

shows up a nice error message and squiggle lines below the SELECTX part of the query.
However, having something like this:

@Query("SELECT ptype FROMX PetType ptype ORDER BY ptype.name")

stops syntax highlighting from highlighting anything starting from the FROMX, but there is no validation message showing up. Wondering whether we can show up nice squiggle lines and syntax error message here as well.

@martinlippert martinlippert added for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: spring-data-support theme: validation type: enhancement labels Mar 18, 2025
@martinlippert martinlippert added this to the 4.31.0.RELEASE milestone Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: spring-data-support theme: validation type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants