Hi all, is SQLDelight going to get a new stable re...
# squarelibraries
r
Hi all, is SQLDelight going to get a new stable release anytime soon? The lack of K2 support with the released plug in version now that k2 is standard is an issue for our workflow
j
We don't know
Have you tried the EAP version of the plugin?
r
Yeah I'm using it now, just would rather stick with release where possible (or at least alpha/beta channels) just for stability.
l
Just to share my personal experience on this topic. Using the EAP plugin has been fine for solo work, but it's made it harder to adopt SQLDelight in team settings. Questions come up about why we're using snapshot libraries in our projects or asking people to install alpha plugins. Totally understand this is an open source project and not making a request. Just thought it might be helpful to share this experience since the last release. We are still using SQLDelight and really appreciate the work on it.
j
@leonhardt out of curiosity, which version of the IDE are using per: "Using the EAP plugin has been fine for solo work"? I'm using 2.1.0-SNAPSHOT-1741051675193 with Android Studio Meerkat | 2024.3.1 Patch 2 and I'm unable to create or edit .sq files. on a side note, I'm currently exploring bumping the IDEA version in the main repo to submit a PR, but I'm pretty inexperienced on how to solve the issues I'm running into, so not sure how far I'll get. Currently I'm seeing an error like:
Copy code
Caused by: org.gradle.api.GradleException: Exception in thread "main" java.lang.ExceptionInInitializerError
        at com.intellij.ide.plugins.PluginEnabler.<clinit>(PluginEnabler.java:22)
        at com.intellij.core.CoreApplicationEnvironment.<init>(CoreApplicationEnvironment.java:79)
        at com.intellij.core.CoreApplicationEnvironment.<init>(CoreApplicationEnvironment.java:72)
        at org.intellij.grammar.LightPsi$MyParsing.<init>(LightPsi.java:152)
        at org.intellij.grammar.LightPsi.<clinit>(LightPsi.java:55)
        at org.intellij.grammar.Main.main(Main.java:38)
Caused by: java.lang.RuntimeException: Could not find installation home path. Please reinstall the software.
        at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:112)
        at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:82)
        at com.intellij.openapi.application.PathManager.getConfigPath(PathManager.java:365)
        at com.intellij.openapi.application.PathManager.getConfigDir(PathManager.java:353)
        at com.intellij.openapi.util.registry.EarlyAccessRegistryManagerKt$configFile$2.invoke(EarlyAccessRegistryManager.kt:27)
        at com.intellij.openapi.util.registry.EarlyAccessRegistryManagerKt$configFile$2.invoke(EarlyAccessRegistryManager.kt:26)
...
ah, just noticed there's a later SNAPSHOT, upgrading to 2.1.0-SNAPSHOT-1742911066126 now allows me to edit, but swallows/deletes my characters opening idea.log shows a stack trace similar to what's discussed in: https://github.com/sqldelight/sqldelight/issues/4362
hmm, similar but different. that issue is more about the IDE freezing, mine is complaining about NoSuchMethodError:
Copy code
2025-04-23 18:37:56,569 [ 113382] SEVERE - #c.i.o.a.i.CoroutineExceptionHandlerImpl - Unhandled exception in [ComponentManager(ApplicationImpl@1004032271), com.intellij.codeWithMe.ClientIdContextElementPrecursor@63974cb2, CoroutineName(Embedding file change listener scope), Dispatchers.Default]
java.lang.NoSuchMethodError: 'java.util.stream.Stream com.intellij.openapi.extensions.ExtensionPoint.extensions()'
	at app.cash.sqldelight.dialects.sqlite_3_18.SqliteDialect.registerTypeHolder(SqliteDialect.kt:50)
	at app.cash.sqldelight.dialects.sqlite_3_18.SqliteDialect.setup(SqliteDialect.kt:31)
	at app.cash.sqldelight.core.lang.ParserUtil.initializeDialect(ParserUtil.kt:23)
	at app.cash.sqldelight.core.lang.SqlDelightParserDefinition.createParser(SqlDelightParserDefinition.kt:51)
	at app.cash.sqldelight.core.lang.SqlDelightParserDefinition.createParser(SqlDelightParserDefinition.kt:28)
	at com.intellij.psi.tree.ILightStubFileElementType.parseContentsLight(ILightStubFileElementType.java:50)
	at com.intellij.psi.impl.source.tree.FileElement.getLighterAST(FileElement.java:50)
	at com.intellij.util.indexing.FileContentImpl.getLighterAST(FileContentImpl.java:59)
	at com.intellij.psi.stubs.StubTreeBuilder.lambda$buildStubTree$3(StubTreeBuilder.java:140)
	at com.intellij.psi.impl.PsiManagerImpl.runInBatchFilesMode(PsiManagerImpl.java:462)
	at com.intellij.psi.stubs.StubTreeBuilder.buildStubTree(StubTreeBuilder.java:132)
	at com.intellij.psi.stubs.StubTreeBuilder.buildStubTree(StubTreeBuilder.java:91)
searching for the relevant class in the repo
shows that the version of ExtensionPoint packaged in environment does not have the
.extensions
method
Screenshot 2025-04-23 at 7.06.43 PM.png
l
@jrod regarding plugin versions, I'm not sure if you've already done this but if you add the SQLDelight EAP pluglin repository, IntelliJ will auto-update the EAP releases. Settings > Plugins > Gear Icon > Manage Plugin Repositories Then add
<https://plugins.jetbrains.com/plugins/eap/com.squareup.sqldelight>
Not sure if that'll solve the issues you're having with the plugin, but good luck.
j
Yes I've already added that to access the snapshot versions. Thanks!
kodee welcoming 1