-
Notifications
You must be signed in to change notification settings - Fork 365
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
Errors not displayed for phpmd #1142
Comments
Looks like the output does not match the errorformat ( |
/cc @codeinabox |
If you could create a PHP file that recreates that error I could update the tests. |
The output from the issue, but not sure how much it's edited (
|
I've experienced unexpected token errors in the past but I am having trouble recreating one as all the past examples have been fixed in recent versions. @esniper are you using a recent version of phpmd? |
I'm using phpmd version 2.5.0 (which is one older than the latest) The below code for instance causes an error:
On line #8, the The error I get if I run the phpmd on command line is: As @blueyed mentioned I think I have the wrong errorfomat. |
Ahhh, I've got version 2.6.0 which doesn't give a token error. |
Has the errorformat changed between those versions, too? |
@esniper |
The "unexpected token" error also depends on the PHP version you're using probably?! |
Not quite. PHP mess detector uses PDepend, which needs to be updated when new language features are introduced for example phpmd/phpmd#347 |
From the issue linked, it looks like the merge happened for version 2.5.1. Which means that 2.5.0 (Which I'm using) still can't handle PHP 7.0. However, I'm still curious as to why the error message (regardless of the root cause of the error) doesn't get processed. |
@esniper It would really help to have some examples here. Maybe it's just an issue that the old version (or phpmd in general) uses an inconsistent error format? FWIW, Syntastic uses I think it's an issue with phpmd, and you should file it there - after verifying it with the latest version. |
Closing this due to missing feedback - and assuming it might be fixed by updates. |
Neomake configuration in nvim:
Expected behavior
There is one error in the file that I'm running Neomake on. But the error doesn't get displayed in either the status line or airline.
Note: phpcs works as expected.
Steps to reproduce
:Neomake
in a php file with phpmd errors.Output from (verbose) NeomakeInfo
Output from
:messages
:As you can see above, there is an error in
somefile.php
. however, none of this gets displayed.The text was updated successfully, but these errors were encountered: