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

Absolutely nothing happens on Mac OS X #8

Open pyronaur opened 11 years ago

pyronaur commented 11 years ago

I can't even to begin to imagine what could be the possible cause for it not to work.

ctrl + alt + T Does nothing. cmd + shift + P -> PHP Tidy doesn't do anything as well.

When I do ctrl + backtick (to open up console) I see no output at all for the plugin (default sublime text stuff is there though (reloading plugins, etc. ) I went in to the Plugin directory and did a chmod a+x * and still no results.

System: Mac OS X Lion

➜  PhpTidy  python --version
Python 2.7.1
➜  PhpTidy  /usr/bin/php -v
PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
➜  PhpTidy  ls -la
total 464
drwxr-xr-x   16 hb  staff    544 Oct 26 09:55 .
drwxr-xr-x@ 100 hb  staff   3400 Oct 26 09:58 ..
-rwxr-xr-x    1 hb  staff     57 Oct 26 09:54 Default (Linux).sublime-keymap
-rwxr-xr-x    1 hb  staff     57 Oct 26 09:54 Default (OSX).sublime-keymap
-rwxr-xr-x    1 hb  staff     57 Oct 26 09:54 Default (Windows).sublime-keymap
-rwxr-xr-x    1 hb  staff  15131 Oct 26 09:54 LICENSE
-rwxr-xr-x    1 hb  staff   1140 Oct 26 09:54 Main.sublime-menu
-rwxr-xr-x    1 hb  staff     57 Oct 26 09:54 PhpTidy.sublime-commands
-rwxr-xr-x    1 hb  staff    147 Oct 26 12:28 PhpTidy.sublime-settings
-rwxr-xr-x    1 hb  staff   1517 Oct 26 09:54 README.md
-rwxr-xr-x    1 hb  staff    232 Oct 26 09:54 package-metadata.json
-rwxr-xr-x    1 hb  staff   4454 Oct 26 09:54 php_tidy.py
-rwxr-xr-x    1 hb  staff   3411 Oct 26 09:55 php_tidy.pyc
-rwxr-xr-x    1 hb  staff  54027 Oct 26 09:54 phptidy-coda.php
-rwxr-xr-x    1 hb  staff  55898 Oct 26 09:54 phptidy.php
-rwxrwxrwx    1 hb  staff  58611 Oct 26 09:54 wp-phptidy.php

Help appreciated much :)

pdewouters commented 11 years ago

nor does it on my Win 7. well 2 console windows briefly appear then disappear.

andreud commented 11 years ago

Exactly the same in Win 7 here.

carstingaxion commented 11 years ago

for me too, on Win7 with SublimeText2 as portable Version for x64

raamdev commented 10 years ago

This happened to me too, but going to View → Show Console and then rerunning Tidy PHP led me to see a UnicodeDecodeError, which I was able to fix using this suggestion: https://github.com/welovewordpress/SublimePhpTidy/issues/23#issuecomment-28237296

lumberman commented 10 years ago

I found that the code you are working on should be saved in the file with .php extension. It doesn't work in new created tab that wasn't saved yet.