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

Install process for ST3 (I'm on OS X) #29

Open justinetr opened 11 years ago

justinetr commented 11 years ago

Hey, I don't think it says this anywhere in the repo, but installing this package using package control on ST3 (on OS X) gave me an error that it's not able to find a file properly: "PhpTidy cannot find the script at ~/Library/Application Support/Sublime Text 3/Packages/PhpTidy/wp-phptidy.php."

Sure enough, the file isn't there, and I don't even think the package directory was there either as I guess ST3 changed the way packages are installed.

I removed the package via package control and installed via cloning this repo into my packages directory. After that it was just a matter of renaming the directory:

$ cd "~/Library/Application Support/Sublime Text 3/Packages"
$ git clone https://github.com/welovewordpress/SublimePhpTidy.git
Cloning into 'SublimePhpTidy'...
remote: Counting objects: 122, done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 122 (delta 60), reused 93 (delta 37)
Receiving objects: 100% (122/122), 49.24 KiB, done.
Resolving deltas: 100% (60/60), done.
$ ls
ETR Bundle           Package Control      Solarized-Darcula    SublimePhpTidy       User                 tern_for_sublime
HTML-CSS-JS Prettify SideBarEnhancements  Sublime-JSHint       Theme - Soda         colour-schemes       tomorrow-theme
$ mv SublimePhpTidy/ PhpTidy
kenvunz commented 10 years ago

it works, thanks for the tip

ravinderk commented 10 years ago

many many thanks. it works. but why you change folder name from SublimePhpTidy to PhpTidy ?

homerjam commented 10 years ago

Worked for me! Thanks!

tylerdigital commented 10 years ago

Works for me too, perfect thanks

khornberg commented 10 years ago

Works for me as well on Ubuntu. Is there a known reason that package manager hasn't been updated to show this works with ST3?

timothevs commented 10 years ago

@ravinderk It seems that the code hasn't been updated to reflect the new SublimePhpTidy directory. When you execute the Tidy script, it ends up looking for PhpTidy, as evidenced by the error message=> "PhpTidy cannot find the script at ~/Apps/Sublime Text 3/Packages/PhpTidy/wp-phptidy.php."

aaronpeterson commented 10 years ago

Same here. In fact my error is pointing to a file saying it doesn't exist when it indeed does. PhpTidy cannot find the script at ~/Library/Application Support/Sublime Text 2/Packages/PhpTidy/wp-phptidy.php

I see this file. It exists.

subharanjanm commented 10 years ago

It worked for me. Thanks

Lodesys commented 9 years ago

Installed with no problems. Thanks for doing this!