Hello guys. I am trying to run my ktor app and I a...
# ktor
j
Hello guys. I am trying to run my ktor app and I am getting this error
Your current kotlinx.serialization core version is 2.0.20, while current Kotlin compiler plugin unknown requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency.
I can't figure out why Kotlin Serialization is throwing this error. This is the class throwing the error but if i remove the annotation, it works fine
Copy code
import kotlinx.serialization.Serializable

@Serializable
data class User(
    val id: Int,
    val uuid: String,
    val firstName: String,
    val lastName: String,
    val otherNames: String?,
    val phone: String,
    val email: String?,
    val role: String,
    val createdAt: String,
    val updatedAt: String,
    val token: String,
)
a
What version of the Kotlin plugin do you use?
l
same here, version 2.0.21
found that if add scheduller extension in https://start.ktor.io/settings
it will repruduce it
a
I get the following exception while running an application generated with the
Ktor-server-task-scheduling-core
plugin:
Copy code
Exception in thread "main" java.lang.NoSuchMethodError: 'kotlinx.io.files.Path kotlinx.io.files.FileSystem.resolve(kotlinx.io.files.Path)'
	at io.ktor.server.engine.ServerEngineUtilsKt.<clinit>(ServerEngineUtils.kt:9)
	at io.ktor.server.application.ServerConfigBuilder.<init>(Application.kt:27)
	at io.ktor.server.application.ApplicationKt.serverConfig(Application.kt:78)
	at io.ktor.server.engine.CommandLineKt.CommandLineConfig(CommandLine.kt:53)
	at io.ktor.server.netty.EngineMain.main(EngineMain.kt:20)
	at com.example.ApplicationKt.main(Application.kt:7)