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
[core] A crash upon PMD initialization #4267
Comments
@LynnBroe thanks for the report. This has nothing to do with the actual code being analyzed, it's on PMD's startup, as it parses the CLI parameters… now, this is a little curious:
Can we validate the report is accurate? I'd guess you are not using Maven, but invoking PMD from within your own code, and if that's the case, this is an issue on your codebase. More probably than not, you are using a different version of |
I see this error when running PMD in Bazel, if my jcommander version is newer than 1.64 (1.69 is broken, versions in between are not in maven central). I don't know whether the issue is in jcommander or pmd. |
This is down to how the host tool integrates PMD. An incorrect classpath (ie: including non-compatible dependencies) is going to break and is outside our control. Having said that, PMD 7 no longer uses jCommander, favoring PicoCli instead, and the CLI code is split away under a separate module that integrators can (and probably should) leave out integrating directly through |
Affects PMD Version:6.50.0
Description:
I run PMD to detect the following code example, and it crashed.
Exception Stacktrace:
Code Sample demonstrating the issue:
Steps to reproduce:
Directly use PMD to detect the code example.
Running PMD through: [Maven]
The text was updated successfully, but these errors were encountered: