Skip to content

Kotlin 2.2 #1286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 3, 2025
Merged

Kotlin 2.2 #1286

merged 9 commits into from
Jul 3, 2025

Conversation

Jolanrensen
Copy link
Collaborator

@Jolanrensen Jolanrensen commented Jun 27, 2025

Fixes #995

  • Bumps Kotlin and KSP to 2.2
  • Bumps kotlinpoet and dokka as well
  • Moving to dev.zacsweers.kctfork for build testing with ksp
  • Fixes for all plugins
  • Disabled all tests for the compiler plugin, because Remove the compiler plugin from this repo in favor /JetBrains/kotlin #1290
  • Bumps jupyter to 0.13.0-481-1 as it's the latest version that does not rely on a kotlin dev version atm

@Jolanrensen Jolanrensen added the infrastructure GitHub actions, Gradle Scripts, Writerside, etc. label Jun 27, 2025
@Jolanrensen Jolanrensen force-pushed the kotlin-2.2 branch 6 times, most recently from 8b5f085 to 5d92e20 Compare July 1, 2025 11:36
@Jolanrensen Jolanrensen marked this pull request as ready for review July 1, 2025 14:23
@@ -21,6 +22,7 @@ abstract class KeywordsGeneratorAction : WorkAction<KeywordsGeneratorAction.Para
private val taskPackageName = "org.jetbrains.kotlinx.dataframe.keywords"

override fun execute() {
println("Generating keywords using Kotlin compiler: ${KotlinCompilerVersion.getVersion()}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

println? Is it a debug stuff?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I think it's helpful enough. It only runs during the build and it can help us detect whether we've updated our keywords generator version

dependsOn(*generationTasks.toTypedArray())
}
tasks.withType(KspAATask::class.java).configureEach {
error(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe log.error will be enough?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, but in my experience, if KspAATask runs, you get very unhelpful class cast exceptions somewhere during the build process. It's hard to then scroll back to find this specific error log and figure out that is causing the class cast exception.

So, if KspAATask runs, the user cannot have ksp.useKSP2=false, and thus the dataframe plugin will fail at some point anyway. Better to let it fail early with a helpful error message :)

@Jolanrensen Jolanrensen merged commit 2411386 into master Jul 3, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure GitHub actions, Gradle Scripts, Writerside, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Kotlin 2.2+
4 participants