Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2042 +/- ##
==========================================
- Coverage 58.63% 58.62% -0.01%
==========================================
Files 849 848 -1
Lines 36704 36617 -87
Branches 7606 7589 -17
==========================================
- Hits 21520 21466 -54
+ Misses 12183 12181 -2
+ Partials 3001 2970 -31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 24, 2026
Collaborator
Author
lagergren
force-pushed
the
build/require-intellij-2025-1
branch
from
November 27, 2026 14:53
e6e68ef to
38f1447
Compare
This was referenced Nov 27, 2026
Closed
Collaborator
Author
|
Also, @muescha - Let me know what you think and if it is a good or bad idea to drop 2024 support in the next release provided Quarkus Tools also gets upgraded. |
…ls in 2024.2 and 2024.3 LSP4IJ supports the IntelliJ releases of the last two years: 2024.3 came out on 2024-11-13, and 2025.1 on 2025-04-16. The JetBrains Marketplace keeps offering the last compatible LSP4IJ to an IDE of 2024.2 or 2024.3. - since-build is 251 in gradle.properties and plugin.xml, and the build and the tests run on IntelliJ IDEA Community 2025.1 by default - the JSON plugin, a plugin of its own since 2024.3, is in platformBundledPlugins instead of being added for 243 and later - the plugin verifier of main checks every release since pluginSinceBuild, and a pull request is verified against 2025.1 and 2026.3 - runIde always enables the enhanced class redefinition, which every version since 2024.1 has
…ntelliJ 2025.1 IntelliJ 2025.1, the oldest supported version, runs on the JetBrains Runtime 21 and bundles the Kotlin standard library 2.1.10, so the Java classes are compiled with release 21 instead of 17, and the Kotlin ones for JVM 21, with the API and language versions 2.1 instead of 1.9, which Kotlin 2.4 no longer accepts. A plugin that compiles against the classes of LSP4IJ needs a JDK 21 or later, as the IntelliJ Platform Gradle Plugin requires for 2025.1 anyway.
javac compiles the main and the test classes with -Xlint:deprecation, so that the build prints each use of a deprecated API, up to javac's 100 warnings a source set, instead of one note per source set. The uses of an API scheduled for removal were already listed. Warnings don't fail the build: neither javac nor the Kotlin compiler treats them as errors.
The code that existed only because 2024.2 or 2024.3 lacked an API, now that LSP4IJ requires 2025.1. The behaviour on 2025.1 and later is the same. - CodeVisionEditorFeature calls ModificationStampUtil.clearModificationStamp, public since 2024.3, instead of finding it, or before 2024.3 CodeVisionPassFactory.Companion.clearModificationStamp, by reflection - ConnectDocumentToLanguageServerSetupParticipant reads the public FileEditorManagerKeys.CLOSING_TO_REOPEN, which 2024.2 lacked, instead of finding the key by its name with the deprecated Key.findKeyByName (redhat-developer#2274) - The code blocks of documentation are highlighted with the platform's QuickDocHighlightingHelper instead of LightQuickDocHighlightingHelper, a copy of it to be removed "once LSP4IJ has a minimum of 2024". The code is trimmed as the copy did, since the platform only trims the line breaks around it - The comments that name 2024.2 or 2024.3 as the oldest version, or explain a difference with a version before 2025.1, name the versions that still differ: the reflection for emitBreakpointChanged (2025.2), findFirst (2026.3), XEvaluationCallbackWithOrigin (internal, moved in 2025.3) and the addExtensionPointListener overload (internal up to 2026.2) stays
…5.1 has, and show the others With IntelliJ 2025.1 as the oldest version, four deprecated calls have a replacement there, which does the same: - CommandExecutor runs an IDE action with ActionUtil.invokeAction(action, event, onDone) and the event that the deprecated overload created - ExportServerAction creates its FileSaverDescriptor with the constructor of one extension instead of the deprecated one with several - LSPCompletionConfidence overrides shouldSkipAutopopup with the editor, which the platform calls, instead of the deprecated one without it - LSPDeclarativeInlayActionHandler overrides handleClick with the mouse event, which the platform calls, instead of the deprecated one with the editor The deprecated calls that stay are no longer hidden by @SuppressWarnings, so that the build lists them, and a comment names their replacement: UpdateHighlightersUtil.setHighlightersToEditor in LSPDiagnosticsApplier and LSPDocumentLinkApplier (deprecated since 2025.3), XDebuggerManager.startSession in DAPDebugRunner (deprecated since 2026.1 for newSessionBuilder) and LSPDocumentSymbolFeature.matchesPsiElement in DocumentSymbolData (redhat-developer#2285).
- UserDefinedServerWorkingDirectoryTest and DAPConfigurationWorkingDirectoryTest register their CommandLineEnvCustomizer directly instead of through a proxy of the interface found by name, and always check the environment of the directory, which every supported version sets up - ApplicationUtilsTest runs its two tests of the EDT without read access on the test's thread, and has EdtTestUtil.runInEdtAndWait(action, false) run the action on the EDT without the write-intent lock. On 2025.1, which stores the lock in the thread's context, ApplicationEx.runUnlockingIntendedWrite gives nothing away, so the EDT kept read access and testAReadActionOnTheEdtWithoutReadAccessTakesTheWriteIntentLock failed; the internal ThreadingSupport method that 2025.3 and 2026.3 used is gone too - DAPSetExpressionSessionTest calls XValue.getModifierAsync(), which 2024.2 lacked, instead of through reflection - EditorWindowConnectionTest marks a file with FileEditorManagerKeys.CLOSING_TO_REOPEN, the key that LSP4IJ reads, instead of the deprecated FileEditorManagerImpl.CLOSING_TO_REOPEN - TypeScriptEditorImprovementsTest and its custom language server variant drop the expected text of 2023.3 - The comments that name 2024.2 as the version the tests run on name 2025.1
… of the last two years The README names 2025.1 as the oldest version, and the policy: the IntelliJ releases of the last two years, instead of "the last 4 major releases". The pages no longer say "since IntelliJ 2025.1" of the environment that a plugin sets up for a working directory, nor describe IntelliJ 2024.x, which has no such extension point, and LSPSupport.md no longer says that sticky lines need 2024.1.
…esn't test ci.yml tests the oldest supported IntelliJ release, 2025.3 and the newest release, which together run every version-dependent path of LSP4IJ. The releases between them, today 2025.2, 2026.1 and 2026.2, behave differently in the platform (redhat-developer#1300, redhat-developer#1636, redhat-developer#1648), and once a newer release is out, nothing tests them, although their users keep them. The nightly "Latest IJ" workflow now finds the newest build of each IntelliJ IDEA release from pluginSinceBuild on that neither ci.yml nor its job newest-release tests, and runs `./gradlew check` on each, on Linux, as IntelliJ IDEA Ultimate. The list follows pluginSinceBuild, ci.yml and the newest release, so it needs no change when they move. A release that fails gets a warning in the run's summary.
lagergren
force-pushed
the
build/require-intellij-2025-1
branch
from
November 28, 2026 10:23
53b4101 to
f6f01f1
Compare
Contributor
|
I'd require 2025.3, that matches our "support to 1yo" IJ versions policy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2038.
LSP4IJ supports the IntelliJ releases of the last two years: 2025.1 to 2026.3, instead of 2024.2 to 2026.3. This is a
draft for 0.31.0, to study and discuss, and to be merged once 0.30.2 is released. It is meant to be rebase-merged, so
that each
build:andrefactor:title reaches the release notes.Behaviour change
The commits
build:LSP4IJ requires IntelliJ 2025.1 or later.pluginSinceBuild=251,since-build="251.*"inplugin.xml, andplatformVersion=2025.1.platformBundledPlugins, without the>= 243check, and therunIdehotswap argumentsare always on: every supported version has them.
sinceBuildreadspluginSinceBuildinstead of a hard-coded"242".IJ.ymlverifies a pull request against 2025.1 and 2026.3.build:Java 21 and Kotlin 2.1, the levels of IntelliJ 2025.1.options.releaseandjvmTargetare 21. TheKotlin API and language versions are 2.1, since 2025.1 bundles the Kotlin standard library 2.1.10, and LSP4IJ uses
the platform's (
kotlin.stdlib.default.dependency=false). This also removes Kotlin's warning that language version1.9 is deprecated. Kotlin itself isn't upgraded.
build:the build lists each use of a deprecated API.-Xlint:deprecationfor the main and the test classes,instead of javac's one note per source set. Warnings don't fail the build.
refactor:remove the workarounds for IntelliJ 2024.2 and 2024.3. See Removed.refactor:replace the deprecated APIs whose replacements IntelliJ 2025.1 has, and show the others. Main codehas no
@SuppressWarnings("deprecation")or("removal")any more. Each deprecated call that stays has a commentnaming the version that has its replacement.
test:the tests no longer branch for IntelliJ 2024.x, and run on 2025.1.docs:the README gives 2025.1 as the requirement, and five guides lose their 2024.x and "since 2025.1"remarks.
ci:the nightly tests every supported IntelliJ release thatci.ymldoesn't test. SeeThe releases in between.
Two more commits of this branch went to
mainwith #2316, and the rebase ontomaindropped them: a platformversion with its patch number, such as
2026.2.5.1, builds against the modules of its own release (#2313), andLSP4IJ builds against IntelliJ 2026.2, with Java 25 and the debugger modules and structure view plugin of 2026.2
(#2314).
Removed
CodeVisionEditorFeature: about 100 lines of reflection, which chose betweenCodeVisionPassFactory.Companion(before 2024.3) and
ModificationStampUtil. It now callsModificationStampUtil.INSTANCE.clearModificationStamp(editor).ConnectDocumentToLanguageServerSetupParticipant: theCLOSING_TO_REOPENkey found by name with the deprecatedKey.findKeyByName(6 internal API usages #2274). It readsFileEditorManagerKeys.CLOSING_TO_REOPEN.LightQuickDocHighlightingHelper, a public class that copied the platform's helper "until the minimum is 2024".SyntaxColorationCodeBlockRendereruses the platform'sQuickDocHighlightingHelper, and still trims the code, whichthe platform doesn't. This removes a public class of LSP4IJ; GitHub's code search finds no use of it outside LSP4IJ.
LSPCompletionConfidenceoverrides theEditoroverload ofshouldSkipAutopopup, the one the platform calls.LSPDeclarativeInlayActionHandleroverrideshandleClick(EditorMouseEvent, InlayActionPayload), the one theplatform calls in 2025.1 and 2026.3.
ExportServerActionuses theFileSaverDescriptorconstructor with one extension.CommandExecutorcallsActionUtil.invokeAction(action, event, onDone)with the event that the deprecatedoverload built.
isVersionAtLeast(2024, 1)branches of the TypeScript editor improvement tests; the proxy and the>= 251branch ofUserDefinedServerWorkingDirectoryTestandDAPConfigurationWorkingDirectoryTest; reflection inDAPSetExpressionSessionTest.Kept, with their comments corrected
CommandUtils.findInPath, LSP4IJ's own:PathEnvironmentVariableUtil.findFirstis new, and experimental, in 2026.3.BreakpointHandlerBase: 2025.1 has noXBreakpointBase.emitBreakpointChanged(), and theXBreakpointoverload ofupdateBreakpointPresentationcomes in 2026.3.startSession()path ofDAPDebugRunner, for 2025.1 to 2025.3:newSessionBuildercomes in 2026.1.addExtensionPointListener(listener, Disposable)inLanguageServersRegistryandServerInstallerManager: theCoroutineScopeoverload is internal up to 2026.2.IconMapperandLSPJsonSchemaLightVirtualFile: still needed on 2025.1.Deprecation warnings that the build now prints
Main code on 2025.1, 9 warnings. Their replacements are missing from 2025.1, or would change the behaviour:
Notification.setListener, 4 timesServerInstallerManager,ShowMessageTask,ServerMessageHandler,CommandExecutoraddActionturns the links of the text into buttons, a change of the UI; no like-for-like replacement up to 2026.3ActionUtil.invokeAction, the form with a placeTriggerCommandActionActionPlaces.isPopupPlacegivesTextMateHighlightingLexer(descriptor, int)TextMateSyntaxMatcherneeds a matcher that the TextMate plugin keeps privategetMainCheckBoxLabel()EnterBetweenBracesHandlerEnterBetweenBracesDelegate, is per language, and LSP4IJ's handler is for any languagematchesPsiElementMain code on IU 2026.3, 27 warnings: the 9 above, and these, whose replacements 2025.1 doesn't have:
ActionUtil.invokeAction(action, event, onDone)CommandExecutorActionUtil.performAction, 2025.2XSmartStepIntoHandler.getPopupTitle(XSourcePosition)DAPSmartStepIntoHandlergetPopupTitle(), 2025.2XDropFrameHandler.canDropDAPDropFrameHandlercanDropFrame, 2025.2DaemonCodeAnalyzer.restart(PsiFile)LSPFileSupportrestart(file, reason), 2025.3FileUtil.expandUserHome, scheduled for removalDAPRunConfigurationOptionsOSAgnosticPathUtil.expandUserHome, 2025.3createShellWidgetRunInIntegratedTerminalServiceUpdateHighlightersUtil.setHighlightersToEditorLSPDiagnosticsApplier,LSPDocumentLinkApplierBackgroundUpdateHighlightersUtil, experimental and run in the background under a read action, while LSP4IJ applies on the EDTaddExtensionPointListener(listener, Disposable), twiceCoroutineScopeoverload, internal up to 2026.2XDebuggerManager.startSession,getRunContentDescriptorDAPDebugRunner,DAPDebugProcessnewSessionBuilder, 2026.1, already used by reflectionEnvironmentVariablesComponent(), twiceEnvironmentVariablesComponent(Project), 2026.2FileEditorManager.openFile,openTextEditor, 3 timesrequestOpenFile,requestOpenTextEditor, 2026.3Test code: about 20 warnings on 2025.1, and over 100 on 2026.3, where javac stops at its limit of 100 per source
set. Mostly
ReadAction.compute/run,LightPlatformTestCase,FileUtil.delete(Path)andopenFile. The testsuppressions that remain are for LSP4IJ's own deprecated APIs, and for
openFileWithProviders,setHighlightersToEditorandnew URL.Tests
ApplicationUtilsTestfailed on 2025.1, which would have made the default CI job red:testAReadActionOnTheEdtWithoutReadAccessTakesTheWriteIntentLock. Its fallback for 2024.2,ApplicationEx.runUnlockingIntendedWrite, does nothing on 2025.1, which keeps the lock in the thread's context bydefault, and the
ThreadingSupportmethod that the test uses on 2025.3 and later doesn't exist in 2025.1. The twotests "without read access" now run off the EDT, and run their action with
EdtTestUtil.runInEdtAndWait(action, false),which IntelliJ dispatches without the lock on 2025.1, 2025.3 and 2026.3. The old test fails on 2025.1 and the new
one passes. So these tests now check on 2025.1 too, where the earlier version of this PR checked nothing.
dap,internal,commands, the documentation, completion, inlay hint andformatting features, the launching tests, and the editor connection, refresh and diagnostics tests):
ApplicationUtilsTestfailure above, then that class passing with the fix.CommandUtilsTest.verifyPluginagainst 2025.1 and 2026.3: compatible, no internal API usages.What it means
LSP4IJ for them.
nightly, its CI on 2024.2 gets an LSP4IJ that doesn't install there. It needs to move to 2025.1 at the same time,
or to pin LSP4IJ.
2024.2. Kotlin code that uses LSP4IJ's Kotlin classes needs a Kotlin 2.0 compiler or later, because of the 2.1
metadata.
LSPDeclarativeInlayActionHandlerthat overrideshandleClick(Editor, …)is no longer called.2026.3. Together they run every version-dependent path: 2025.1 is where APIs are missing, 2025.3 runs the paths from
2025.2 on, and 2026.3 the paths from 2026.1 on. The nightly tests the releases in between (below).
two-year window, on 16 April 2027.
Plugins built on LSP4IJ that still support IntelliJ 2024
Of the 213 plugins in the README's list of LSP4IJ's users, checked on 2026-11-27:
The oldest IntelliJ is the since-build of the newest Marketplace release. For a plugin that isn't on the Marketplace,
it's the since-build of its source, on its default branch or the branch of the README's link: from its
plugin.xml,its build files, or else the
platformVersionit builds against.Of the 20 most downloaded plugins that aren't Red Hat's, 12 already require 2025.1 or later. None of the 131 plans in
the open to drop 2024: their GitHub issues and pull requests were searched, see
the comment on #2038, which has
these numbers in full.
What it means for them:
2024.x get a plugin whose LSP4IJ lacks that API.
The 131 plugins that still support IntelliJ 2024, by downloads
The releases in between
Every version-dependent path of LSP4IJ runs in one of the three jobs of
ci.yml. The APIs that LSP4IJ looks up byreflection, in the jars of each release:
XDebuggerManager.newSessionBuilderXDebuggerTreeBackendOnlyActionBaseXBreakpointBase.emitBreakpointChangedXDebugSessionListener.settingsChangedFromFrontendBut the bugs reported for a single release came from the platform's own behaviour in a release in between: #1300 in
2025.2, #1636 and #1648 in 2026.2. Once a newer release is out, nothing tests such a release, although its users keep
it. So the nightly Latest IJ workflow now also runs
./gradlew checkon the newest build of each supported releasethat neither
ci.ymlnor its jobnewest-releasetests: today 2025.2.6.5, 2026.1.5.2 and 2026.2.5.1, on Linux, asIntelliJ IDEA Ultimate. A release that fails gets a warning in the run's summary. The list comes from
pluginSinceBuild,ci.ymland IntelliJ's list of releases, so it follows them when they move.Its first runs, started by hand on a fork, and this PR's CI found five problems that were already on
main, none ofthem from the removal of 2024. All five are fixed on
mainnow, and this branch has the fixes:plugin to 2026.3 and later only. Fixed by build: LSP4IJ builds against IntelliJ 2026.2, and against releases with a patch number #2316.
ResolvedCodeActionTest.testUndoRevertsTheResolvedEditAlonefailed once on 2026.1.5.2, and passeseverywhere else. Fixed by fix: the races behind the FileDocumentMoveTest and ResolvedCodeActionTest flakes #2325: on 2025.3 and later, a write action pending or running in the background held back
the queued edit, and the test asserted after one dispatch of the events.
WillSaveTestfails every time on 2026.2:willSaveWaitUntilstops being sent before three answers cametoo late. Fixed by fix: a save right after another no longer skips textDocument/willSaveWaitUntil on IntelliJ 2025.3 and later #2319.
FileDocumentMoveTestfailed once on Windows in this PR's CI, and passes everywhere else. Fixed by fix: the races behind the FileDocumentMoveTest and ResolvedCodeActionTest flakes #2325:a request that matched a file before it was renamed connected it at its new place.
This branch is rebased onto
mainof 2026-11-28, with #2316, #2319, #2321, #2325 and #2324: eight commits, and nomerge commit.
Open
one-line
<add-to-group>, and the 2025.2 and 2025.3 replacements in the table above one-line changes.FileUtil.expandUserHome, which 2026.3 schedules for removal, could get LSP4IJ's own implementation, asfindInPathhas.#pluginUntilBuild=243.*line ofgradle.properties.