Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in IJ 241: need to specify ActionUpdateThread for actions #189

Open
rock3r opened this issue Feb 1, 2024 · 0 comments
Open

Exception in IJ 241: need to specify ActionUpdateThread for actions #189

rock3r opened this issue Feb 1, 2024 · 0 comments
Labels

Comments

@rock3r
Copy link

rock3r commented Feb 1, 2024

Running on IJ 241, you get this error:

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

The fix is pretty simple: override getActionUpdateThread in all actions and specify whether they require EDT to update, or can be updated in the background.

Note that there might be other actions with the same issue; make sure the override is set in all actions.

@rock3r rock3r added the bug label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant