You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to exec task runNative for Korge-enabled project koboldQueue, exception is thrown during compileKotlinLinux64:
/build/platforms/native-desktop/bootstrap.kt: (5, 98): This declaration is experimental and its usage must be marked with '@kotlin.time.ExperimentalTime' or '@OptIn(kotlin.time.ExperimentalTime::class)'
opening bootstrap.kt, main() within fun runMain(args: Array<String>): Unit = com.soywiz.korio.Korio { main() } suggests adding @ExperimentalTime annotation, likely due to koboldQueue using the same annotation in its top-level suspend fun main() function.
After adding the annotation to main() in bootstrap.kt, IntelliJ warns Generated source files should not be edited. The changes will be lost when sources are regenerated, and sure enough, the annotations disappear upon re-running runNative, creating a state where runNative cannot complete successfully due to overwriting the required annotations.
Expected behavior:
Korge build process would scan top-level project main() function and apply found annotations to wrapper objects / functions as needed, such as RootGameMain as found in bootstrap.kt
The text was updated successfully, but these errors were encountered:
Actual behavior:
Attempting to exec task runNative for Korge-enabled project koboldQueue, exception is thrown during compileKotlinLinux64:
/build/platforms/native-desktop/bootstrap.kt: (5, 98): This declaration is experimental and its usage must be marked with '@kotlin.time.ExperimentalTime' or '@OptIn(kotlin.time.ExperimentalTime::class)'
opening bootstrap.kt,
main()
withinfun runMain(args: Array<String>): Unit = com.soywiz.korio.Korio { main() }
suggests adding@ExperimentalTime
annotation, likely due to koboldQueue using the same annotation in its top-levelsuspend fun main()
function.After adding the annotation to
main()
in bootstrap.kt, IntelliJ warnsGenerated source files should not be edited. The changes will be lost when sources are regenerated
, and sure enough, the annotations disappear upon re-running runNative, creating a state where runNative cannot complete successfully due to overwriting the required annotations.Expected behavior:
Korge build process would scan top-level project
main()
function and apply found annotations to wrapper objects / functions as needed, such asRootGameMain
as found in bootstrap.ktThe text was updated successfully, but these errors were encountered: