-
Notifications
You must be signed in to change notification settings - Fork 13
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
Does not work on Windows + cygwin (php/js) #7
Comments
Not sure. I don't have a similar setup at my disposal, but could you try uncommenting the |
|
And for js file:
(the |
Maybe something goes wrong with the stdin redirection. Can you try by adding
to the php section, e.g. here? https://github.com/kvz/ochtra/blob/master/pre-commit#L93 (just like for python, yaml, etc) (let's focus on php, once that works, we can get js to work as well) |
Output is now:
But still I also tried to comment out removing of the tmp file and tried this:
|
Ping @tomasfejfar ? If I can remember, you said it worked for you on Windows, right? |
I just tried |
Not sure I use(d) the same version. (I installed by means of http://blog.prskavec.net/2014/01/git-a-pre-commit-hook-pro-kontrolu-syntaxe-v-mnoha-jazycich/) Unfortunatelly (if you remember) I accidentally trashed my .git with FTP sync last week so I can't really tell :( |
Maybe pipefail doesn't work. What if you try wihout paint? e.g. Also, what is your bash version? |
After changing the line 122, error is reported from php -l (but it is still commited)
|
But this may be the issue:
But the paint package is not available in cygwin (or is it part of some other package?) |
I was thinking that it prevented the php exit code from bubling up because what if you type
|
That's probably it:
exit code is I also tried this:
I will have a look on a cygwin later, to see if I can make the error codes work. |
js file with error:
php file with error:
When I run the lint directly:
Any hints?
The text was updated successfully, but these errors were encountered: