Skip to content
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

Adding custom jar files for Groovy parsing #427

Open
jsmithgmail opened this issue Sep 11, 2024 · 1 comment
Open

Adding custom jar files for Groovy parsing #427

jsmithgmail opened this issue Sep 11, 2024 · 1 comment

Comments

@jsmithgmail
Copy link

Hello.

Im receiving "Unknown parsing error" when parsing the groovy script where there is a custom import class. The classes reside in custom jar files. I tried to add the jar files to the groovy/lib folder, but still does not recognize the class.

unable to resolve class \n @ line 7, column 1.\r\n import \r\n ^\r\n" NglParseError

Is there a way to add external jar files to parse the groovy code? The error can be eliminated by adding --no-parse parameter, but would like to explore options to parse the groovy code.

Thank you.

@nvuillam
Copy link
Owner

The CodeNarc server takes only the text of the method as input parameter, no jars :/
What we need to find is a way to parse the groovy without it looking for external libraries and being unhappy to not find them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants