intellij-plugin-v4 icon indicating copy to clipboard operation
intellij-plugin-v4 copied to clipboard

`ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon

Open bjansen opened this issue 1 year ago • 6 comments

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

bjansen avatar Mar 09 '24 18:03 bjansen

I have the same error, all my highlights are invalid

oovm avatar Mar 11 '24 02:03 oovm

@oovm I think the two problems are unrelated. I fixed syntax highlighting in 2024.1 EAP and published a new version 1.23.1. Could you try it and see if it fixes your highlighting problem?

bjansen avatar Mar 11 '24 09:03 bjansen

It should be that an exception was thrown that interrupted lexer's lexical highlighting. After the update, antlr highlighting returned to normal.

oovm avatar Mar 11 '24 09:03 oovm

image same happened in 1.23.1 plugin and IntelliJ IDEA 2024.1 (Ultimate Edition)

yaohwu avatar Apr 19 '24 08:04 yaohwu

same error image

447491480 avatar Jul 31 '24 07:07 447491480

some additional info from IntelliJ idea.log:

ANTLR 4 Plugin version 1.23.1, Java version 21.0.3 IntelliJ IDEA 2024.2 Build #IU-242.20224.300 JDK: 21.0.3; VM: OpenJDK 64-Bit Server VM OS: Windows Server 2022

getting the message for

  • org.antlr.intellij.plugin.actions.GenerateParserAction
  • org.antlr.intellij.plugin.actions.ConfigureANTLRAction
  • org.antlr.intellij.plugin.actions.TestRuleAction
  • org.antlr.intellij.plugin.actions.GenerateLexerRulesForLiteralsAction

bwinters avatar Aug 13 '24 19:08 bwinters

Please release the current 1.23.2 because nothing works with the current 1.23.1 version.

swnck avatar Oct 04 '24 00:10 swnck

@swnck what's not working in your case? The message above is just a warning and afaik does not prevent anything from working as expected. Besides, I haven't finished fixing the problem entirely, so releasing the current version would not solve anything.

bjansen avatar Oct 05 '24 08:10 bjansen

Thanks for pushing the new version! I'm not seeing the EDT messages anymore.

lppedd avatar Oct 06 '24 12:10 lppedd