Skip to content

build: a platform version with a patch number, such as 2026.2.5.1, is read as release 2026 #2313

Done

Description

@lagergren

What happens

build.gradle.kts reads the IntelliJ release of platformVersion like this:

val ideaVersionInt = when {
    // e.g. '20XY.Z'
    platformVersion.length == 6 -> platformVersion.replace(".", "").substring(2).toInt()
    // e.g. '2XY.ABCDE.12'
    else -> platformVersion.substringBefore(".").toInt()
}

A version with a patch number, the form of the versions in IntelliJ's list of releases, is neither, and is read as its
year:

platformVersion Read as Should be
2025.1, 2026.3 251, 263 251, 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 a build against any patch release of 2025.x or 2026.x takes the settings that the build gives 2026.3 and later:
Java 25, the separate debugger modules and the com.intellij.structureView plugin.

  • The nightly's job newest-release tests 2026.3.0.1 today. It passes only because 2026 is above every threshold of
    the build.
  • -PplatformVersion=2026.2.5.1 fails on main (d369a98): Could not find bundled plugin with ID: 'com.intellij.structureView', a plugin that 2026.2 has under another ID.

Users aren't affected: only builds against a patch release are.

Fix

Read the year and the release of any 20XY.Z… version: 2026.2.5.1 is 262, and versions without a patch number and
build numbers keep the release they have now. Commit eacb14d of draft #2042 does this. It was checked on the versions
above, and built against 2026.2.5.1, together with the fix for 2026.2 itself (#2314). It
could come to main on its own.

Activity

  1. added
    bug
    on Nov 27, 2026
  2. added a commit that references this issue on Nov 27, 2026
    916d3d1
  3. added this to the 0.30.2 milestone on Nov 30, 2026
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

    bugbuild

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions