ktlint-intellij-plugin icon indicating copy to clipboard operation
ktlint-intellij-plugin copied to clipboard

Deprecation warning with ActionUpdateThread

Open jasonab opened this issue 1 year ago • 2 comments

com.intellij.diagnostic.PluginException: ActionUpdateThread.OLD_EDT is deprecated and going to be removed soon. 'com.nbadal.ktlint.actions.LintAction' must override getActionUpdateThread and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.nbadal.ktlint] 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:199)

jasonab avatar Apr 29 '24 22:04 jasonab

Tnx for reporting. Do you have a reproduction path?

Meanwhile I started investigation, and posted a question to the plugin community: https://intellij-support.jetbrains.com/hc/en-us/community/posts/18697727524754-Deprecation-warning-with-ActionUpdateThread

paul-dingemans avatar May 02 '24 15:05 paul-dingemans

I don't have a specific path, because this shows up in the IntelliJ background error log, and I don't notice it until later. If I can catch it more quickly, I'll let you know.

jasonab avatar May 02 '24 16:05 jasonab