dataframe icon indicating copy to clipboard operation
dataframe copied to clipboard

Update to Kotlin 2.2+

Open Jolanrensen opened this issue 1 year ago • 2 comments

Bumping this requires:

  • [ ] some fixes in the :expression-converter plugin (https://github.com/Kotlin/dataframe/pull/997, can only be merged after updating to 2.1)
  • [x] fixing the :generator plugin to workers (https://github.com/Kotlin/dataframe/pull/996)
  • [x] Updating Gradle to 8.11 https://docs.gradle.org/current/userguide/compatibility.html (for our gradle plugin) (https://github.com/Kotlin/dataframe/pull/1001)
  • [x] updating jupyter by moving it to a separate module first: https://github.com/Kotlin/dataframe/issues/775
    • (Line_0.jupyter.kts (13:48 - 64) Class 'org.jetbrains.kotlinx.dataframe.jupyter.ImportDataSchema' was compiled with an incompatible version of Kotlin. The actual metadata version is 2.1.0, but the compiler version 1.9.0 can read versions up to 2.0.0.)

EDIT: Apparently, DataFrame cannot target Kotlin 2.1 until the Kotlin Jupyter kernel/notebooks fully support K2. They are planning around February for this.

EDIT2: Jupyter 0.12.0-356 should be compatible with DataFrame targeting 2.1.0 :D

Jolanrensen avatar Dec 10 '24 11:12 Jolanrensen

Gradle 8.11.1 has been released. Don't forget to run the gradle wrapper task to update the wrapper jar & scripts. image

Omico avatar Dec 11 '24 06:12 Omico

After trying to update to Kotlin 2.1 in https://github.com/Kotlin/dataframe/pull/997, I bumped into more and more issues, especially regarding our infrastructure.

I would seriously consider dropping our dogfooding approach with the gradle plugin, especially since we're gonna drop it in favor of the compiler plugin. Not only is the KSP version causing issues, but the actual Kotlin Gradle plugin is clashing because it has multiple mismatching versions on the classpath.

Jolanrensen avatar May 27 '25 12:05 Jolanrensen