I tried to migrate my KM project to Sqldelight 1.5...
# squarelibraries
j
I tried to migrate my KM project to Sqldelight 1.5.0 but and now I can’t see all the gradle tasks that were available, I only see
Copy code
- generateCommonMainMyProjectDatabaseInterface
- generateCommonMainMyProjectDatabaseSchema
- generateSqlDelightInterface
- verifyCommonMainMyProjectDatabaseMigration
- verifySqlDelightMigration
They all pass successfully but I can’t see anything generated (I invalidated my cache so
build/sqldelight
is empty). When I run the gradle
build
command, it fails on generated sqldelight class imports (since they are not build). What should I do from there to generate my sqldelight classes?
I did migrate kotlin dependencies to 1.5.0 at the same time. Now when I try to only revert sqldelight dependencies to 1.4.4 I get the following error:
Copy code
Compilation failed: Deserializer for declaration public kotlinx.coroutines/cancel|-8901161077954086727[0] is not found

 * Source files: 
 * Compiler version info: Konan: 1.5 / Kotlin: 1.5.0
 * Output kind: FRAMEWORK
a
Yea SQLDelight hasn’t done a kotlin 1.5.0 release yet so it probably won’t work
j
I got mislead by the 1.5.0 update then, I assumed the matching versions meant it support kotlin 1.5.0
a
yea just happened to line up
ours was first!!!1111!!
👍 1
j
Is there a programmed date for supporting kotlin 1.5.0?
a
no but its in progress
m
FWIW, this is more about
kotlinx.coroutines
than
kotlin
itself, we had to fix the same issue in apollo-android. So maybe compiling against coroutines 1.5.0 is enough (but maybe coroutines 1.5.0 require kotlin 1.5.0 🤷 )
In all cases, bumping both kotlin and coroutines made it work
j
I migrated coroutines to 1.5.0 too but still not working 😞