cashapp / sqldelight

SQLDelight - Generates typesafe Kotlin APIs from SQL
https://cashapp.github.io/sqldelight/
Apache License 2.0
6.03k stars 503 forks source link

com.intellij.diagnostic.PluginException in PluginProblemReporterImpl.java:23 #5015

Open square-clippy opened 5 months ago

square-clippy commented 5 months ago

Error in SQL Delight IntelliJ Plugin

com.intellij.diagnostic.PluginException in PluginProblemReporterImpl.java:23 ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'app.cash.sqldelight.intellij.run.window.ConnectionListPanel$clearSelectedConnection$1' must override getActionUpdateThread and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.squareup.sqldelight]

View on Bugsnag

Stacktrace

PluginProblemReporterImpl.java:23 - com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass

View full stacktrace

Created automatically via Bugsnag

square-clippy commented 3 months ago

An error linked to this issue has been marked as fixed in Bugsnag com.intellij.diagnostic.PluginException in PluginProblemReporterImpl.java:23

square-clippy commented 3 months ago

An error linked to this issue has been reopened in Bugsnag com.intellij.diagnostic.PluginException in PluginProblemReporterImpl.java:23

esafak commented 1 month ago

It still exists in 2.0.2:

com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon. 'app.cash.sqldelight.intellij.actions.CopyAsSqliteAction' must override `getActionUpdateThread` and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.squareup.sqldelight]
    at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23)
    at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90)
    at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)
    at com.intellij.openapi.actionSystem.ActionUpdateThreadAware.getActionUpdateThread(ActionUpdateThreadAware.java:21)
    at com.intellij.openapi.actionSystem.AnAction.getActionUpdateThread(AnAction.java:200)

A fix may be implemented by studying https://github.com/bazelbuild/intellij/pull/6101