JetBrains / spotbugs-intellij-plugin

The SpotBugs Plugin for IntelliJ IDEA
GNU Lesser General Public License v2.1
67 stars 32 forks source link

Since update to Intellij 2024.1, an error is reported for use of deprecated 'ActionUpdateThread.OLD_EDT' #1612

Open ustieber opened 5 months ago

ustieber commented 5 months ago

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

fishermans commented 5 months ago

To fix it, see https://github.com/bazelbuild/intellij/issues/5993

Yoghesh16 commented 4 months ago

Any updates on this?

mkeller-ergon commented 3 months ago

Same here. And everytime it happens, IntelliJ begins to slow down considerably on every click in a file. The activity monitor then always shows the actionSystem.impl (in com.intellij.openapi) process as using 10% or more CPU (which is also seen in the stacktrace of this error) - I have to restart the IDE to get decent performance again.

xilefton commented 1 month ago

error still happening with IntelliJ 2024.2 and Spotbugs plugin 1.2.7