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

plugin does not trigger code generator on save #697

Open
tbabczynski opened this issue Mar 26, 2024 · 1 comment
Open

plugin does not trigger code generator on save #697

tbabczynski opened this issue Mar 26, 2024 · 1 comment
Labels

Comments

@tbabczynski
Copy link

I have IntelliJ 2023.3.6 and the plugin version is 1.23.1. In these versions of tools, the parser, lexer and the whole menagerie are not generated on save of grammar file. I do have the option checked. I don't remember the exact version of the plugin/IntelliJ when it worked but I'm sure that last year it worked like charm. Now I have to generate the code manually each time. OK, Ctrl Shift G is my friend but ^S is more natural ;).

@bjansen bjansen added the bug label Mar 27, 2024
@tbabczynski
Copy link
Author

I've seen that after saving the grammar file, the following exception is thrown:
java.lang.Throwable: Read access is allowed from inside read-action (or EDT) only (see com.intellij.openapi.application.Application.runReadAction())
Current thread: Thread[Alarm Pool,4,main] 2036941950 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 402563983
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1002)
at com.intellij.openapi.roots.impl.DirectoryIndexImpl.checkAvailability(DirectoryIndexImpl.java:250)
at com.intellij.openapi.roots.impl.DirectoryIndexImpl.getPackageName(DirectoryIndexImpl.java:213)
at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getPackageNameByDirectory(ProjectFileIndexImpl.java:250)
at org.antlr.intellij.plugin.parsing.RunANTLROnGrammarFile.getANTLRArgs(RunANTLROnGrammarFile.java:197)
...

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

2 participants