Skip to content
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

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

Closed
overfullstack opened this issue Feb 3, 2024 · 2 comments · Fixed by #600
Closed

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

overfullstack opened this issue Feb 3, 2024 · 2 comments · Fixed by #600

Comments

@overfullstack
Copy link

overfullstack commented Feb 3, 2024

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

@ZacSweers
Copy link
Owner

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

@overfullstack
Copy link
Author

overfullstack commented Feb 4, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants