You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a type alias: userID INTEGER AS UserID NOT NULL the type appears to be recognized (tool tip identifies the correct class) however the generated code doesn't and just has this import import UserID. In that same table for this column stackID INTEGER AS StackID NOT NULL, the type StackID, when not imported, is highlighted red as an unresolved reference. (Both are value classes in the same package)
Manually adding the import corrects the generated code as expected.
A similar issue can be seen with Kotlin basic type such as Int or Boolean.
Stacktrace
No response
The text was updated successfully, but these errors were encountered:
@hfhbd Tried the latest snapshot of the plugin. The kotlin.Int side is fixed. The custom type is still behaving weirdly, but differently.
I have two customs: BarID and FooBarID (key part may be that they both end in BarID?)
If the .sq file looks like this, it shows no warning and the tool tip over BarID shows docs for FooBarID
import com.example.FooBarID
CREATE TABLE FooBar (
id INTEGER AS FooBarID PRIMARY KEY NOT NULL,
barID INTEGER AS BarID NOT NULL,
If the file looks like this, FooBarID will be highlighted in red as an unresolved reference in the create statement
import com.example.BarID
CREATE TABLE FooBar (
id INTEGER AS FooBarID PRIMARY KEY NOT NULL,
barID INTEGER AS BarID NOT NULL,
SQLDelight Version
2.0.0-alpha05
IDE Version
Android Studio Electric Eel | 2022.1.1 Patch 2
Dialect
SQLite
Describe the Bug
When adding a type alias:
userID INTEGER AS UserID NOT NULL
the type appears to be recognized (tool tip identifies the correct class) however the generated code doesn't and just has this importimport UserID
. In that same table for this columnstackID INTEGER AS StackID NOT NULL,
the typeStackID
, when not imported, is highlighted red as an unresolved reference. (Both are value classes in the same package)Manually adding the import corrects the generated code as expected.
A similar issue can be seen with Kotlin basic type such as Int or Boolean.
Stacktrace
No response
The text was updated successfully, but these errors were encountered: