Skip to content
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

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

Open
realtebo opened this issue Jul 19, 2023 · 2 comments

Comments

@realtebo
Copy link

realtebo commented Jul 19, 2023

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
Copy link
Author

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
Copy link
Member

grogy commented Dec 29, 2023

Hello,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants