MoshiX icon indicating copy to clipboard operation
MoshiX copied to clipboard

Fallback adapter type's primary constructor can only have a Moshi parameter

Open overfullstack opened this issue 1 year ago • 2 comments

A Test to replicate this

I am not able to run this test as I get this error.

e: file:///Users/gopala.akshintala/code-clones/my-github/my-lab/moshi/src/test/kotlin/ga/overfullstack/adapter/MessageTest.kt:32:3 Fallback adapter type's primary constructor can only have a Moshi parameter

I took this example from moshix-sealed sample. But I get the same error when I paste this test in moshi-kotlin-tests and execute it

overfullstack avatar Feb 03 '24 11:02 overfullstack

Can you paste the stacktrace of the error you're referring to?

ZacSweers avatar Feb 03 '24 16:02 ZacSweers

@ZacSweers this is the only stacktrace I find, even with running the test with --stacktrace. Is there anyway I can debug the plugin code?

e: file:///Users/gopala.akshintala/code-clones/my-github/my-lab/moshi/src/test/kotlin/ga/overfullstack/adapter/MessageTest.kt:32:3 Fallback adapter type's primary constructor can only have a Moshi parameter

To ruleout the possibility of any setup issue on my repository, I copy pasted the same test into MoshiX repository, right in this package: moshi-kotlin-tests and you should be able to reproduce the issue.

overfullstack avatar Feb 04 '24 02:02 overfullstack