square / square/wire

Error on Message.Builder subclass when running compileCommonMainKotlinMetadata This error should be fixed in the 4.8.1 build.

Open
#3,294 6 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.