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
No node to visit provided for visitAnonymousClass #919
Comments
Note: I get this same error when attempting to use PDepend, as well. |
Regarding the message, it probably fails to parse an anonymous class. Please try to spot the occurrences of |
@kylekatarnls I confirmed there were 2 instances of They both fit this pattern:
Any other info I can provide? |
Hello, when using: I assumed the Are you able to create a 1-file project that reproduces this bug? Thanks 🙏 |
Thanks @kylekatarnls, that was my typo. The original code does have semicolon. I've corrected above to add the semicolon. However, this next week I will re-test to see if this is still happening. |
Current Behavior
When issuing the following command:
php phpmd.phar ./ng/backend xml codesize --exclude 'vendor' --reportfile 'phpmd_results.xml'
After about 20 seconds I receive the following message:
No node to visit provided for visitAnonymousClass
Also, the result file phpmd_results.xml is empty.
Expected Behavior
After some time, the phpmd_results.xml would contain the results.
Steps To Reproduce:
From within my project directory, use the following command to get phpmd:
$ wget -c https://phpmd.org/static/latest/phpmd.phar
Then issue the command above for phpmd to analyse the code.
Checks before submitting
The text was updated successfully, but these errors were encountered: