antlr / intellij-plugin-v4

An IntelliJ plugin for ANTLR v4
https://plugins.jetbrains.com/plugin/7358-antlr-v4
BSD 3-Clause "New" or "Revised" License
461 stars 103 forks source link

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

Open bjansen opened 5 months ago

bjansen commented 5 months ago
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)
oovm commented 5 months ago

I have the same error, all my highlights are invalid

bjansen commented 5 months ago

@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?

oovm commented 5 months ago

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

yaohwu commented 4 months ago
image

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

447491480 commented 3 weeks ago

same error image

bwinters commented 1 week ago

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