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

Improve errors and diagnostics #152

Closed
martinbonnin opened this issue Aug 30, 2021 · 1 comment · Fixed by #601
Closed

Improve errors and diagnostics #152

martinbonnin opened this issue Aug 30, 2021 · 1 comment · Fixed by #601
Labels

Comments

@martinbonnin
Copy link
Contributor

I had a leftover (wrong) @JsonAdapter annotation:

@JsonClass(generateAdapter = true, generator = "sealed:kind")
data class MyClass(val prop1: String, val prop2: Int)

The error in this case is:

> Task kspKotlin FAILED
e: [ksp] java.lang.IllegalStateException: Must be a sealed class!

It would be nice if the error included the source location where it is.

@ZacSweers
Copy link
Owner

Hmm, it should be reporting that. I'll double check

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

Successfully merging a pull request may close this issue.

2 participants