Menu

#82 tokenVocab can't find .tokens file

open-accepted
None
5
2010-11-23
2010-11-22
No

Error when generating Java files:

ANTLR Parser Generator 3.2 Sep 23, 2009 12:02:23.
Using project classpath: Yes.
Grammar: C:\development\antlr\Grammar\src\antlr\{path\to\package}\SearchGrammar.g
error(3): cannot find tokens file C:\development\antlr\Grammar\src\java\{path\to\package}\FieldNames.tokens

SearchGrammar.g contains an option tokenVocab = FieldNames;

The workspace preferences for the Code Generator set the output folder to src/java. Append java package to output folder is checked.

If I copy the FieldNames.tokens to the location in the error message, the error goes away until the java is rebuilt, at which time the copied files disappear and the error reappears.

Discussion

  • Shawn Kovalchick

    Eclipse version: 3.6.1
    ANTLR IDE version: 2.1.1

     
  • Edgar Espina

    Edgar Espina - 2010-11-23
    • assigned_to: nobody --> devx_edg
    • status: open --> open-accepted
     
  • Edgar Espina

    Edgar Espina - 2010-11-23

    I'll take a look.

    Thanks,
    edgar

     
  • Edgar Espina

    Edgar Espina - 2010-12-19

    Hi Shawn,

    Can you create an example Eclipse project reproducing the issue?

    Thanks,

    edgar

     
  • Shawn Kovalchick

    Example project illustrating error. (see prefs file in root for preferences)

     

Log in to post a comment.

Auth0 Logo