-
Notifications
You must be signed in to change notification settings - Fork 23
Successful lint with PHP startup errors should exit with 0 not 254 #33
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
Comments
@Seldaek Thanks for reporting this. I've just had a quick look and as far as I can see, the scan finishes without any actual issues. (it scanned the 197/197 files) The error output you are seeing starts with "Error in skip-linting.php process\nError output:" and shows the warnings about Redis and MongoDB you also see in several other places in the Travis script output. Those are unrelated to PHP Parallel Lint, Parallel Lint just comes across them and saves them to show at the end. |
Oh I see, thanks. I misinterpreted the output as the warnings for redis/mongo showed up so many times. I'd argue if linting succeeds the process should exit with 0 though as a php misconfiguration like this one is a problem indeed but nothing to do with the linter and it's not its job to complain about it :) Outputting it for info would be enough IMO. |
I'd agree, but am not sure it's that easy (haven't looked into it in detail yet though). IIRC the output received from the PHP linter is all collected and saved to memory for display at the end of the run. |
Currently trying to see if there is an PHP ini setting which can be used to suppress these errors when starting the various processes.... if anyone knows of one... feel free to chip in. |
Hmm... |
@Seldaek Would you be willing to do a test run with the Monolog repo using this branch: https://github.com/jrfnl/PHP-Parallel-Lint/tree/feature/33-ignore-startup-errors ? I suspect that may fix it, but it needs testing as I haven't been able to reproduce the issue locally (Windows with too many PHP versions confusing things). |
I think all you need is an |
@Seldaek I tried that ( |
Doesn't seem to work https://travis-ci.org/github/Seldaek/monolog/jobs/690069478 |
Darn... Thanks for testing. Back to the drawing board I guess... |
Been running some tests and the weirdest thing is that the fix seems to work fine with |
@Seldaek I think I might have got a working solution: https://travis-ci.com/github/jrfnl/monolog/jobs/339134575 |
Cool thanks |
I've just run into this issue today with an incompatibility between Dynatrace and PHP 7.0 (an unrelated problem we're working), which is reported as a startup error. Thanks for doing the work and finding the solution. Do you have a timeline for when this fix is likely to make it to packagist? |
@c0dehulk No clue. Depends on when the maintainer takes a look (which I'm not). |
Merged, thank you |
I am not sure exactly what the problem is, but parallel-lint exits with "Error in skip-linting.php process" on php 8, you can check the full output at https://travis-ci.org/github/Seldaek/monolog/jobs/689943262#L395
The text was updated successfully, but these errors were encountered: