welovewordpress / SublimePhpTidy

Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy
GNU General Public License v2.0
109 stars 30 forks source link

Newbie problem with Windows 7 ST2 Version. #20

Open sefod opened 11 years ago

sefod commented 11 years ago

Hi, I've installed this package on W7 and when I run the package, this is the result:

PhpTidy: Ok, this seems to be PHP PhpTidy: calling php.exe -v returned: 1 PhpTidy: buffer written to tmpfile: C:\Users\Sefo\AppData\Roaming\Sublime Text 2\Packages/PhpTidy/phptidy-sublime-buffer.php PhpTidy: calling script: php.exe "C:\Users\Sefo\AppData\Roaming\Sublime Text 2\Packages/PhpTidy/wp-phptidy.php" replace "C:\Users\Sefo\AppData\Roaming\Sublime Text 2\Packages/PhpTidy/phptidy-sublime-buffer.php" PhpTidy: tmpfile was processed and removed

But nothing happens to my code. I think that is because It can't access to the php.exe file, but following this Issue https://github.com/welovewordpress/SublimePhpTidy/issues/2 I've tried to fix the line 24 and change it to my EasyPHP's php.exe path like this:

phppath = 'C:\\Program Files\\EasyPHP-12.1\\php\\php546x120913065915\\php.exe'

Still having the same results (Nothing happens) What I'm doing wrong?

Thank you very much for your help and your work!

Regards

mrlinnth commented 10 years ago

same issue but mine is windows 8 x64 and sublime text 3 and using Uniform Server

update: never mind, it is fixed. doesn't need to edit the php path in phptidy py file. I have added the path in windows' PATH environmental variable.