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: