sqldelight icon indicating copy to clipboard operation
sqldelight copied to clipboard

Unresolved reference kotlin.Int

Open vanniktech opened this issue 2 years ago • 0 comments

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

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

vanniktech avatar Aug 13 '22 06:08 vanniktech