I can't find instructions on how to install bundles on the Textmate site, and this project doens't have any either.

I've put the downloaded folder is such a way to have:

/Users/joachim/Library/Application\ Support/TextMate/Bundles/psynaptic-php-drupal.tmbundle-0d64d4e/Commands

and reloaded bundles in TM. Should I see a Drupal menu item? I don't.

Comments

shrop’s picture

Instructions are here: http://github.com/psynaptic/php-drupal.tmbundle

I wonder if you need to remove "-0d64d4e" from the file name so TextMate see the .tmbundle extension? Try that and then quit and restart TextMate.

psynaptic’s picture

Status: Active » Needs work

Yep, that's a bit of an idiosyncrasy of github I'm afraid. You need to rename the bundle so it has .tmbundle extension. Instructions should probably have something about this.

joachim’s picture

Yeah the readme on github doesn't have any installation instructions...

tnanek’s picture

Not sure if this should go here or what, but using git:

By the instructions on Bundles here

I entered the following lines in my terminal:

cd /Applications/TextMate.app/Contents/SharedSupport/Bundles

git clone git://github.com/psynaptic/php-drupal.tmbundle.git # gotten from the github project page, or the Drupal project page.

Then either start TextMate, or go to Bundles --> Bundle Editor --> Reload Bundles, and it should be working. To test, in any php file, type drupal and hit tab, it should autocomplete to drupal_get_path('module', 'module');

I'd also advise reading through the readme text available on the github project page, for that suggests adding certain shell variables.

--EDIT--
And by the way, the code on the end of the file is an identifier for git; that essentially is telling it what version to download, that won't be on the actual file ultimately if gotten through git.

texas-bronius’s picture

I followed #4 above (wow, that's a lot of Ninja), I tab-complete "drupal" as my test and get:

The PHP Drupal Bundle is not installed properly. Press ⌃H for instructions.

Of course, ctrl-H does not have instructions...

I neglected to add shell variables per "Installation Instructions" in the original README/instructions, and now it works!

psynaptic’s picture

Status: Needs work » Fixed

I took what was mentioned in this issue and improved the documentation. You can find the latest information on the GitHub project page or from within the help file (accessible via ⌃+H in the bundle).

Sorry it took so long, the bundle is getting a lot of love at the moment. Pull to get all the new features.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.