-
Notifications
You must be signed in to change notification settings - Fork 1
[Bug]: Running PHP linters with php-parallel-lint throws an executable related issue #631
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
This is an issue within the parallel-lint package, as it does not properly wrap the php executable in quotes to handle the space in the folder name. I forked the package and applied the fix to make it work: JakubOnderka/PHP-Parallel-Lint@766d5f1 Unfortunately, the package is archived, which means that I can not PR my changes back to the project. Feel free to fork parallel-lint yourself with the changes from my commit above. |
As reported in beyondcode/herd-community#631. Co-authored-by: Marcel Pociot <[email protected]>
As reported in beyondcode/herd-community#631. Co-authored-by: Marcel Pociot <[email protected]>
As reported in beyondcode/herd-community#631. Co-authored-by: Marcel Pociot <[email protected]>
As reported in beyondcode/herd-community#631. Co-authored-by: Marcel Pociot <[email protected]>
Platform
macOS
Operating system version
macOS 14.4.1 (23E224)
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.50 (Build 23)
PHP Version
PHP 8.3.4 (cli) (built: Apr 9 2024 10:42:16) (NTS)
Bug description
Running
php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint .
throwsUnable to execute '/Users/{username}/Library/Application Support/Herd/bin/php83'
.Traced the issues to method
getPhpExecutable
at L:97 - https://github.com/JakubOnderka/PHP-Parallel-Lint/blob/9df953cd03414e88dca163b4a3e8e9e972252513/src/Process/PhpExecutable.php#L97php-parallel-lint/php-parallel-lint
Package version 1.3.2Steps to reproduce
php-parallel-lint/php-parallel-lint
packagephp ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint .
Relevant log output
No response
The text was updated successfully, but these errors were encountered: