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
462 stars 103 forks source link

Underline files with errors in project view #626

Open TysonMN opened 1 year ago

TysonMN commented 1 year ago

If a java file contains an error, then its name in the project view is underlined in red (see GrammarSource in the screenshot below). This doesn't happen for ANTLR files (see GrammarGrammar.g4 in the screenshot below).

How can I get ANTLR files containing an error to be underlined in red in the project view? Is this a setting that already exists or is this something that requires a change to the plugin?

Screenshot 2023-04-05 at 10 22 52 AM
bjansen commented 1 year ago

IIRC it's a feature that needs to be added to the plugin.

TysonMN commented 1 year ago

In that case, I think the next step is to find a link to documentation explaining how to add this feature. I looked for that before posting this issue but didn't find anything. Also helpful would be a link to the source code of a plugin that has this feature.

bjansen commented 1 year ago

Found it, it's pretty simple actually: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003382859-Highlight-a-file-with-errors-during-inspection