You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two new changes introduced in version 4.23.0 RELEASE (1.55) is generating false positive errors #1274
I am experiencing an issue with the latest update to Spring Boot, specifically with the new features introduced for syntax validation and highlighting in Visual Studio Code. The features in question are:
Syntax validation for JPQL, SQL, and HQL embedded in Java code.
Syntax highlighting for SQL embedded into Spring Data query annotations.
Since these features were introduced, I've encountered numerous false positives where valid queries are being flagged as errors. This issue seems to primarily affect the development environment in Visual Studio Code.
Steps to Reproduce:
Write a valid SQL/JPQL query embedded within Java code or Spring Data annotations.
Observe that the syntax validation incorrectly flags these valid queries as having errors.
Expected Behavior:
The syntax validation should accurately recognize valid SQL, JPQL, and HQL queries without flagging them as errors.
Actual Behavior:
Valid queries are being incorrectly flagged as errors, leading to unnecessary confusion and hindrance in the development process.
Could you please look into this issue? It seems that the new validation rules might be overly strict or not fully aligned with the actual syntax rules of SQL, JPQL, and HQL.
@familygw do you mind showing issues with HQL and JPQL? I'm only seeing SQL so far... we can switch off SQL validation by default... wonder if HQL and JPQL need to be switched off by default as well...
@BoykoAlex, I performed a downgrade and then updated the component again. Now, I'm only seeing SQL-related errors, with no more HQL errors. I don’t remember seeing any related to JPQL; almost all of them are for SQL (native) queries.
Which setting can I use to disable this validation in the meantime?
@familygw you'd need to use an nightly update site and then look at Settings Spring -> Validation -> Data Query. See #1236 (comment) for list of nightly build update sites and the setting page screenshot.
Activity
BoykoAlex commentedon Jun 14, 2024
See #1236 (comment) to workaround the issue for now.
We are working on the patch release for early next week. Sorry for the inconvenience
BoykoAlex commentedon Jun 14, 2024
@familygw do you mind showing issues with HQL and JPQL? I'm only seeing SQL so far... we can switch off SQL validation by default... wonder if HQL and JPQL need to be switched off by default as well...
familygw commentedon Jun 14, 2024
@BoykoAlex, I performed a downgrade and then updated the component again. Now, I'm only seeing SQL-related errors, with no more HQL errors. I don’t remember seeing any related to JPQL; almost all of them are for SQL (native) queries.
Which setting can I use to disable this validation in the meantime?
BoykoAlex commentedon Jun 14, 2024
@familygw you'd need to use an nightly update site and then look at Settings Spring -> Validation -> Data Query. See #1236 (comment) for list of nightly build update sites and the setting page screenshot.
BoykoAlex commentedon Jun 15, 2024
Fixed for 4.23.1 which should come out early next week