akalongman / sublimetext-codeformatter

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

Not able to run php_beautifier #40

Closed furins closed 10 years ago

furins commented 10 years ago

using ST3, I just installed sublimetext-codeformatter using package installer and php_beautifier from beta channel.

sudo pear install --alldeps channel://pear.php.net/php_beautifier-0.1.15

then I restarted ST3 and started formatting a simple php file. I get this error

CodeFormatter

Format error:
[Errno 2] No such file or directory: 'php_beautifier'

however, if I run php_beautifier from the command line, I'm able to use it. How can I help sublimetext-codeformatter to find the executable?

akalongman commented 10 years ago

I will fix it in future releases

kenianbei commented 10 years ago

Similar or same issue, except I'm getting this error instead:

Format error: [Errno 2] No such file or directory: 'node'

I'm getting this error for both js and php formatting.

ghost commented 10 years ago

+1

CodeFormatter

Format error:
[Errno 2] No such file or directory: 'php_beautifier'
akalongman commented 10 years ago

Check 2.1.0 version from git and report me