Does the Kotlin scripting JSR223 supports evaluati...
# scripting
r
Does the Kotlin scripting JSR223 supports evaluation of expressions with coroutines? Whenever I use coruotines and sometimes in other scenarios I get in an endless loop at `findLocalVariable:136, ScopeUtilsKt (org.jetbrains.kotlin.resolve.scopes.utils)`:
Copy code
inline fun HierarchicalScope.processForMeAndParent(process: (HierarchicalScope) -> Unit) {
    var currentScope = this
    while (true) {
        process(currentScope)
        currentScope = currentScope.parent ?: break
    }
}
i
It is not yet supported, we plan to add support for it in some (hopefully near) future.
r
I see the same problem when generating top level declarations like objects, classes etc at some point the script engine fails to resolves the scope and it goes into and endless loop there when checking for variables being shadowed. Is this a known problem or should I try to come up with a test case to report it?
i
I do not see any issue like this, so yes, if you have a repro, please report it to YT.
👍 1