Skip to content

semantic token highlights cause broken highlighting in java editor #1714

Closed as not planned

Description

@martinlippert

Sometimes, semantic highlighting in the Java editor is broken when running the Spring Tools as a runtime workbench (using the latest from main and the latest from the snapshots as target platform). Not sure when and how exactly this happens, but I see these error messages appear in the runtime workbench log:

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.158
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=66, length=17, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.158
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=66, length=17, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.158
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=191, length=22, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.158
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=191, length=22, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.159
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=237, length=4, tokenType=METHOD]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.159
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=237, length=4, tokenType=METHOD]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.159
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=242, length=6, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.159
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=242, length=6, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.159
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=251, length=4, tokenType=PARAMETER_VARIABLE]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.159
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=251, length=4, tokenType=PARAMETER_VARIABLE]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.159
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=261, length=17, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=261, length=17, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=261, length=17, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=279, length=3, tokenType=METHOD]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=279, length=3, tokenType=METHOD]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=279, length=3, tokenType=METHOD]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=283, length=22, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=283, length=22, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=283, length=22, tokenType=CLASS]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=313, length=4, tokenType=PARAMETER_VARIABLE]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.160
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=313, length=4, tokenType=PARAMETER_VARIABLE]

!ENTRY org.eclipse.jdt.ui 4 10001 2025-11-11 09:29:14.161
!MESSAGE Cannot find semantic highlighting for SemanticToken[ofset=313, length=4, tokenType=PARAMETER_VARIABLE]

Activity

  1. added this to the 5.0.0.RELEASE milestone on Nov 11, 2025
  2. added
    for: eclipse
    on Nov 11, 2025
  3. martinlippert commented on Nov 12, 2025

    @martinlippert
    MemberAuthor

    Looks like this was my fault starting up the language server manually in the wrong mode (vscode instead of eclipse), so nothing to fix here.

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

Metadata

Metadata

Assignees

Labels

for: eclipsetype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions