JetBrains / spotbugs-intellij-plugin

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

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

Open ustieber opened 7 months ago

ustieber commented 7 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 7 months ago

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

Yoghesh16 commented 6 months ago

Any updates on this?

mkeller-ergon commented 5 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 2 months ago

error still happening with IntelliJ 2024.2 and Spotbugs plugin 1.2.7

RetGal commented 1 month ago

Same issue with IntelliJ 2024.2.1and Spotbugs plugin 1.2.8

fishermans commented 1 month ago

PUSH: See https://github.com/nrayburn-tech/spotbugs-intellij-plugin/commit/88b0e5c74811cc2787cb3ca368544addea024a5b