-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in generating AST #97
Comments
Hi @sundar-sarvam , the problem is that in your setup the ANTLR library is not on the class path as a dependency. This project uses Maven for dependency management. When importing the code into Eclipse or Intellij IDEA, those IDEs should automatically recognize the Maven pom.xml and fetch all dependencies, including ANTLR as configured in here. To my understanding you try to use Visual Studio Code for Java here -> support for larger Maven projects in Visual Studio Code was problematic for me in the past -> I definitely recommend Intellij or Eclipse! Best |
Thanks @uwol . I realised that for some reason But now I am facing the below warning:
On referring this link: https://www.slf4j.org/codes.html#StaticLoggerBinder, it seems to not be an issue (right?). I am new to Java but very comfortable with VSC, so can't change IDE so easily. I am able to successfully run this example: https://stackoverflow.com/questions/49353699/getting-static-function-call-graph-of-a-cobol-program-in-java and |
Yes, Logback is missing from your dependencies. |
The issue seems to be pointing that the ANTLR4 library is not available to be referenced.
I have added
Proleap-cobol-parser.4.0.0.jar
as "Referenced libraries" to the Java project (not Maven project). It was created after successfully building the proleap-cobol-parser repo locally. I think I need to addProleap-cobol-parser-sources.jar
as "Referenced libraries" as well but when I add it in Visual Studio Code, it's not getting added.Is this a common issue and any workaround to it?
The text was updated successfully, but these errors were encountered: