Status Update
Comments
da...@google.com <da...@google.com>
ku...@google.com <ku...@google.com> #2
there are some image for help
sc...@gmail.com <sc...@gmail.com> #3
hello?
ku...@google.com <ku...@google.com> #4
sc...@gmail.com <sc...@gmail.com> #5
I'm still seeing the error. I'll see if I can create up with a repro project.
sc...@gmail.com <sc...@gmail.com> #6
The issue only occurs when the value class is nullable
For example the following fails with the error above, but if I comment out val myId: MyId?
it compiles.
@JvmInline
value class MyId(val id: Long)
@Entity
data class MyEntity(
@PrimaryKey
val id: MyId,
val myId: MyId?
)
@Database(
version = 1,
entities = [MyEntity::class]
)
abstract class AppDatabase : RoomDatabase() {
}
I attached a project that reproduces this issue.
ku...@google.com <ku...@google.com> #7
Thanks for the repro. This is due to an issue in KSP2 filed here:
sc...@gmail.com <sc...@gmail.com> #8
It's been more than a month since the KSP issue was created. It seems like there hasn't been any progress made. Is there anyway to increase the priority of this issue on the KSP side?
Description
Component used: Room Compiler Versions used:
ksp.useKSP2=true
Room compiler fails to generate classes for entities with inline classes when using KSP 2.
Example entity:
This code works fine with KSP 1 but when KSP 2 is enabled we get the following error when running
./gradlew kspDebugKotlin
.See the full stacktrace in the attachment.