Repository navigation
build: LSP4IJ builds against IntelliJ 2026.2, and against releases with a patch number - #2316
Merged
lagergren merged 2 commits intoNov 27, 2026
Conversation
…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
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This was referenced Nov 27, 2026
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.
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
mainfinds 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
./gradlew … -PplatformVersion=a 2026.2 release, or a release with a patch number such as2025.2.6.5, fails to buildThe two commits, to be rebase-merged
build:a platform version with its patch number, such as 2026.2.5.1, builds against the modules of its ownrelease (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:
platformVersion2024.2,2025.3,2026.3263.8311.100-EAP-SNAPSHOT2026.3.0.12026.2.5.12025.2.6.5So it gave the settings of 2026.3 to any patch release of 2025.x and 2026.x. The nightly's
newest-releasejobtests
2026.3.0.1today, and passes only because 2026 is above every threshold of the build.build:LSP4IJ builds against IntelliJ 2026.2, with Java 25 and the debugger modules and structure view plugin of2026.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:intellij.structureView.plugin, which 2026.3 renamedcom.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):-PplatformVersionmain(d369a98)2026.2.5.1Could not find bundled plugin with ID: 'com.intellij.structureView'2025.2.6.5Could not find bundled plugin with ID: 'com.intellij.structureView', read as release 2025The versions that CI builds against (
2024.2,2025.3,2026.3) and build numbers keep the release they had, so itsjobs are unchanged. #2042 ran the same two fixes in the nightly on a fork: 2025.2.6.5 passes
./gradlew check.