# compose

Ian Warwick

03/20/2020, 10:01 AM
Any known issues using reflection with Compose, keep getting this simply just trying to get at a function name

Chintan Soni

03/20/2020, 10:32 AM
Did you forgot to mention return type in your fun getRepos() ?
Specify String and see if it works.

Manuel Vivo

03/20/2020, 10:55 AM
Coroutines don’t work with Compose yet
😐 1

Ian Warwick

03/20/2020, 11:16 AM
aha thanks guys yes makes sense if coroutines are broken reflecting on a suspend function might error it, will try that @Chintan Soni thanks
cheers @Manuel Vivo removing suspend solves it, suspend causes the issue thanks

Manuel Vivo

03/20/2020, 11:21 AM
This is because Compose uses the new Kotlin IR compiler 🙂 heard that coroutines support might be coming soon (no timeline on this though)
👍 3

Adam Powell

03/20/2020, 1:36 PM
kapt and some suspending code generation has issues in our current kotlinc version
👍 1
Some things work, suspend+inline usually doesn't

Leland Richardson [G]

03/20/2020, 3:27 PM
For additional context: We have been working on rebasing kotlinc with upstream master for quite some time now, which should make coroutines work, but there have been some changes made to the backend of the compiler that broke a lot of our plugin that we are working through right now with JetBrains.
👍 8