Skip to content

build: require IntelliJ 2025.1 - #2042

Draft
lagergren wants to merge 8 commits into
redhat-developer:mainfrom
lagergren:build/require-intellij-2025-1
Draft

lagergren wants to merge 8 commits into
redhat-developer:mainfrom
lagergren:build/require-intellij-2025-1

Conversation

@lagergren

@lagergren lagergren commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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: and refactor: title reaches the release notes.

Behaviour change

Before After
LSP4IJ installs in IntelliJ 2024.2 and later, and is compiled for Java 17 and Kotlin 1.9 LSP4IJ installs in IntelliJ 2025.1 and later, and is compiled for Java 21 and Kotlin 2.1. Users of 2024.2 and 2024.3 keep the last LSP4IJ 0.30.x that the Marketplace offers them

The commits

  1. build: LSP4IJ requires IntelliJ 2025.1 or later.
    • pluginSinceBuild=251, since-build="251.*" in plugin.xml, and platformVersion=2025.1.
    • The JSON plugin is in platformBundledPlugins, without the >= 243 check, and the runIde hotswap arguments
      are always on: every supported version has them.
    • The verifier's sinceBuild reads pluginSinceBuild instead of a hard-coded "242".
    • IJ.yml verifies a pull request against 2025.1 and 2026.3.
  2. build: Java 21 and Kotlin 2.1, the levels of IntelliJ 2025.1. options.release and jvmTarget are 21. The
    Kotlin 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 version
    1.9 is deprecated. Kotlin itself isn't upgraded.
  3. build: the build lists each use of a deprecated API. -Xlint:deprecation for the main and the test classes,
    instead of javac's one note per source set. Warnings don't fail the build.
  4. refactor: remove the workarounds for IntelliJ 2024.2 and 2024.3. See Removed.
  5. refactor: replace the deprecated APIs whose replacements IntelliJ 2025.1 has, and show the others. Main code
    has no @SuppressWarnings("deprecation") or ("removal") any more. Each deprecated call that stays has a comment
    naming the version that has its replacement.
  6. test: the tests no longer branch for IntelliJ 2024.x, and run on 2025.1.
  7. docs: the README gives 2025.1 as the requirement, and five guides lose their 2024.x and "since 2025.1"
    remarks.
  8. ci: the nightly tests every supported IntelliJ release that ci.yml doesn't test. See
    The releases in between.

Two more commits of this branch went to main with #2316, and the rebase onto main dropped them: a platform
version with its patch number, such as 2026.2.5.1, builds against the modules of its own release (#2313), and
LSP4IJ 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 between CodeVisionPassFactory.Companion
    (before 2024.3) and ModificationStampUtil. It now calls ModificationStampUtil.INSTANCE.clearModificationStamp(editor).
  • ConnectDocumentToLanguageServerSetupParticipant: the CLOSING_TO_REOPEN key found by name with the deprecated
    Key.findKeyByName (6 internal API usages #2274). It reads FileEditorManagerKeys.CLOSING_TO_REOPEN.
  • LightQuickDocHighlightingHelper, a public class that copied the platform's helper "until the minimum is 2024".
    SyntaxColorationCodeBlockRenderer uses the platform's QuickDocHighlightingHelper, and still trims the code, which
    the platform doesn't. This removes a public class of LSP4IJ; GitHub's code search finds no use of it outside LSP4IJ.
  • Deprecated APIs of Umbrella: deprecated IntelliJ APIs that LSP4IJ uses, and their replacements #1971 whose replacements 2025.1 has:
    • LSPCompletionConfidence overrides the Editor overload of shouldSkipAutopopup, the one the platform calls.
    • LSPDeclarativeInlayActionHandler overrides handleClick(EditorMouseEvent, InlayActionPayload), the one the
      platform calls in 2025.1 and 2026.3.
    • ExportServerAction uses the FileSaverDescriptor constructor with one extension.
    • CommandExecutor calls ActionUtil.invokeAction(action, event, onDone) with the event that the deprecated
      overload built.
  • Tests: the isVersionAtLeast(2024, 1) branches of the TypeScript editor improvement tests; the proxy and the
    >= 251 branch of UserDefinedServerWorkingDirectoryTest and DAPConfigurationWorkingDirectoryTest; reflection in
    DAPSetExpressionSessionTest.

Kept, with their comments corrected

  • CommandUtils.findInPath, LSP4IJ's own: PathEnvironmentVariableUtil.findFirst is new, and experimental, in 2026.3.
  • The reflection of BreakpointHandlerBase: 2025.1 has no XBreakpointBase.emitBreakpointChanged(), and the
    XBreakpoint overload of updateBreakpointPresentation comes in 2026.3.
  • The startSession() path of DAPDebugRunner, for 2025.1 to 2025.3: newSessionBuilder comes in 2026.1.
  • addExtensionPointListener(listener, Disposable) in LanguageServersRegistry and ServerInstallerManager: the
    CoroutineScope overload is internal up to 2026.2.
  • IconMapper and LSPJsonSchemaLightVirtualFile: 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:

API Where Why it stays
Notification.setListener, 4 times ServerInstallerManager, ShowMessageTask, ServerMessageHandler, CommandExecutor addAction turns the links of the text into buttons, a change of the UI; no like-for-like replacement up to 2026.3
ActionUtil.invokeAction, the form with a place TriggerCommandAction the replacement needs the UI kind of any place, which only the deprecated ActionPlaces.isPopupPlace gives
TextMateHighlightingLexer(descriptor, int) TextMate support the constructor with a TextMateSyntaxMatcher needs a matcher that the TextMate plugin keeps private
getMainCheckBoxLabel() inlay hints settings abstract and deprecated up to 2026.3, so it must be implemented
EnterBetweenBracesHandler typing support its replacement, EnterBetweenBracesDelegate, is per language, and LSP4IJ's handler is for any language
LSP4IJ's own matchesPsiElement deprecated in 0.30.2 (#2285)

Main code on IU 2026.3, 27 warnings: the 9 above, and these, whose replacements 2025.1 doesn't have:

API Where Replacement, from
ActionUtil.invokeAction(action, event, onDone) CommandExecutor ActionUtil.performAction, 2025.2
XSmartStepIntoHandler.getPopupTitle(XSourcePosition) DAPSmartStepIntoHandler getPopupTitle(), 2025.2
XDropFrameHandler.canDrop DAPDropFrameHandler canDropFrame, 2025.2
DaemonCodeAnalyzer.restart(PsiFile) LSPFileSupport restart(file, reason), 2025.3
FileUtil.expandUserHome, scheduled for removal DAPRunConfigurationOptions OSAgnosticPathUtil.expandUserHome, 2025.3
createShellWidget RunInIntegratedTerminalService the reworked Terminal API, 2025.3
UpdateHighlightersUtil.setHighlightersToEditor LSPDiagnosticsApplier, LSPDocumentLinkApplier BackgroundUpdateHighlightersUtil, experimental and run in the background under a read action, while LSP4IJ applies on the EDT
addExtensionPointListener(listener, Disposable), twice see above the CoroutineScope overload, internal up to 2026.2
XDebuggerManager.startSession, getRunContentDescriptor DAPDebugRunner, DAPDebugProcess newSessionBuilder, 2026.1, already used by reflection
EnvironmentVariablesComponent(), twice run configuration editors EnvironmentVariablesComponent(Project), 2026.2
FileEditorManager.openFile, openTextEditor, 3 times requestOpenFile, requestOpenTextEditor, 2026.3

Test 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) and openFile. The test
suppressions that remain are for LSP4IJ's own deprecated APIs, and for openFileWithProviders,
setHighlightersToEditor and new URL.

Tests

  • ApplicationUtilsTest failed 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 by
    default, and the ThreadingSupport method that the test uses on 2025.3 and later doesn't exist in 2025.1. The two
    tests "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.
  • Headless runs of 185 test classes (dap, internal, commands, the documentation, completion, inlay hint and
    formatting features, the launching tests, and the editor connection, refresh and diagnostics tests):
    • IC 2025.1: 1099 tests, the ApplicationUtilsTest failure above, then that class passing with the fix.
    • IU 2026.3, with the fix: 1099 tests, 0 failures, 0 errors.
    • 4 tests skipped on both, the Windows-only ones of CommandUtilsTest.
    • 2025.3 and the full suite on the three platforms: CI.
  • verifyPlugin against 2025.1 and 2026.3: compatible, no internal API usages.

What it means

  • Users of IntelliJ 2024.2 and 2024.3 keep LSP4IJ 0.30.x, without further fixes, and so do the plugins built on
    LSP4IJ for them.
  • Plugins built on LSP4IJ:
    • Liberty Tools is unaffected: its newest release requires 2025.3, and its source 2026.1.
    • Quarkus Tools declares since-build 242, tests on 2024.2, and takes the newest LSP4IJ nightly. Once this is in a
      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.
    • A plugin that compiles against LSP4IJ needs JDK 21, which the IntelliJ Platform Gradle Plugin already needs for
      2024.2. Kotlin code that uses LSP4IJ's Kotlin classes needs a Kotlin 2.0 compiler or later, because of the 2.1
      metadata.
    • A subclass of LSPDeclarativeInlayActionHandler that overrides handleClick(Editor, …) is no longer called.
  • The CI of pull requests is unchanged: the default job, now 2025.1, on Linux, Windows and macOS; IC 2025.3; IU
    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).
  • The LSP4J of the IntelliJ platform (Migrating LSP4IJ to use JetBrains-provided LSP4J (2025.2+) #1382, fix: Remove LSP4J libraries. #1379) needs 2025.2, so it becomes possible when 2025.1 leaves the
    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:

Plugins
Still support IntelliJ 2024 131: 74 on the Marketplace, 57 only as source; 117 of them released or pushed in the last six months
  oldest IntelliJ 2024.3 32
  oldest IntelliJ 2024.2 62, among them Quarkus Tools, the only Red Hat plugin on the list
  oldest IntelliJ 2024.1 or older 37, which with LSP4IJ means 2024.2 already
Require 2025.1 or later 73
Newest release doesn't run on 2025.1 (until-build 243) 3: IntelliJ LUMOS, Opal-Vite, Tailwind Deprecated
Unknown 6: Concord DX, SDLB LSP and UWVM Host Debugger declare no since-build; Ecstasy Language Support has no public release; Huly Code is an IDE, not a plugin; aer Local Apex Debugger has no plugin of its own that could be found

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 platformVersion it 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:

  • Their users on 2024.x keep working: the Marketplace keeps offering them LSP4IJ 0.30.x, and their plugin works with it.
  • Their CI on 2024.x fails if it takes the newest LSP4IJ, as Quarkus Tools does with LSP4IJ's nightly.
  • A release of theirs that needs an API new in LSP4IJ 0.31.0 must require IntelliJ 2025.1 too. Otherwise their users on
    2024.x get a plugin whose LSP4IJ lacks that API.
The 131 plugins that still support IntelliJ 2024, by downloads
Plugin Oldest IntelliJ (since-build) Downloads Newest release
Bloc Linter Support for IntelliJ 2023.3 (233) 407,759 4.1.13, 2026-11-24
Quarkus Tools for IntelliJ 2024.2 (242) 262,603 2.6.1, 2026-09-02
agnix 2023.3 (233) 257,828 0.62.0, 2026-11-26
Jsonnet Language Server 2024.2 (242) 52,476 0.4.0, 2026-08-07
EnvForge 2024.2 (242) 32,256 0.3.0, 2026-09-04
Clojure LSP IntelliJ 2023.3 (233) 20,802 3.5.6, 2026-09-16
Python Portable 2023.3 (233) 18,298 0.1.1, 2026-08-16
GroovyScript for IntelliJ 2024.3 (243) 15,182 0.2.3, 2025-12-11
Zowe™ COBOL Language Support 2023.2 (232) 10,388 0.0.2, 2024-09-05
Vespa Schema Language Support 2023.2 (232) 8,654 2.6.2, 2026-11-01
GenAI PHP Portable 2023.3 (233) 7,899 0.2.2, 2026-07-20
Slang (Unofficial) 2024.1 (241) 5,560 0.0.8, 2026-08-24
IntelliJ Gleam 2024.2 (242) 5,057 0.12.0, 2026-06-13
Go Portable 2023.3 (233) 4,917 0.1.1, 2026-08-16
Lean4ij 2024.2 (242) 3,889 0.2.8, 2025-11-24
Java Portable 2023.3 (233) 3,497 0.1.0, 2026-10-09
BAML JetBrains Plugin 2024.2 (242) 2,695 0.226.3, 2026-10-28
Qt Tools for Android Studio 2024.3 (243) 2,651 5.0, 2026-05-06
IntelliJ KCL 2023.2 (232) 2,370 0.4.1, 2025-05-13
Semantic Web Language Server 2023.3 (233) 1,937 1.5, 2026-05-21
function-hcl 2024.2 (242) 1,502 0.2.0, 2026-07-05
BBj Language Support for IntelliJ 2024.2 (242) 1,131 0.19.0, 2026-10-09
Rovo LSP for IntelliJ 2024.3 (243) 1,052 0.4.18, 2026-11-25
PHP LSP 2024.3 (243) 1,047 0.2.8, 2026-11-15
GN Language Server 2024.2 (242) 1,008 1.10.0, 2026-01-01
Iris Code 2024.2 (242) 953 1.44.1, 2026-11-23
Saffron 2024.2 (242) 726 0.8.5, 2026-11-21
AngelScript Language Server for IntelliJ 2023.3 (233) 603 0.1.0, 2025-02-24
alint 2024.2 (242) 600 0.23.0, 2026-11-22
slop-chop 2024.2 (242) 588 0.55.1, 2026-11-02
Terramate 2024.2 (242) 555 0.0.1, 2025-10-30
Tide 2024.2 (242) 547 0.8.0, 2026-11-24
Azure Templates Navigator 2024.2 (242) 543 2.11.0, 2026-11-18
GreyCat 2023.2 (232) 508 8.0.3-main, 2026-07-24
Cosmoteer Language Server 2024.3 (243) 493 1.1.6, 2026-11-18
GEDCOM 2024.2 (242) 401 1.10.0, 2026-11-12
T-Ruby 2024.2 (242) 370 0.2.5, 2025-12-23
Pyfun 2024.2 (242) 367 0.11.0, 2026-11-25
xslint for XSL/XSLT 2024.2 (242) 337 0.0.15, 2026-10-13
SurrealQL 2024.3 (243) 318 0.2.3, 2026-06-09
Poryscript IDEA 2024.3 (243) 305 0.5.0, 2026-01-30
Teal 2024.2 (242) 301 0.8.1, 2026-10-31
Nextflow 2024.3 (243) 251 1.1.0, 2026-06-10
Xonsh plugin for JetBrains IDEs 2024.2 (242) 205 1.3.0, 2026-05-13
ARO Programming Language 2024.3 (243) 203 1.4.7, 2026-10-05
linthis 2024.1 (241) 202 0.2.0, 2026-01-31
CIMNotebook 2024.2 (242) 192 1.2.0, 2026-11-06
Ecko 2024.2 (242) 148 0.74.1, 2026-10-18
QuantumVM 2024.3 (243) 124 1.0.3, 2026-06-30
Sema 2024.3 (243) 119 1.2.1, 2026-10-09
mq 2024.2 (242) 112 0.9.1, 2026-09-24
Rust Portable 2023.3 (233) 99 0.1.0, 2026-09-30
SPHIOR CODE 2024.2 (242) 96 0.1.3, 2026-11-16
Jimmer Buddy LSP 2023.3 (233) 87 0.4.1, 2026-07-10
OpenTelemetry Collector Config 2024.3 (243) 83 0.5.1, 2026-06-26
LID 2024.3 (243) 67 0.3.0, 2026-06-08
Julimate for Julia 2024.3 (243) 57 1.0.0, 2026-10-09
MOS 2024.2 (242) 56 0.1.3, 2026-11-19
Lumen UI 2024.2 (242) 55 0.1.2, 2026-09-21
Cobolwise: COBOL & Copybooks 2024.3 (243) 53 1.0.0, 2026-10-10
Hdlwise: Verilog & VHDL 2024.3 (243) 53 1.0.0, 2026-10-09
AngelScript Support 2024.2 (242) 51 0.1.3, 2026-11-19
MetaScript 2024.2 (242) 51 0.1.0, 2026-05-03
Big O Lens 2024.2 (242) 50 0.2.1, 2026-09-29
Ruby Portable 2023.3 (233) 47 0.1.0, 2026-10-01
Pourwise: Liquid & Shopify 2024.3 (243) 43 1.0.1, 2026-10-16
Runewise: Svelte 5 2024.3 (243) 35 1.0.0, 2026-10-14
Dinowise: Deno 2024.3 (243) 32 1.0.1, 2026-10-14
Islandwise: Astro 2024.3 (243) 30 1.0.0, 2026-10-15
Candela 2024.2 (242) 27 0.1.2, 2026-09-21
Cadastre 2024.2 (242) 23 0.6.0, 2026-11-17
Saule 2024.2 (242) 22 26.25, 2026-11-06
PurrLang 2024.2 (242) 17 0.1.0, 2026-09-28
Taxi Language Support 2023.2 (232) 14 1.70.0-2171541123, 2025-11-21
agentic-security 2024.2 (242) — not on the Marketplace; last push 2026-11-23
Aktion 2024.2 (242) — not on the Marketplace; last push 2026-11-25
Aurora Language Support 2024.3 (243) — not on the Marketplace; last push 2026-11-11
Blok Workflow Support 2024.1 (241) — not on the Marketplace; last push 2026-11-25
C/C++ Project (LSP) 2024.1 or older (240) — not on the Marketplace; last push 2025-11-05
CD4Analysis 2024.2 (242) — not on the Marketplace; last push 2026-11-27
CodeGraph AI 2024.3 (243) — not on the Marketplace; last push 2026-11-15
ContextMapper 2024.1 (241) — not on the Marketplace; last push 2026-06-20
CP Lang 2024.3 (243) — not on the Marketplace; last push 2026-11-27
Desi Language 2024.1 (241) — not on the Marketplace; last push 2026-08-05
Deslop 2024.3 (243) — not on the Marketplace; last push 2026-11-19
DixScript (.mdix) 2024.1 (241) — not on the Marketplace; last push 2026-11-26
DMF 2024.1 (241) — not on the Marketplace; last push 2026-09-05
doit Language 2024.2 (242) — not on the Marketplace; last push 2026-03-17
Dotprompt 2024.1 (241) — not on the Marketplace; last push 2026-11-18
DryGuard 2024.2 (242) — not on the Marketplace; last push 2026-10-21
Elemenx 2024.3 (243) — not on the Marketplace; last push 2026-11-27
Ens 2024.2 (242) — not on the Marketplace; last push 2026-11-11
EO (LSP) 2024.1 (241) — not on the Marketplace; last push 2025-05-15
Eskiu 2024.1 (241) — not on the Marketplace; last push 2026-11-27
eTamil 2024.2 (242) — not on the Marketplace; last push 2026-11-06
Flint 2024.3 (243) — not on the Marketplace; last push 2026-11-13
Flow Language 2024.2 (242) — not on the Marketplace; last push 2026-10-04
Helm YAML LSP 2024.2 (242) — not on the Marketplace; last push 2026-02-09
IntelliJ Cangjie 2024.2 (242) — not on the Marketplace; last push 2026-11-08
IntelliJ Gno 2024.1 (241) — not on the Marketplace; last push 2025-04-14
Jinga IDEA 2023.1 (231) — not on the Marketplace; last push 2026-11-26
Jux Language 2024.2 (242) — not on the Marketplace; last push 2026-09-29
Klin 2024.2 (242) — not on the Marketplace; last push 2026-10-24
Koine 2024.3 (243) — not on the Marketplace; last push 2026-11-27
KQL LSP 2024.2 (242) — not on the Marketplace; last push 2026-03-01
Kylix Language Support 2024.3 (243) — not on the Marketplace; last push 2026-10-11
Ludic 2024.2 (242) — not on the Marketplace; last push 2026-11-09
MontiGem UMLP 2024.2 (242) — not on the Marketplace; last push 2026-11-27
nelumbo 2023.2 (232) — not on the Marketplace; last push 2026-11-26
Nox Language 2024.2 (242) — not on the Marketplace; last push 2026-06-20
pgzest 2024.1 (241) — not on the Marketplace; last push 2026-11-13
PMC (Post machine toolchain) 2024.3 (243) — not on the Marketplace; last push 2026-11-23
Pojoc 2024.3 (243) — not on the Marketplace; last push 2026-11-26
qkt 2024.2 (242) — not on the Marketplace; last push 2026-11-26
Rust Analyzer 2024.2 (242) — not on the Marketplace; last push 2026-05-01
Salam 2024.2 (242) — not on the Marketplace; last push 2026-11-27
SaTeX 2024.2 (242) — not on the Marketplace; last push 2026-11-26
ShEx 2024.2 (242) — not on the Marketplace; last push 2026-11-22
Silicon 2024.2 (242) — not on the Marketplace; last push 2026-06-15
Spec 2024.2 (242) — not on the Marketplace; last push 2026-11-25
Spec-Driven 2024.1 (241) — not on the Marketplace; last push 2026-11-27
Styx 2024.3 (243) — not on the Marketplace; last push 2026-10-28
SuperDB 2024.1 (241) — not on the Marketplace; last push 2026-03-03
Superwire 2024.1 (241) — not on the Marketplace; last push 2026-07-24
Takt 2024.2 (242) — not on the Marketplace; last push 2026-11-17
Tinymist Typst 2024.1 (241) — not on the Marketplace; last push 2026-11-15
TOON Language 2024.2 (242) — not on the Marketplace; last push 2026-11-25
Trainz Language 2024.3 (243) — not on the Marketplace; last push 2026-06-13
TTR Modeler 2024.2 (242) — not on the Marketplace; last push 2026-11-27
Wasp Language Support 2024.1 (241) — not on the Marketplace; last push 2026-09-03
Wyrm 2024.2 (242) — not on the Marketplace; last push 2026-11-26

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 by
reflection, in the jars of each release:

API 2025.1 2025.3 2026.2 2026.3
XDebuggerManager.newSessionBuilder no no yes yes
XDebuggerTreeBackendOnlyActionBase no yes yes yes
XBreakpointBase.emitBreakpointChanged no yes yes yes
XDebugSessionListener.settingsChangedFromFrontend no no yes yes

But 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 check on the newest build of each supported release
that neither ci.yml nor its job newest-release tests: today 2025.2.6.5, 2026.1.5.2 and 2026.2.5.1, on Linux, as
IntelliJ IDEA Ultimate. A release that fails gets a warning in the run's summary. The list comes from
pluginSinceBuild, ci.yml and 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 of
them from the removal of 2024. All five are fixed on main now, and this branch has the fixes:

This branch is rebased onto main of 2026-11-28, with #2316, #2319, #2321, #2325 and #2324: eight commits, and no
merge commit.

Open

@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.62%. Comparing base (0c5aa98) to head (f6f01f1).

Files with missing lines Patch % Lines
...j/console/explorer/actions/ExportServerAction.java 0.00% 1 Missing ⚠️
...es/inlayhint/LSPDeclarativeInlayActionHandler.java 0.00% 1 Missing ⚠️
...t/devtools/lsp4ij/internal/CompletableFutures.java 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lagergren

Copy link
Copy Markdown
Collaborator Author

The minimum is open again between 2025.1 and 2025.3: see the question in #2038, and #2179, which is simpler with 2025.3. Switching this PR to 2025.3 would change pluginSinceBuild, the verifier's sinceBuild and platformVersion. It would also allow the 2025.2 and 2025.3 cleanups of #1971.

@lagergren

Copy link
Copy Markdown
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.
@fbricon

fbricon commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

I'd require 2025.3, that matches our "support to 1yo" IJ versions policy.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants