[antlr-interest] import package in AntlrWorks debugger

Jean Bovet antlr-list at arizona-software.ch
Tue Jun 12 23:48:00 PDT 2007


ANTLRWorks now handles the package properly. However, it is probably  
a classpath issue as Patrick Masselink mentioned: can you try and  
tell me if it works by specifying the classpath in the preferences?  
Were is located the copybook package? I guess at the same level as  
the package "parser"? Also, are you using ANTLRWorks as a plugin in  
IntelliJ? If so, does it work if you use the standalone version of  
ANTLRWorks?

Sorry for all these questions, I'm trying to figure out exactly  
what's going on.

Regards,

Jean

On Jun 12, 2007, at 7:10 AM, Martin Fowler wrote:

> I'm having a problem using the AntlrWorks debugger. I have a  
> reference to one of my classes in the parser, so I have an import  
> statement in the parser header
>
>     @header{
>       package parser;
>       import copybook.*;
>     }
>
> It all works fine with antlr, but the antlr debugger doesn't seem  
> to like it.
>
> from the antlrworks console when I hit the debug button:
>
>     09:59:59] import copybook.*;
>     [09:59:59] ^
>     [09:59:59] /tmp/antlrworks/copybookParser.java:51: cannot find  
> symbol
>     [09:59:59] symbol  : class CopyBookLoader
>     [09:59:59] location: class parser.copybookParser
>
> The classpaths are all properly setup in intellij - I can run the  
> parser  fine in there.
>
> Is there something I need to do to get the debugger to work? I'd  
> really like to play with it. An old thread <http://www.antlr.org: 
> 8080/pipermail/antlr-interest/2006-November/018445.html> suggests  
> that antlrworks doesn't deal with packages - is that still the case?
>
> Versions:
>
> IntelliJ 6.0.5
> AntlrWorks 1.0.2
> OS: Ubuntu Feisty
> Java: 1.6.0
> --
> Martin Fowler
> http://martinfowler.com



More information about the antlr-interest mailing list