uwol / proleap-cobol-parser

ProLeap ANTLR4-based parser for COBOL
MIT License
134 stars 73 forks source link

Can't find CobolLexer class while building the project #82

Closed jeffersonlsz closed 3 years ago

jeffersonlsz commented 3 years ago

Hi all,

I'm trying to build the project just as the README describes but it just can't find the class 'CobolLexer.java'.

Here is a list with the occurences mentioned by the Eclipse IDE. I also searched for it in the repository but I had no success. How do I manage to build that project ?

CobolParseTestRunnerImpl.java /proleap-cobol-parser-master/src/test/java/io/proleap/cobol/runner/impl line 77 CobolParseTestRunnerImpl.java /proleap-cobol-parser-master/src/test/java/io/proleap/cobol/runner/impl line 77 CobolParseTestRunnerImpl.java /proleap-cobol-parser-master/src/test/java/io/proleap/cobol/runner/impl line 25 TestGenerator.java /proleap-cobol-parser-master/src/test/java/io/proleap/cobol TestGenerator.java /proleap-cobol-parser-master/src/test/java/io/proleap/cobol CobolParserRunnerImpl.java /proleap-cobol-parser-master/src/main/java/io/proleap/cobol/asg/runner/impl line 206
CobolParserRunnerImpl.java /proleap-cobol-parser-master/src/main/java/io/proleap/cobol/asg/runner/impl line 206
CobolParserRunnerImpl.java /proleap-cobol-parser-master/src/main/java/io/proleap/cobol/asg/runner/impl line 23

jeffersonlsz commented 3 years ago

I solved the issue.

I just deleted the 'target' maven generated directory manually and ran the command 'mvn clean package' again and it compiled fine.

uwol commented 3 years ago

Perfect, thanks for letting me know. Simply running mvn clean package normally should suffice, so that the Maven ANTLR plugin kicks in and generates the ANTLR parser code from the ANTLR COBOL grammar files.