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
ilya.chernikov
09/06/2017, 9:31 AM
It is not yet supported, we plan to add support for it in some (hopefully near) future.
r
raulraja
09/06/2017, 9:39 AM
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
ilya.chernikov
09/07/2017, 4:57 PM
I do not see any issue like this, so yes, if you have a repro, please report it to YT.