teavm
teavm copied to clipboard
java.lang.AssertionError: Variable used before definition
Hello, thank you for TeaVM.
I'm trying to get my project compiled down to WASM after giving up on using JS. When I try to build, I get this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':generateWasm'.
> org.teavm.tooling.builder.BuildException: java.lang.AssertionError: Variable used before definition: @key at $17
My project is primarily built with Kotlin. I was able to get some part of the codebase working while I was using JS. Other parts just crashed without any context. Now I get the above error.
My project is a little big, and its hard to debug or edit the codebase with such debug information. Any guidance will be appreciated.