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

Open
justinetr opened this Issue Oct 4, 2013 · 9 comments

Comments

Projects
None yet
10 participants
@justinetr

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

This comment has been minimized.

Show comment
Hide comment
@kenvunz

kenvunz Dec 4, 2013

it works, thanks for the tip

kenvunz commented Dec 4, 2013

it works, thanks for the tip

@ravinderk

This comment has been minimized.

Show comment
Hide comment
@ravinderk

ravinderk Dec 6, 2013

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

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

@homerjam

This comment has been minimized.

Show comment
Hide comment
@homerjam

homerjam Dec 17, 2013

Worked for me! Thanks!

Worked for me! Thanks!

@tylerdigital

This comment has been minimized.

Show comment
Hide comment
@tylerdigital

tylerdigital Dec 17, 2013

Works for me too, perfect thanks

Works for me too, perfect thanks

@khornberg

This comment has been minimized.

Show comment
Hide comment
@khornberg

khornberg Jan 16, 2014

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?

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

This comment has been minimized.

Show comment
Hide comment
@timothevs

timothevs Feb 10, 2014

@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."

@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

This comment has been minimized.

Show comment
Hide comment
@aaronpeterson

aaronpeterson May 7, 2014

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.

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.

@jb510 jb510 referenced this issue in akalongman/sublimetext-codeformatter May 15, 2014

Closed

PHP - Space Between parentheses and brackets? #63

@subharanjanm

This comment has been minimized.

Show comment
Hide comment
@subharanjanm

subharanjanm Sep 24, 2014

It worked for me. Thanks

It worked for me. Thanks

@Lodesys

This comment has been minimized.

Show comment
Hide comment
@Lodesys

Lodesys Oct 31, 2014

Installed with no problems. Thanks for doing this!

Lodesys commented Oct 31, 2014

Installed with no problems. Thanks for doing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment