Closed
Description
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:
[Phpcs] /usr/local/bin/phpcs --report=checkstyle -n --standard=PEAR /Users/yanni/Documents/Dropbox/Projects/seo-unit/src/Prometheas/SeoUnit/ScriptParser.php
[Phpcs] cwd: /Users/yanni
Exception in thread Thread-17:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "./phpcs.py", line 398, in run
File "./phpcs.py", line 128, in get_errors
File "./phpcs.py", line 194, in execute
File "./phpcs.py", line 197, in parse_report
File "./phpcs.py", line 149, in shell_out
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
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:
- Sublime Text: 2.0.1, Build 2217
- PHP_CodeSniffer 1.4.5
Here's the sum of my complete user settings file:
{
"phpcs_executable_path": "/usr/local/bin/phpcs",
"phpmd_executable_path": "/usr/local/Cellar/php-md/1.4.1/libexec/phpmd.phar",
"php_cs_fixer_executable_path": "/usr/local/Cellar/php-cs-fixer/0.2.0/libexec/php-cs-fixer.phar"
}