Error on Message.Builder subclass when running compileCommonMainKotlinMetadata This error should be fixed in the 4.8.1 build.
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 4.4k
- Forks
- 627
- Avg merge
- 3d 15m
- Merged PRs (30d)
- 20
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Android and iOS model generation flow and running the compileCommonMainKotlinMetadata task. Inspect the generated shared/build/generated/source/wire/human/Person.kt at the reported lines and verify that the task succeeds with the fix in the 4.8.1 build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100