kstenschke/shifter-plugin

Error "ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon" since Intellij 2024.1

Opened this issue · 1 comments

Using latest Intellij (2024.1)

IntelliJ IDEA 2024.1 (Ultimate Edition)
Build #IU-241.14494.240, built on March 28, 2024
Non-Bundled Plugins:
  Shifter (1.9.6)

An notification error popups:

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

FYI: For anybody looking to pick this up, overriding the method to resolve the deprecation is pretty straightforward.

A hindrance could potentially be upgrading plugin dependencies that are being used (although this plugin uses a different dependency than mine; see plugin.xml).

For an example PR see: Noorts/Toggler#66