Hi, I'm using kotlinx.coroutines with TornadoFx an...
# coroutines
l
Hi, I'm using kotlinx.coroutines with TornadoFx and the JavaFx artifact, and it worked fine, but today, it is not working but showing this in the logs:
java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize
(without cause logged). What could be the issue?
v
What version of Java and coroutines are you using? Though it is strange, because
cause
should always be logged.
Probably you haven’t included
kotlinx-coroutines-javafx
l
I have this in my dependencies:
Copy code
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-javafx:$kotlinx_coroutines_version"
I'm using Kotlin 1.3.10 and kotlinx.coroutines 1.0.1
Tried a rebuild, but same issue
Here's the stacktrace I get when I swap
Dispatcher.Main
with `Dispatchers.JavaFx`:
v
It is a bug in 1.0.1 🙁 Already fixed in develop
l
So that's why it started to fail, I upgraded. Hopefully, I won't need this app to run before you release a new version with the fix 🙂