benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
813 stars 126 forks source link

OSError: [Error 2] No such file or directory #48

Closed AndrewDryga closed 12 years ago

AndrewDryga commented 12 years ago

Yes, i saw FAQ, and i've tryed to fix it by defining full paths (even trough evertything is in PATH and works fine from console), and nothing helped.

User config:

{
    "show_debug": true,
    "phpcs_php_path": "/usr/local/opt/php54/bin/php",
    "phpmd_executable_path": "/usr/local/opt/php54/bin/phpmd",
    "phpcs_executable_path": "/usr/local/opt/php54/bin/phpcs",
    "php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
    "phpmd_run": true
}

I've double-checked paths:

Andrew-MacBook-Pro:odom macuser$ /usr/local/opt/php54/bin/php -v
PHP 5.4.7 (cli) (built: Oct 11 2012 13:23:05) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
Andrew-MacBook-Pro:odom macuser$ /usr/local/opt/php54/bin/phpmd -v
Mandatory arguments:
1) A php source code filename or directory. Can be a comma-separated string
2) A report format
3) A ruleset filename or a comma-separated string of rulesetfilenames
...
Andrew-MacBook-Pro:odom macuser$ /usr/local/opt/php54/bin/phpcs --help
Usage: phpcs [-nwlsaepvi] [-d key[=value]]
    [--report=<report>] [--report-file=<reportfile>] [--report-<report>=<reportfile>] ...
    [--report-width=<reportWidth>] [--generator=<generator>] [--tab-width=<tabWidth>]
    [--severity=<severity>] [--error-severity=<severity>] [--warning-severity=<severity>]
    [--config-set key value] [--config-delete key] [--config-show]
    [--standard=<standard>] [--sniffs=<sniffs>] [--encoding=<encoding>]
    [--extensions=<extensions>] [--ignore=<patterns>] <file> ...
...
Andrew-MacBook-Pro:odom macuser$ php /usr/local/bin/php-cs-fixer
PHP CS Fixer version 0.2 by Fabien Potencier

Usage:
  [options] command [arguments]

Options:
  --help           -h Display this help message.
AndrewDryga commented 12 years ago

Fixed by opening phpcs.py and saving it again. Oo.

fotografi commented 8 years ago