Skip to content

Building and testing LSP4IJ against IntelliJ 2026.x needs more than #1906 #1908

Closed

Description

@lagergren

Follow-up to #1903. #1906 makes LSP4IJ compile against IntelliJ 2025.3. Building against 2026.3 (263.7307.200) needs more, found by building #1906's branch (fd499633) against it, with the changes below made in a scratch copy.

Users aren't affected: the plugin built against 2024.2 is what they install, and the plugin verification finds it compatible with 2026.3 (2 usages of API scheduled for removal, 54 of deprecated API). The classes that don't resolve below have moved to other modules; the APIs that LSP4IJ uses haven't changed. For example, XSourcePositionEx and XSourcePosition are the same in 2024.2 and 2026.3.

What building against 2026.3 needs

  1. A Java 25 toolchain. The classes of the 2026.x platform are Java 25 (class file version 69), which the Java 21 toolchain can't read: bad class file … class file has wrong version 69.0, should be 65.0. The output has to stay Java 21 for the older platforms, for instance with options.release = 21, which wasn't tried.
  2. The IU platform type. IntelliJ IDEA Community (IC) isn't published after 2025.3. It still is: ideaIC has 2026.1 to 2026.3, see the correction. With the IntelliJ Platform Gradle plugin 2.19.0, -PplatformType=IU -PplatformVersion=2026.3 resolves the unified IntelliJ IDEA (com.jetbrains.intellij.idea:idea).
  3. Modules that 2026.x ships separately. With these, all of the main code compiles against 2026.3 unchanged:
    • bundledModule("intellij.platform.debugger"), "intellij.platform.debugger.impl", "intellij.platform.debugger.impl.shared" and "intellij.platform.debugger.impl.ui", for com.intellij.xdebugger.* (XSourcePositionEx is in impl.ui);
    • bundledPlugin("com.intellij.structureView"), for com.intellij.ide.structureView.impl.common.
  4. Three tests.
    • MarkdownConverterTest uses com.intellij.lang.xml.XMLLanguage, which needs the XML module declared too.
    • WorkspaceEditVersionTest creates a DocumentEventImpl, whose constructor takes CharSequences and one more int in 2026.3.
    • CodeActionsOnTheEdtTest calls EditorTracker.setActiveEditors, which 2026.3 doesn't have.

Running the tests on 2026.3

With 1 to 3 and the three tests set aside, the full suite on 2026.3 has 1513 tests, 74 failures and 7 skipped:

Activity

  1. lagergren commented on Nov 10, 2026

    @lagergren
    CollaboratorAuthor

    A correction to item 2: IntelliJ IDEA Community is still published after 2025.3, at least to the repository that the IntelliJ Platform Gradle plugin uses. com.jetbrains.intellij.idea:ideaIC has 2026.1 to 2026.3, and ideaIC-2026.3.zip is a distribution of its own, 630 MiB, against 1,460 MiB for the unified IntelliJ IDEA (idea and ideaIU). What changes with 2025.3 is that the unified IntelliJ IDEA (idea) starts there, and the Gradle plugin's list of product releases (printProductsReleases) names only IU from 2025.3 on. Whether LSP4IJ builds and tests against IC 2026.3 isn't tried.

    #1931 builds against 2026.3 and tests on the unified IntelliJ IDEA 2026.3 (IU). It disables the JavaScript and CSS plugins in the test sandbox of every version, which changes nothing in Community, which has neither.

  2. lagergren commented on Nov 10, 2026

    @lagergren
    CollaboratorAuthor

    One more correction, to the first test of item 4: MarkdownConverterTest turned out not to need the XML module declared. With the build changes of #1931, it compiles against the unified IntelliJ IDEA 2026.3 as it is, and its 12 tests pass there, locally and in the 2026.3 job of #1931's CI. So of the three tests, only WorkspaceEditVersionTest and CodeActionsOnTheEdtTest needed changes, and #1931 makes them.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions