krzema12 / snakeyaml-engine-kmp

A Kotlin Multiplatform port of snakeyaml-engine
Apache License 2.0
19 stars 1 forks source link

Kotlin 2.0.0 #187

Closed aSemy closed 1 month ago

aSemy commented 1 month ago
aSemy commented 1 month ago

I've experimented briefly, but I think IntelliJ doesn't support K2 very well. I kept seeing IDE errors about kotlin.Unit not being found.

krzema12 commented 1 month ago

I've experimented briefly, but I think IntelliJ doesn't support K2 very well. I kept seeing IDE errors about kotlin.Unit not being found.

Do you know if this issue is tracked somewhere? As you spend more time in the code base, so you find it a blocker for merging this PR? I use Kotlin 2.0 in github-workflows-kt and haven't noticed this problem.

aSemy commented 1 month ago

Do you know if this issue is tracked somewhere? As you spend more time in the code base, so you find it a blocker for merging this PR? I use Kotlin 2.0 in github-workflows-kt and haven't noticed this problem.

So K2 works - but IntelliJ's K2 mode doesn't work for KMP projects https://blog.jetbrains.com/idea/2024/03/k2-kotlin-mode-alpha-in-intellij-idea/. So, just don't enable K2 in IntelliJ for now. I couldn't find a YouTrack issue...

aSemy commented 1 month ago

Here's the ticket for K2 KMP support in IJ https://youtrack.jetbrains.com/issue/KTIJP-6