detekt / detekt-intellij-plugin

detekt plugin for IntelliJ
https://plugins.jetbrains.com/plugin/10761-detekt
Apache License 2.0
290 stars 39 forks source link

Exception in plugin detekt 2.4.0 #513

Closed huangsam closed 3 months ago

huangsam commented 3 months ago

Expected Behavior

No issues should pop up in Intellij Community Edition upon startup.

Observed Behavior

I get these logs in the background:

com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon. 'io.gitlab.arturbosch.detekt.idea.action.RunDetektMenuGroup' must override `getActionUpdateThread` and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: detekt]
    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)

Steps to Reproduce

Install plugin and open up a project with the Detekt plugin enabled.

Context

While writing code, I see a red IDE Internal Error Occurred on the bottom right corner of my Intellij IDE. While this is not blocking me from my work, it's annoying to see the popup upon every startup and might mask other "real" application-side errors.

Your Environment

huangsam commented 3 months ago

Thanks for fixing the issue @arturbosch! When will the next version of Detekt plugin come out? Looking forward to this bug disappearing from my IDE 😄

arturbosch commented 3 months ago

Thanks for fixing the issue @arturbosch! When will the next version of Detekt plugin come out? Looking forward to this bug disappearing from my IDE 😄

Hi, soon! :) I uploaded a new version. Jetbrains will approve it today or the next days.