Skip to content

LSP4IJ doesn't compile against IntelliJ 2025.3 #1903

Closed

Description

@lagergren

Building LSP4IJ against the 2025.3 platform (./gradlew test -PplatformVersion=2025.3) fails to compile. CI compiles against 2024.2 (platformVersion in gradle.properties), and the nightly "Latest IJ" workflow, which builds against the latest platform, is disabled, so nothing reports it.

What fails

  • WillRenameFilesMoveHandler.retargetUsages(List<UsageInfo>, Map<PsiElement, PsiElement>): the MoveFileHandler.retargetUsages of 2025.3 takes a List<? extends UsageInfo>:
    error: name clash: retargetUsages(List<UsageInfo>,Map<PsiElement,PsiElement>) in WillRenameFilesMoveHandler and retargetUsages(List<? extends UsageInfo>,Map<PsiElement,PsiElement>) in MoveFileHandler have the same erasure, yet neither overrides the other
    
  • WillRenameFilesRefactoringHelper.prepareOperation(UsageInfo[], List<PsiElement>): the RefactoringHelper.prepareOperation of 2025.3 takes a List<? extends PsiElement>, with the same error.
  • LSPInlineCompletionProviderContextTest.kt:87:
    e: Type mismatch: inferred type is LookupEvent but Editor was expected
    e: No value passed for parameter 'event'
    

With these three worked around locally, the main code and the tests compile against 2025.3, and the tests that were run on it (CommandUtilsTest, OSProcessStreamConnectionProviderTest) pass. Only the generic parameter types of the two overridden methods changed, with the same erasure, so the plugin built against 2024.2 should still link on 2025.3; that wasn't checked.

Gradle also warns that IntelliJ IDEA Community isn't published any more since 2025.3, so platformType=IC needs a change for 2025.3 too:

IntelliJ IDEA Community (IC) is no longer published since 2025.3 (253), use: intellijIdea("2025.3")

Possible direction

Declaring the List parameters of the two methods as raw List may override the methods of both 2024.2 and 2025.3, since a method whose signature is the erasure of another's overrides it. The Kotlin test needs a check of the platform version, or a variant for each. It matters once platformVersion moves past 2025.2.

Activity

  1. angelozerr commented on Nov 9, 2026

    @angelozerr
    Contributor

    @lagergren for 0.30.0 it would be nice to keep 2024, but after the release I think it is time to move to 2025.3

  2. lagergren commented on Nov 9, 2026

    @lagergren
    CollaboratorAuthor

    @lagergren for 0.30.0 it would be nice to keep 2024, but after the release I think it is time to move to 2025.3

    I completely agree!

  3. added this to the 0.30.0 milestone on Nov 9, 2026
  4. moved this to In Progress in Java Toolingon Nov 9, 2026
  5. moved this from In Progress to Done in Java Toolingon Nov 9, 2026
  6. added a commit that references this issue on Nov 10, 2026
    056c83e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions