https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
m

mkrussel

10/30/2023, 7:40 PM
I'm playing with SqlDelight and I'm trying to do something like with touchlabs is doing with https://github.com/touchlab/KaMPKit/blob/1d54b14c66dd55d865ea29d3f0051f5c793c4010/[…]iosTest/kotlin/co/touchlab/kampkit/TestUtilIOS.kt?ref=akjaw.com Intellij is showing several compile errors with
Cannot access class 'co.touchlab.sqliter.DatabaseConnection'.
I have no touchlab libs in my app and there are no imports for it in the file. Everything compiles OK, but the false errors are annoying. I was wondering if anyone else has seen this.
same 1
It doesn't like the symbols
NativeSqliteDriver
and
wrapConnection
.
I see that touch lab's sqliter is a dependency of the native driver. But SqlDelight uses an API dependency, so I'm not sure why Intellij is not finding the class.
o

okarm

11/01/2023, 10:55 AM
Yes, I have observed this phenomenon as well. IDEA cannot find sqliter elements.
k

kpgalligan

11/07/2023, 3:25 PM
We'll see how it goes when a new version of sqldelight comes out. We've bumped the latest sqliter to Kotlin 1.9.20. That may cooperate better with the IDE (although building should work fine, even if the IDE disagrees)
4 Views