Repository navigation
Description
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>): theMoveFileHandler.retargetUsagesof 2025.3 takes aList<? 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 otherWillRenameFilesRefactoringHelper.prepareOperation(UsageInfo[], List<PsiElement>): theRefactoringHelper.prepareOperationof 2025.3 takes aList<? 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
angelozerr commentedon Nov 9, 2026
@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
lagergren commentedon Nov 9, 2026
I completely agree!
fix: compile against IntelliJ 2025.3 (redhat-developer#1906)