Information:11/26/18, 12:32 PM - Compilation compl...
# announcements
t
Information:11/26/18, 12:32 PM - Compilation completed with 1 error and 0 warnings in 1 h 8 m 27 s 315 ms ErrorK [Internal Error] org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression at (47,9) in /Users/tjs/code/kotlin/model-generator/src/test/kotlin/com/juicelabs/fhir/model/TestReportTest.kt
full stack
a
what is your question?
t
not sure I have one, just irritated that this project isn’t usable right now. Kotlin barfing on this generated code. Trying to work up a more trivial use case to demo the issue
a
The important line here is
Caused by: java.lang.OutOfMemoryError: Java heap space
What version of kotlin are you using? Did it work with previous versions?
t
just wrote this code, I’m on the latest version and plugin. I’ll push the whole repo in a bit. It’s a ton of kotlinpoet generated tests of json data parsing against a generated model. So a ridiculous number of assertTrue etc
this class is the main issue
broke the large data set into multiple functions because at around 1k lines it runs out of heap pretty fast
but doing that just delayed the issue
actually the bundle tests are the only ones that blow things up so I can move forward for now. Those are blocked on a gson bug too (filed that one already).
a
8000 lines of asserts 😳 you could try to increase the heap space when doing these tests
t
I did 🙂
yeah, it’s kind of insane
I’m bulding a model from the FHIR HL7 spec and then using their example data to verify.
it’s a big model and a LOT of test data