You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to KSP2, Room compilation failed with the following error: [ksp] [SQLITE_ERROR] SQL error or missing database (near ")": syntax error).
Investigation revealed that the properties of inner classes were being completely removed during code generation.
For example:
@Serializable
class A {
//Error while "kspDebugKotlin"
@Serializable
@Entity(tableName = "tab_a")
class AA(
@ColumnInfo(name = "colum1")
val colum1: String,
@ColumnInfo(name = "colum2")
val colum2: String,
@ColumnInfo(name = "colum3")
val colum3: String,
)
}
//This is ok
@Serializable
@Entity(tableName = "tab_b")
data class BB(
@ColumnInfo(name = "colum1")
val colum1: String,
@ColumnInfo(name = "colum2")
val colum2: String,
@ColumnInfo(name = "colum3")
val colum3: String,
)
Looking at the createSql in the schemas json file, table tab_a has no fields, while table tab_b is normal.
All properties of class AA are also missing during compilation.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
After upgrading to KSP2, Room compilation failed with the following error:
[ksp] [SQLITE_ERROR] SQL error or missing database (near ")": syntax error)
.Investigation revealed that the properties of inner classes were being completely removed during code generation.
For example:
Looking at the
createSql
in the schemas json file, tabletab_a
has nofields
, while tabletab_b
is normal.All properties of class
AA
are also missing during compilation.The text was updated successfully, but these errors were encountered: