JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.62k stars 1.14k forks source link

ֵExample Todo doesn't run when install from dmg #2667

Open eymar opened 1 year ago

eymar commented 1 year ago

Source Code: https://github.com/JetBrains/compose-jb/tree/update_versions_in_examples/examples/todoapp Compose: 1.3.0-rc05 kotlin: 1.8.0

OS: Mac Os 12.5.1

Steps to reproduce:

Stacktrace:

Applications/ComposeDesktopTodo.app/Contents/MacOS/ComposeDesktopTodo ; exit;
Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:sqlite:/var/folders/5s/l1n0y1pj1_14txws82__4fcm0000gn/T/ComposeTodoDatabase.db
    at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
    at com.squareup.sqldelight.sqlite.driver.ThreadedConnectionManager.getConnection(JdbcSqliteDriver.kt:65)
    at com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver.getConnection(JdbcSqliteDriver.kt)
    at com.squareup.sqldelight.sqlite.driver.JdbcDriver.connectionAndClose(JdbcDriver.kt:96)
    at com.squareup.sqldelight.sqlite.driver.JdbcDriver.execute$5d96a3e3(JdbcDriver.kt:107)
    at example.todo.database.database.TodoDatabaseImpl$Schema.create(TodoDatabaseImpl.kt:1052)
    at example.todo.common.ui.ShortcutHandlerKt.TodoDatabaseDriver(ShortcutHandler.kt:1012)
    at example.todo.desktop.MainKt.main(Main.kt:1052)
Failed to launch JVM
logout

Notes:

eymar commented 1 year ago

Using other examples such as issues or image-viewer works when using

./gradlew packageDistributionForCurrentOS

But there is an issue with release distribution. I'll submit a separate issue (here it's https://github.com/JetBrains/compose-jb/issues/2668).

dima-avdeev-jb commented 1 year ago

Relates to https://github.com/JetBrains/compose-jb/issues/2668

muhammadyusuf-kurbonov commented 1 year ago

Have the same with AppImage, Exe and Msi formats.

dima-avdeev-jb commented 1 year ago

Thanks, I add notice about your case in this issue: https://github.com/JetBrains/compose-jb/issues/2668