-
Notifications
You must be signed in to change notification settings - Fork 578
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
Error on Message.Builder subclass when running compileCommonMainKotlinMetadata This error should be fixed in the 4.8.1 build. #3294
Comments
Can you share both the proto definition and the generated code that fails at compilation? |
Compilation error e: file:///.../wiretest/build/generated/source/wire/human/Person.kt:83:58 This class does not have a constructor person.proto
Generated kotlin file
|
We found a similar issue in the issue list and noticed that you fixed it in version 5.3.0. However, since we haven’t upgraded to Kotlin 2.0 yet, so we need this fix in the 4.8.1 build. Please check: #2707 |
If #2707 has your fix, you could use |
We cannot use this version because we are unable to upgrade to Kotlin 1.8.20. |
Unfortunately we might only add bug fixes to 4.9.x or later versions. Hopefully you'll be able to upgrade to more recent versions of Kotlin and bump Wire as well. |
I'm trying to generate models for Android and iOS targets. The plugin generates (seemingly correct) code but there's an error on compileCommonMainKotlinMetadata task where it errors out with the error below:
`> Task :shared:compileCommonMainKotlinMetadata FAILED
e: file:///.../wiretest/shared/build/generated/source/wire/human/Person.kt:85:58 This class does not have a constructor
e: file:///.../wiretest/shared/build/generated/source/wire/human/Person.kt:230:65 This class does not have a constructor`
We need the fix in the particular version, because of the kotlin dependency
The text was updated successfully, but these errors were encountered: