Open pyricau opened 3 years ago
Thanks for your report. I've tested this and it has something to do with the environment setup. Cause when not using the compose library setup, it works fine. I will investigate further and see if I can find out what exactly is the issue here.
This is happens because of using Kotlin Compose. I have reported this issue here: https://github.com/JetBrains/compose-jb/issues/250
This seems like a compiler issue:
I will keep this open as we should try to find a fix that will work even with this compiler issue existing.
From the compose-jb report:
Maybe you could work it around by putting reflection code into separate module not using Compose compiler plugin.
That's actually somewhat reasonable advice. Creating a separate non compose module for KGraphQL should work.
I'm following the provided example.
I created the following sample code:
When I run this, I get:
My build file:
Note: the sample code has
execute
which is asuspend
function and generates a compiler error: Suspend function 'execute' should be called only from a coroutine or another suspend function so I replaced it withexecuteBlocking
.