Skip to content

SQL syntax highlighting throws error #1852

Closed

Description

@martinlippert

Testing the latest Spring Tools 5.1.1 on Eclipse 4.39 distribution, imported petclinic into the workspace. When opening PetTypeRepository, an error like this shows up in the Error Log view:

Cannot find semantic highlighting for SemanticToken[ofset=1138, length=7, tokenType=CLASS]

Another case for reproducing: open OwnerRepository and turn the first query method into an annotation. Every time you open the file in an editor, these errors show up:

Cannot find semantic highlighting for SemanticToken[ofset=1762, length=8, tokenType=PARAMETER_VARIABLE]
Cannot find semantic highlighting for SemanticToken[ofset=1731, length=5, tokenType=CLASS]

Activity

  1. added this to the 5.2.0.RELEASE milestone on Mar 18, 2026
  2. martinlippert commented on Mar 18, 2026

    @martinlippert
    MemberAuthor

    Something very annoying is that these errors appear repeatedly when you type in those files (basically on every keystroke). This makes me think whether we should include a fix in 5.1.1 instead of 5.2.0

  3. martinlippert commented on Mar 30, 2026

    @martinlippert
    MemberAuthor

    Related issue in JDT to avoid logging this as an error: eclipse-jdt/eclipse.jdt.ui#2412

  4. martinlippert commented on Mar 30, 2026

    @martinlippert
    MemberAuthor

    Double checked the latest fix from JDT UI in Spring Tools for Eclipse on early 4.40 integration builds and it works nicely. Thanks again @BoykoAlex !!!

  5. BoykoAlex commented on Mar 30, 2026

    @BoykoAlex
    Contributor

    Oh nice :-) I was about to check on this... Great that you did this already!-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsetheme: spring-data-supporttype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions