-
Notifications
You must be signed in to change notification settings - Fork 764
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
KSP2 crash when using @JsonQualifier #1874
Comments
Upstream KSP2 bug, please file with them |
This is caused by a breaking change in KSP2. @ZacSweers could this copy be deleted and let moshi use the implementation from KSP? |
Removing it doesn't seem to break any tests: |
Can this bug be reopened as this is clearly a Moshi bug as it is the moshi |
The linked fix isn't a useable fix because it's an unstable API. A more appropriate one would be to update the copied impl to the new one |
While migrating to Koline 2.x I had to fallback to moshi-ksp from moshi-ir because of this IR issue and now I am stuck on the above error. Is there any quick fix as the IR one will be fixed in Kotlin 2.1.20 |
Yes, just keep using KSP 1 instead of KSP 2, as only KSP 2 is impacted by this issue. |
I'm not sure I get the 'unstable API' argument. Using an unstable API can cause mochi to stop working when updating KSP, but this is the same as copying the file, as updating KSP to a version with a different |
When trying to generate Adapter for classes using a @JsonQualifier, KSP fails with the error:
The class being compiled is simply:
You can use this reduced test case to reproduce the bug.
The text was updated successfully, but these errors were encountered: