Skip to content

build: LSP4IJ builds against IntelliJ 2026.2, and against releases with a patch number - #2316

Merged
lagergren merged 2 commits into
redhat-developer:mainfrom
lagergren:fix/build-against-patch-releases-and-2026-2
Nov 27, 2026
Merged

lagergren merged 2 commits into
redhat-developer:mainfrom
lagergren:fix/build-against-patch-releases-and-2026-2

Conversation

@lagergren

Copy link
Copy Markdown
Collaborator

Fixes #2313
Fixes #2314

Two fixes to the build, taken from draft #2042 for main. The nightly job that #2042 adds found them.

Users aren't affected. The plugin they install is built against IntelliJ 2024.2, and the plugin verifier on main
finds it compatible with 2026.2 (IU-262.12573.58). The fixes change only what happens when LSP4IJ itself is built or
tested against these releases.

Behaviour change

Before After
./gradlew … -PplatformVersion= a 2026.2 release, or a release with a patch number such as 2025.2.6.5, fails to build They build, with the settings of their own release

The two commits, to be rebase-merged

  1. build: a platform version with its patch number, such as 2026.2.5.1, builds against the modules of its own
    release
    (build: a platform version with a patch number, such as 2026.2.5.1, is read as release 2026 #2313). The build read the release of such a version as its year:

    platformVersion Before After
    2024.2, 2025.3, 2026.3 242, 253, 263 242, 253, 263
    263.8311.100-EAP-SNAPSHOT 263 263
    2026.3.0.1 2026 263
    2026.2.5.1 2026 262
    2025.2.6.5 2025 252

    So it gave the settings of 2026.3 to any patch release of 2025.x and 2026.x. The nightly's newest-release job
    tests 2026.3.0.1 today, and passes only because 2026 is above every threshold of the build.

  2. build: LSP4IJ builds against IntelliJ 2026.2, with Java 25 and the debugger modules and structure view plugin of
    2026.2
    (build: LSP4IJ doesn't build against IntelliJ 2026.2: Java 25, the debugger modules and the structure view plugin are taken from 2026.3 on only #2314). ci: test on IntelliJ 2025.3 and 2026.3 too, on Linux #1931 gave these to 2026.3 and later only (ideaVersionInt >= 263). But 2026.2 needs them too:

    • its classes are Java 25 classes (class file version 69);
    • its debugger API is in the same four modules;
    • its structure view is a plugin of its own, intellij.structureView.plugin, which 2026.3 renamed
      com.intellij.structureView, keeping the old ID as an alias.

    It's now >= 262, with the plugin's ID chosen by release. 2026.1 builds with the settings of 2025.x, as before.

Tests

Compiling the main and the test code, as IntelliJ IDEA Ultimate (-PplatformType=IU):

-PplatformVersion main (d369a98) This PR
2026.2.5.1 fails: Could not find bundled plugin with ID: 'com.intellij.structureView' compiles
2025.2.6.5 fails: Could not find bundled plugin with ID: 'com.intellij.structureView', read as release 2025 compiles

The versions that CI builds against (2024.2, 2025.3, 2026.3) and build numbers keep the release they had, so its
jobs are unchanged. #2042 ran the same two fixes in the nightly on a fork: 2025.2.6.5 passes ./gradlew check.

…builds against the modules of its own release

The build read the release of `-PplatformVersion=2026.2.5.1`, the form of the versions in IntelliJ's list of releases,
as 2026, and so took the debugger modules, the structure view plugin and the Java 25 toolchain of 2026.3 for any patch
release of 2025.x and 2026.x. It now reads 262. Versions such as 2025.1 and 2026.3, and build numbers such as
263.8311.100-EAP-SNAPSHOT, give the same release as before.

Fixes redhat-developer#2313
…bugger modules and structure view plugin of 2026.2

The build took Java 25, the debugger modules and the structure view plugin only from 2026.3 on, but 2026.2 already
has them: its classes are Java 25 classes, its debugger API is in the same four modules, and its structure view is a
plugin of its own, intellij.structureView.plugin, which 2026.3 renamed com.intellij.structureView. So a build against
2026.2, as the nightly's supported-releases job runs, failed to compile ("class file has wrong version 69.0, should
be 65.0"). No build tested 2026.2 before.

Fixes redhat-developer#2314
@lagergren lagergren added this to the 0.30.2 milestone Nov 27, 2026
@lagergren lagergren added bug Something isn't working build labels Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Compatibility
    • Added support for platform version 262 for debugger and structure-view features.
    • Updated structure-view compatibility across platform versions 262 and later.
    • Improved handling of platform version numbers, including versions with patch components.
    • Updated the Kotlin build toolchain to use Java 25 starting with platform version 262.

The Gradle build now parses platform versions with patch components and applies the Java toolchain, debugger module, and structure-view plugin settings from platform release 2026.2.

Changes: Platform build configuration

Layer / File(s) Summary
Parse platform release versions
build.gradle.kts
The build parses 20YY.<minor> versions with optional numeric components as a release number. Other formats continue to use the existing fallback.
Configure platform 2026.2 and later
build.gradle.kts
The debugger modules and structure-view plugin configuration now apply from release 262. The plugin ID changes at release 263. The Java 25 toolchain now applies from release 262.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: sbouchet, angelozerr

Merge Risk: Minimal · up to 2b5cc

This change only affects how the plugin is built and tested against newer IntelliJ platform releases, not the installed plugin. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two changes in the PR: parsing patch-release platform versions (e.g. 2026.2.5.1) to the correct release, and building against IntelliJ 2026.2 with its Java 25, debugger modules, an…
Description check Passed The description covers the two build fixes, the affected platform versions, the before/after behaviour table, the commit breakdown, and the test results. It is directly related to the build.gradle.kts…
Linked Issues check Passed [#2313] The head build.gradle.kts parses 20XY.Z[.patch…] versions with the regex 20\\d\\d\\.\\d+(\\.\\d+)* and computes the release from the year's last two digits and the minor version. Traced values…
Out of Scope Changes check Passed The changes described in the summary and PR description are limited to the platform version parsing, the >= 262 gates for the debugger modules, the structure view plugin ID, and the Java 25 toolchai…
Full details: Title check

Explanation

The title names the two changes in the PR: parsing patch-release platform versions (e.g. 2026.2.5.1) to the correct release, and building against IntelliJ 2026.2 with its Java 25, debugger modules, and structure-view plugin. The raw summary confirms both changes in build.gradle.kts, so the title matches the changeset.

Full details: Description check

Explanation

The description covers the two build fixes, the affected platform versions, the before/after behaviour table, the commit breakdown, and the test results. It is directly related to the build.gradle.kts changes.

Full details: Linked Issues check

Explanation

[#2313] The head build.gradle.kts parses 20XY.Z[.patch…] versions with the regex 20\d\d\.\d+(\.\d+)* and computes the release from the year's last two digits and the minor version. Traced values: 2026.2.5.1 gives 262, 2025.2.6.5 gives 252, 2026.3.0.1 gives 263, 2026.3 gives 263, 2025.1 gives 251. 263.8311.100-EAP-SNAPSHOT does not match the regex and falls through to substringBefore('.'), giving 263. This meets the table in #2313.

[#2314] The head file sets ideaVersionInt &gt;= 262 for the debugger modules (intellij.platform.debugger, .impl, .impl.shared, .impl.ui) and for the structure view plugin. The plugin ID is intellij.structureView.plugin below 263 and com.intellij.structureView from 263. The Kotlin jvmToolchain uses Java 25 from 262 and Java 21 below. 2026.1 (261) keeps the 2025.x settings. This meets the fix described in #2314.

Limits: I could not read the base-to-head text diff (changed blobs unavailable). The code evidence comes from the head file and the supplied summary. I did not run the Gradle builds or tests. The compile results in the PR description are author-reported and unverified here.

Full details: Out of Scope Changes check

Explanation

The changes described in the summary and PR description are limited to the platform version parsing, the &gt;= 262 gates for the debugger modules, the structure view plugin ID, and the Java 25 toolchain in build.gradle.kts. Each change implements #2313 or #2314. The head file's comments and its other sections (testJavaScript task, test fork settings, plugin verification) are not part of the described changes. The base-to-head text diff could not be read, so this verdict relies on the summary and on the head file content, not on a complete diff comparison.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a2cf5122-5558-4d1f-b1f3-236ba386eda1
Commits

Reviewing files that changed from the base of the PR and between d369a98 and 2b5ccb4.

Files selected for processing: 1

  • build.gradle.kts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.64%. Comparing base (d369a98) to head (2b5ccb4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2316      +/-   ##
==========================================
- Coverage   58.64%   58.64%   -0.01%     
==========================================
  Files         848      848              
  Lines       36674    36674              
  Branches     7603     7603              
==========================================
- Hits        21508    21506       -2     
- Misses      12166    12168       +2     
  Partials     3000     3000              

☔ 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
lagergren merged commit bdf5d7b into redhat-developer:main Nov 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working build

Projects

None yet

1 participant