Did you forgot to mention return type in your fun getRepos() ?
Specify String and see if it works.
03/20/2020, 10:55 AM
Coroutines don’t work with Compose yet
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
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)
03/20/2020, 1:36 PM
kapt and some suspending code generation has issues in our current kotlinc version
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.