<@U0CHHN4F4> The important piece is at: ``` at or...
# scripting
r
@ilya.chernikov The important piece is at:
Copy code
at org.jetbrains.kotlin.resolve.scopes.utils.ScopeUtilsKt.findLocalVariable(ScopeUtils.kt:140)
	  at org.jetbrains.kotlin.resolve.scopes.utils.ScopeUtilsKt.findLocalVariable(ScopeUtils.kt:68)
	  at org.jetbrains.kotlin.resolve.scopes.utils.ScopeUtilsKt.findLocalVariable(ScopeUtils.kt:68)
	  at org.jetbrains.kotlin.resolve.scopes.utils.ScopeUtilsKt.findLocalVariable(ScopeUtils.kt:68)
	  at org.jetbrains.kotlin.resolve.scopes.utils.ScopeUtilsKt.findLocalVariable(ScopeUtils.kt:68)
...
There is an endless loop trying to resolve variables. New branch available that has the snippets uncommented and causes the script engine to hang in what it is a simple evaluation. https://github.com/kategory/kategory/compare/rr-script-engine-hangs?expand=1#diff-9f6f2118c1b519c61cab15ddc98919c6R143 Steps to repro: git clone https://github.com/kategory/kategory.git cd kategory ./gradlew kategory docsclean kategory docsrunAnk This can be easily observed and inspected in memory in a debug session pausing the debugger once the output stops after a few mins evaling snippets.