php-parallel-lint / PHP-Parallel-Lint

This tool check syntax of PHP files faster than serial check with fancier output.
Other
287 stars 21 forks source link

The tool blocks for ever at a certain point without going on and without crashing #144

Open realtebo opened 1 year ago

realtebo commented 1 year ago

I'm lint a very huge and dark and bad legacy codebase of over 20k files.

All is ok when linting against php 5.6.

Checked 20401 files in 272.9 seconds
No syntax error found

But when linting against php 7.4, at a certain point, the progress 'stops', the tool doesn't output nothing and do not crash and do not go more on.

............................................................ 10620/20400 (52 %)
............................................................ 10680/20400 (52 %)
............................................................ 10740/20400 (52 %)
............................................................ 10800/20400 (52 %)
............................................................ 10860/20400 (53 %)
............................................................ 10920/20400 (53 %)
.....................................

I ask you kindly to add an option to output something verbosely, so we can try to understand what is doing and why it's stopping to do anything without exiting and/or crashing

I already tried to add -j 1 to avoid memory/cpu problems, but nothing changes

I am actually trying to parse one subfolder at time (I have > 100) to narrow the problem

realtebo commented 1 year ago

Found the guilty, but I've not understand the reason:

the problem is with jpgrph-1.11 folder [not a vendor folder, is a source, copy/paste here].

Linting each single file with php -l I got only some deprecated, but not syntax check.

I cannot diagnose why the tools is freezing linting this folder.

grogy commented 10 months ago

Hello,

do you have a link to the source code so I can do the detection?