sqldelight icon indicating copy to clipboard operation
sqldelight copied to clipboard

Incorrect package Name

Open Shabinder opened this issue 1 year ago • 2 comments

SQLDelight Version

2.0.0-alpha003

Operating System

MacOS

Gradle Version

7.4.2

Kotlin Version

1.7.0

Dialect

SQLite

AGP Version

7.2.1

Describe the Bug

My Package name consists of a special reserved word: in

Its: in.shabinder.shared

package `in`.shabinder.shared.db

SqlDelight is generating : inshabindershareddb

Checkout Attached Image: image

Stacktrace

No response

Gradle Build Script

sqldelight {
    database("Database") {
        packageName = "in.shabinder.shared.db"
    }
}

Shabinder avatar Aug 08 '22 22:08 Shabinder

On further diagnosing, the entity classes were being made in such package because IDE created a SINGLE folder name in.shabinder.shared.db, rather than subfolders and hence above issue I guess.

Strangely enough, 1.5.3 didn't showed such behaviour and worked as expected.

If this is what is intended then this issue can be closed.

Shabinder avatar Aug 08 '22 23:08 Shabinder

this is the same problem as https://github.com/cashapp/sqldelight/issues/3332 and https://github.com/cashapp/sqldelight/issues/3346#issuecomment-1170676571

tropikoder avatar Sep 01 '22 15:09 tropikoder