-
Notifications
You must be signed in to change notification settings - Fork 126
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
All attempts to sniff PHP files in ST2 error out #79
Comments
I've never seen this error running within ST2 on Windows, Linux or Mac.. A quick google brought up this result: http://stackoverflow.com/questions/4834483/is-this-the-right-way-to-run-a-shell-script-inside-python Is the PHP_CodeSniffer a standard install? I've just done a fresh install of the plugin on ST2 on a Mac with PHP_CodeSniffer 1.4.5 and it is working as intended. This leads me back to the link above. |
Hah! Holy shit -- it was literally a missing shebang. My file (installed via Homebrew) was originally just: /usr/bin/env php /usr/local/Cellar/php-code-sniffer/1.4.5/scripts/phpcs $* Adding Go on and close this guy up. |
Thanks for getting back to me. So, my question here is, are all homebrew installations like this? If so I'll need to update the readme |
I just uninstalled and re-installed Homebrew's |
I just can't seem to get this to work. Every time I try to sniff the code for a PHP file, I console shows the following:
I am able to issue the command above into Terminal, and get the expected output, so
phpcs
itself seems to be functioning correctly.Not sure if it makes a difference, but here's my version info:
Here's the sum of my complete user settings file:
The text was updated successfully, but these errors were encountered: