sqldelight
sqldelight copied to clipboard
Unresolved reference kotlin.Int
SQLDelight Version
2.0.0-alpha03
IDE Version
IntelliJ 2022.2.1
Dialect
SQLite
Describe the Bug
import kotlinx.datetime.Instant;
import kotlin.Int;
CREATE TABLE coacheeAvatar (
id TEXT NOT NULL PRIMARY KEY,
coacheeId TEXT,
mimeType TEXT NOT NULL,
length INTEGER NOT NULL,
width INTEGER AS Int NOT NULL,
height INTEGER AS Int NOT NULL,
path TEXT NOT NULL,
created INTEGER AS Instant NOT NULL
);
yields:
![Screen Shot 2022-08-13 at 08 16 45](https://user-images.githubusercontent.com/5759366/184471409-c4058e3a-8f02-48ae-83a1-4fee2021d0a0.png)
Somehow, sqldelight is able to get the Instant type, but not the Int type. There are no logs or whatsoever that I can trace to sqldelight in my idea.log file.
I use 2.0.0-alpha03 for my dependencies and 2.0.0-SNAPSHOT-1660129311905 for the IntelliJ plugin since otherwise it's completely broken because it's missing https://github.com/cashapp/sqldelight/pull/3422