Status Update
Comments
st...@google.com <st...@google.com> #2
As far as I can tell, the "Show Kotlin Bytecode" action is an internal debugging tool which in my opinion should never have been exposed to end users.
The
For a more robust "Show Kotlin Bytecode" action we could probably just show the latest build output and notify the user if their build is out of date. However, I'm not sure if this should be an Android Studio issue, since the code is in the Kotlin plugin.
em...@google.com <em...@google.com> #3
sp...@google.com <sp...@google.com> #4
Yes, please file a bug for the IntelliJ Kotlin plugin.
ju...@google.com <ju...@google.com>
em...@google.com <em...@google.com> #5
Filed upstream issue
Description
I used the Tools > Kotlin > Show Kotlin Bytecode tool on a Compose project in androidx. It displayed the untransformed bytecode as if the Compose plugin hadn't been applied.
In this case specifically, I was trying to debug the arity of an @Composable lambda. The Show Kotlin Bytecode tool showed Function0, but the debugger showed a runtime type of Function2. I chatted with the Compose team and they confirmed that it should be transformed into Function2.
Would it be possible to include compiler plugins from the Gradle build in the compilation used by the Show Kotlin Bytecode tool?
Studio Build: AI-221.5921.22.2211.8786657
Version of Gradle Plugin: 7.4.0-alpha08
Version of Gradle: 7.5
Version of Java: 17.0.2
Version of Kotlin: 1.7.20
OS: Linux 5.18.16 amd64