With Kotlin 2.1.0-RC, I’m seeing some weird issues...
# eap
c
With Kotlin 2.1.0-RC, I’m seeing some weird issues with native builds, coroutines, and the new annotations for SubclassOptInRequired which are failing my build.
youtrack 1
1
Copy code
> Task :common-blob-file-lib:linkDebugTestMacosArm64
i: <org.jetbrains.kotlinx:kotlinx-coroutines-core> @ /opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/CancellableContinuation.kt:1:1: Constructor 'SubclassOptInRequired.<init>' can not be called: No constructor found for symbol 'kotlin/SubclassOptInRequired.<init>|<init>(kotlin.reflect.KClass<out|kotlin.Annotation>){}[0]'
i: <org.jetbrains.kotlinx:kotlinx-coroutines-core> @ /opt/buildAgent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/CancellableContinuation.kt:44:1: Unusable annotation 'SubclassOptInRequired.<init>' has been removed from interface 'CancellableContinuation'
i: <missing declarations>: No constructor found for symbol 'kotlin/SubclassOptInRequired.<init>|<init>(kotlin.reflect.KClass<out|kotlin.Annotation>){}[0]'
t
please create a new Kotlin issue with repro
Reproducer attached as comment with jetbrains team visiblity. It shouldn’t have anything sensitive, but just in case since it was a distillation from a much larger project.
t
cc @svyatoslav.scherbina
c
Is it just noise? I’m seeing my tests actually hang.
That’s OK if we have to wait for a new Coroutines release post Kotlin 2.1, but for now this seems to block testing Kotlin 2.1.0-RC with my native targets.
p
If it's only about SubclassOptInRequired it's just an unfortunate noise.
I see, the hang looks unrelated problem, maybe it's already known and planned to be fixed in RC2, I'll check
Are you sure this supposed to work? For me it doesn't work on either • K/N 2.0 • K/N 2.0.20 • K/JVM 2.1.0
c
I think that was a mistake when I was trying to distill down from a larger project.
I am able to get this to run now. I was running into multiple other Kotlin 2.1-RC issues simultaneously, which caused some confusion.
Thanks for you help looking at this.
p
So, is there any problem except noisy messages?
c
Correct, false alarm about the tests hanging. I’m pretty sure it was something unrelated.