-
Notifications
You must be signed in to change notification settings - Fork 438
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
Phpcs and PhpLint tasks fail on Windows 7 #275
Comments
Currently, that is intended behaviour. You can find additional information here: The problem is that the CLI input string on cmd.exe is limited to 8191 characters. Tasks like That is why I've choosen to display the error message and mark the test as skipped. I would accept a PR which contains a better solution. |
Why don't you just break it down into multiple invocations?
…On 16 Jan 2017 07:50, "Toon Verwerft" ***@***.***> wrote:
Currently, that is intended behaviour. You can find additional information
here:
https://github.com/phpro/grumphp/blob/master/src/
GrumPHP/Util/Platform.php#L19
https://support.microsoft.com/en-us/kb/830473
The problem is that the CLI input string on cmd.exe is limited to 8191
characters. Tasks like phplint and phpcs contain the paths to the files
that are being checked. During a run command, the list of files wil exceed
this amount which results in some strange errors on windows.
That is why I've choosen to display the error message and mark the test as
skipped.
I would accept a PR which contains a better solution.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#275 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAcuYjNlR0Zn3IlfjKjAGkviIufMzozwks5rSyEngaJpZM4Lj4T_>
.
|
That's a possible solution but it would require code changes in multiple tasks: Most of the tasks run only one process. Maybe the processes part could be abstracted into a new layer so that it doesn't matter if one or multiple tasks are started. The problem is only on Windows, so for other OS a split-up is not really necessary. |
I'm not sure that's true. That's what the
It is quite possible you just haven't hit the 2MB command line limit in any of your projects or tests but this remains a dormant problem waiting to happen. |
I don't think I am going to hit the unix limit anytime soon, but I do agree that it is an issue. |
Absolutely not, for the following reasons.
|
I'm also running into this issue. There is no fix for this yet? Update: When running tortoise git grumphp works. But it doesn't and brings the limit error when I run it manually using the Windows Powershell. |
Why do you ask that like it could have just magically fixed itself? If you're not going to put the work in, nothing's going to happen. |
Fixed in #796 |
Hey! Same problem with phpmd and phpstan tasks! |
Phpcs
andPhpLint
tasks are skipped on Windows 7 due to "the windows cmd input limit". As I understand, this error message is generated by GrumPHP so it is this project's prerogative to devise a suitable workaround for running these tasks on Windows.My configuration
Default.
Steps to reproduce:
bin/grumphp run
Result:
The text was updated successfully, but these errors were encountered: