New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated GQL client causes kotlinx.serialization
compiler recursion error
#1625
Comments
@holzerch have you found a workaround for this? I've tried playing with a lot of versions but have not come up with a winning combination yet |
sadly no. I went back to Jackson and really wondering how this can work for anyone else |
Hey Derek, thanks for the explanation. I wasn't aware of that. Since I don't want to downgrade my Kotlin version to 1.6, I tried the v7 alpha version sadly without success. The problem is still the same, which is no surprise since the generated code looks the same. |
Can you provide a link to a repository that reproduces this issue? Tests within the repo seems to be fine |
@holzerch v7 alpha version does not contain the changes @dariuszkuc mentioned
we can probably release another alpha or you can publish to your local repository and try it. |
@samuelAndalon could you please release the current state of the v7 as another alpha? |
@dariuszkuc Here is a repo to reproduce the error. Just run |
Hello 👋 Removing Kotlin Spring plugin (but keeping serialization and Spring Boot plugins) seems to work. Thanks, |
Thanks for digging up the root cause @dariuszkuc
Since this is breaking change maybe it would be something for version 7? |
Library Version
Kotlin Version: 1.8.0 (also tested 1.7.20)
Describe the bug
After switching from Jackson to kotlinx.serialization the generated code no longer compiles. It fails in the step
kotlinCompile
with the exception.The generated code looks like this
The problem seems to be related to the nested class
Result
. After moving it outside ofCreateFulfilmentOption
the error is goneTo Reproduce
Generate client code with
kotlinx
serialiser and try to compile with the described version.Expected behavior
The generated code compiles
The text was updated successfully, but these errors were encountered: