akalongman / sublimetext-codeformatter

Code Formatter plugin for ST2/ST3
MIT License
772 stars 130 forks source link

Codeformater formaterror: #337

Open syothalassery opened 7 years ago

syothalassery commented 7 years ago

Im getting following error while pressing 'F12' (which one i assigned) '[WinError2] system cannot find the file specified' i followed exactly same as what mentioned in documentation on github .. Thanks .

digvijayad commented 6 years ago

It is giving that error because it cannot find your php executable file? You need to specify your php path in the package settings.

 "codeformatter_php_options":
    {
        "syntaxes": "php", // Syntax names which must process PHP formatter
        "php_path": "C:/UwAmp/bin/php/php-5.6.18/php.exe", // Path for PHP executable, e.g. "/usr/lib/php" or "C:/Program Files/PHP/php.exe". If empty, uses command "php" from system environments
   }