java - ANTLR 4 RuntimeMetaData and Vocabulary -


i using antlr4 intellij plug-in, , using antlr-4.5.1 jar.

when generate antlr recognizer in lexer , parser can't resolve symbols runtimemetadata , vocabulary.

if use command line compile , run .g4 file works fine gives errors in intellij.

i can swap in command line compiled lexer , parser java files error ones , runs fine.

i'm on mac os x 10.11 using intellij 15.

you might have older antlr4-runtime-x.y.z.jar on compile classpath. had same issue when upgrading antlr4-maven-plugin 4.5.1, forgetting same antlr4-runtime dependency.


Comments