ollie314 / modsl

Automatically exported from code.google.com/p/modsl
0 stars 0 forks source link

Starting development: org.modsl.antlr cannot be resolved (source code missing?) #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I would like to contribute to the project and am therefore setting up Eclipse 
to first of all import 
the code and getting it to run, and then do some development. However I can't 
get the project to 
build due to an unresolvable import. Could it be missing code ?

What steps will reproduce the problem?
1. Using Eclipse 3.5 (specifically: Build id: 20090920-1017)
2. Installed dependencies following the items on the Wiki
3. Opened SVN repository perspective in Eclipse and connected to modsl 
repository. Check out 
the trunc as a Maven project.
4. I get build errors in two files in modsl-core (BasicTranslator.java and 
UMLTranslator.java). The 
core seems to be 'The import org.modsl.antlr cannot be resolved' (as a result 
some types cannot 
be resolved (BasicLexer, BasicParser, UMLLexer, UMLParser)

This is using the latest Eclipse, ANTLR 3.01 (not 3.2), on OS-X.

I have never used Maven before, so maybe it is some configuration issue, but I 
have the 
impression that the source of some files is simply missing?

Original issue reported on code.google.com by roel.wuyts@gmail.com on 9 Nov 2009 at 11:28

GoogleCodeExporter commented 9 years ago
The issue is that BasicLexer, BasicParser, UMLLexer, UMLParser are not part of 
the
source code, they are generated on the fly from ANTLR grammar files. You need to
install and configure Eclipse ANTLR plugin to do that. I've checked Google just 
now
and it seems that the plugin version I'm using is no longer available... You 
might
want to try this http://antlreclipse.sourceforge.net/ instead. Worst case 
scenario
you just ignore those errors in Eclipse and build using Maven. Maven is using 
ANTLR
plugin to generate sources from the grammar files and is not dependent on 
Eclipse plugin.

Original comment by avi...@gmail.com on 9 Nov 2009 at 5:21

GoogleCodeExporter commented 9 years ago
Thanks, I'll investigate further. I guess it is some configuration issue with 
Antlr 
under Eclipse (I installed it but did not configure it). Howver I was already 
building 
it wih make under Eclipse, so I'll check that as well. If I get it to work I'll 
update 
my comment ;-)

Original comment by roel.wuyts@gmail.com on 10 Nov 2009 at 7:36