Is there anyone here who managed to get `watch` to...
# ktor
a
Is there anyone here who managed to get
watch
to work in Ktor? I've been trying for ages but it never works. Right now I get
Module function provided as lambda cannot be unlinked for reload
even though I copied the exact same code from the documentation site:
Copy code
fun main(args: Array<String>) {
    embeddedServer(
            Netty,
            watchPaths = listOf("mydir"),
            port = PORT,
            module = Application::module
    ).start(true)
}
What am I doing wrong?
as it turns out the
watch
doesn't work with an overloaded module function:
Copy code
@kotlin.jvm.JvmOverloads
fun Application.module(testing: Boolean = false)
is there a workaround for this?
m
is the error a runtime or compile time error?
a
runtime
it only happens if my module function is overloaded