Closed glensc closed 8 years ago
You can try to edit src/Process/SkipLintProcess.php
file and add new this line into processLines
method:
var_dump($content);
run your command again and paste here an output?
ok. good grace. problem found:
bash-4.3# ./parallel-lint --ignore-fails bin/
PHP 5.3.29 | 10 parallel jobs
string(86) "
Fatal error: Call to undefined function preg_match() in Command line code on line 13
"
PHP Notice: Undefined offset: 1 in /src/src/Process/SkipLintProcess.php on line 85
PHP Notice: Undefined offset: 1 in /src/src/Process/SkipLintProcess.php on line 85
string(0) ""
string(0) ""
File bin/skip-linting.php has empty skip status. Please contact PHP Parallel Lint author.
bash-4.3#
but imho it's wrong to discard STDERR, should print out messages from subshells printing to STDERR, you'd be expecting STDOUT stream for the content.
how many times the src/Process/SkipLintProcess.php
is called out per recursive run of 100 files?
from code i read it takes bunch of filenames from STDIN, so perhaps remove the -n
php commandline option when invoking it? as that's what's causing pcre extension be missing that you skip loading any extensions.
I think, it is wired that preg_match
is loaded from module. But now are errors from SkipLint process properly showed.
@JakubOnderka could you please make new version?
seems there's even phar upload added to travis-ci, so new release would be super helpful not to build .phar on it's own
i get such error:
however i tried to reproduce this using public debian image and can not reproduce there
this is how i prepared env, and it works here:
the actual container where problem occours is not public.
any ideas what can be wrong here, or what commands to run as test to figure out the problem?