cloud-kotlin-coroutines-annotations fails on Kotlin 2.4.0 with @Flag param
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu với mục nhập stack trace tại KotlinAnnotatedMethods.kt:316 và tái hiện phần khai báo lệnh bằng Kotlin 2.3.20 và 2.4.0, so sánh với Kotlin 2.3.10. Hoàn tất khi lệnh suspend có tham số @Flag thực thi mà không gặp NoSuchFieldError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This happens on executing the command:
java.lang.NoSuchFieldError: Class kotlin.reflect.KParameter$Kind does not have member field 'kotlin.reflect.KParameter$Kind CONTEXT'
at kotlin.reflect.jvm.internal.ReflectKCallableKt.computeAbsentArguments(ReflectKCallable.kt:96) ~[?:?]
at kotlin.reflect.jvm.internal.ReflectKCallableImpl$_absentArguments$1.invoke(ReflectKCallableImpl.kt:13) ~[?:?]
at kotlin.reflect.jvm.internal.ReflectKCallableImpl$_absentArguments$1.invoke(ReflectKCallableImpl.kt:13) ~[?:?]
at kotlin.reflect.jvm.internal.ReflectProperties$LazySoftVal.invoke(ReflectProperties.java:70) ~[?:?]
at kotlin.reflect.jvm.internal.ReflectKCallableImpl.getAbsentArguments(ReflectKCallableImpl.kt:15) ~[?:?]
at kotlin.reflect.jvm.internal.ReflectKCallableKt.callDefaultMethod(ReflectKCallable.kt:133) ~[?:?]
at kotlin.reflect.jvm.internal.ReflectKCallableImpl.default$callBy(ReflectKCallableImpl.kt:70) ~[?:?]
at kotlin.reflect.jvm.internal.ReflectKCallableImpl.callBy(ReflectKCallableImpl.kt:10) ~[?:?]
at kotlin.reflect.full.KCallables.callSuspendBy(KCallables.kt:79) ~[?:?]
at org.incendo.cloud.kotlin.coroutines.annotations.KotlinAnnotatedMethodsKt$executeSuspendFunction$3.invokeSuspend(KotlinAnnotatedMethods.kt:316) ~[?:?]
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[?:?]
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) ~[?:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586) ~[?:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829) ~[?:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717) ~[?:?]
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704) ~[?:?]
Command declaration:
@Command("vnetwork trafficMonitor enable")
@ShortPerm("trafficMonitor")
fun enable(sender: User, @Flag("unit") unit: Unit = Unit.BIT) {
}
Kotlin compiler options:
kotlin {
compilerOptions {
jvmTarget.value(JvmTarget.fromTarget(javaVer.toString())) // JavaVersion.VERSION_11
// Remove Intrinsics checks
freeCompilerArgs.add("-Xno-call-assertions")
freeCompilerArgs.add("-Xno-receiver-assertions")
freeCompilerArgs.add("-Xno-param-assertions")
freeCompilerArgs.add("-java-parameters") // Fix cloud-annotations
}
}
This occurs on Kotlin 2.3.20 too, not a bug on Kotlin 2.3.10
- Ngôn ngữ chính
- Java
- Star
- 546
- Fork
- 61
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Incendo/cloud
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 76/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
Tất cả issue của Incendo/cloud
Issue tương tự
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
erkamyaman/rust-anything#963 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Deferred
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Sanne/incus-spawn#2768 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
morluto/rea#15041 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Spring SDK returns null for successful plain-text String responsesCó thể đã có người làm @Chrisp12138 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày