Fixed
Status Update
Comments
st...@gmail.com <st...@gmail.com> #2
st...@gmail.com <st...@gmail.com> #3
To clarify as in, has not reached Google maven, but should be part of the beta02 release.
gg...@gmail.com <gg...@gmail.com> #4
I also see this error for queries returning models with relations:
data class ParentWithChild(
@Embedded val parent: Parent,
@Relation(
parentColumn = "id",
entityColumn = "parentId"
)
val child: Child
)
[ksp] [MissingType]: Element 'com.example.ParentWithChild' references a type that is not present
st...@gmail.com <st...@gmail.com> #5
ku...@google.com <ku...@google.com> #6
Hi, Steven, thanks for filling the bug and the workaround! This should be due to a KSP or Kotlin issue with default values:
Description
When I enable KSP2 through gradle.properties (ksp.useKSP2=true), I get errors when compiling a Room database that uses a serialized entity.
It's as simple as having this entity:
And this database:
Minimal reproducible repository:https://github.com/stevenzeck/KspIssueRepo . If you remove
ksp.useKSP2
, it works fine. If you remove@Serializable
in the entity, it works fine. If you keep@Serializable
and remove the Room annotations, it works fine.