[antlr-interest] Error in Eclipse Plugin

Scott Smith ssmith at mainstreamdata.com
Thu Aug 18 13:37:47 PDT 2011


I'm running the latest antlr eclipse plugin (Antlr - http://antlrv3ide.sourceforge.net/updates - eclipse 3.5).  When there's a problem in the grammar, I almost always see the following error message:

ANTLR Parser Generator  Version 3.4.
Using project classpath: No.
Grammar: C:\Users\scotts\workspace3.5\SolrParser\Solr\SolrQuery.g
java.lang.NoSuchFieldError: offendingToken
      at org.deved.antlride.runtime.AntlrErrorListener.extractToken(AntlrErrorListener.java:108)
      at org.deved.antlride.runtime.AntlrErrorListener.report(AntlrErrorListener.java:79)
      at org.deved.antlride.runtime.AntlrErrorListener.message(AntlrErrorListener.java:63)
      at org.deved.antlride.runtime.AntlrErrorListener.error(AntlrErrorListener.java:53)
      at org.antlr.tool.ErrorManager.syntaxError(ErrorManager.java:768)
      at org.antlr.grammar.v3.ANTLRParser.reportError(ANTLRParser.java:443)
      at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(BaseRecognizer.java:613)
      at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)
      at org.antlr.grammar.v3.ANTLRParser.grammar_(ANTLRParser.java:707)
      at org.antlr.tool.Grammar.parseAndBuildAST(Grammar.java:644)
      at org.antlr.Tool.getRootGrammar(Tool.java:626)
      at org.antlr.Tool.process(Tool.java:459)
      at org.deved.antlride.runtime.Tool2.main(Tool2.java:24)
BUILD SUCCESSFUL

This has no information about what or where the problem is.  I figured out how to compile the grammar from the command line which gave me a specific error (and told me where the problem was).  I guess I think this is a bug.  Not sure if this is the right place to post it, but I'm not sure where else to post it either.

Scott


More information about the antlr-interest mailing list