Skip to content

Unresolved reference kotlin.Int #3438

@vanniktech

Description

@vanniktech

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 #3422

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions