Home Download Buy Blog Forum Support

PHP Beautifier error

PHP Beautifier error

Postby Stalkerok on Mon Apr 02, 2012 1:57 pm

Hello, I found Sublime Package Control.
Then installed PHP Beautifier.
But the choice of Format: PHP
error occurs in the console:

Code: Select all
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 350, in run_
  File ".\php_beautifier.py", line 14, in run
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 842, in _execute_child
WindowsError: [Error 2]


how to fix it?
Sublime Text 2 Beta is 2181
ubuntu 12.04 x32
Windows 7 x32
Last edited by Stalkerok on Tue Jun 19, 2012 7:26 pm, edited 1 time in total.
Stalkerok
 
Posts: 3
Joined: Mon Apr 02, 2012 1:49 pm

Re: PHP Beautifier error

Postby Lubje on Tue Jun 19, 2012 2:49 pm

I've got the exact same problem..

I'm using Windows 7 64-bits.
Lubje
 
Posts: 1
Joined: Tue Jun 19, 2012 2:08 pm

Re: PHP Beautifier error

Postby asmodai on Wed Jun 20, 2012 2:20 pm

Did you read https://github.com/SublimeText/PhpBeaut ... stallation ?
It requires a tool to be present on your $PATH and I think you don't have it installed.
asmodai
 
Posts: 73
Joined: Mon Mar 01, 2010 10:42 am

Re: PHP Beautifier error

Postby eternoperegrino on Thu Aug 30, 2012 12:11 pm

I had the same issue. To solve it just replace the line 13 at php_beautifier.py with:
cmd = "php_beautifier.bat"

That solved my problem, because the actual command is installed by pear in windows as php_beautifier.bat

cheers
eternoperegrino
 
Posts: 1
Joined: Thu Aug 30, 2012 12:07 pm

Re: PHP Beautifier error

Postby Stalkerok on Fri Sep 28, 2012 11:24 am

changed to cmd = "php_beautifier.bat" , but there was an error:

Code: Select all
  File ".\sublime_plugin.py", line 362, in run_
    return self.run(edit)
  File ".\php_beautifier.py", line 19, in run
  File ".\php_beautifier.py", line 34, in fixup
  File ".\encodings\utf_8.py", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xad in position 14: unexpected code byte
Stalkerok
 
Posts: 3
Joined: Mon Apr 02, 2012 1:49 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 10 guests