Open nikita-nazarov opened 8 months ago
Could this plugin still be made available for developers working on kotlin-jvm only modules/libraries within a wider Android project monorepo?
Hi @brighthr-stanton! Ok, I will add it. The only concern is that since the plugin will be available in Android Studio, people will expect this plugin to work in Android Projects. I will add a large warning that it will only work on ordinary JVMs.
Currently the plugin will not work in Android Studio. The reason for that is that internally the plugin relies on a Java agent that enables collecting information about coroutines: where they were created, suspended, resumed etc. Unfortunately it is not possible to attach such agent to the ART VM. However there were attempts to replace the Java agent with the JVMTI one, this implementation never landed.
To implement this feature we can ship the plugin with the JVTI agent that would enable capability to collect information about coroutines.