joshbirk / ForceDotBundle

A Bundle for integrating TextMate with the Force.com Migration Tool / Force.com projects
30 stars 8 forks source link

Issues with Paths in Commands #7

Open pfeilbr opened 12 years ago

pfeilbr commented 12 years ago

All the hard coded references to ~/Library/Application\ Support/TextMate/Bundles/ForceDotBundle.tmbundle in the various commands don't work for me. When you install a bundle in TextMate it puts it in ~/Library/Application Support/TextMate/Pristine Copy/Bundles (http://j.mp/vdQsuB). For example ForceDotBundle gets put in ~/Library/Application Support/TextMate/Pristine Copy/Bundles/ForceDotBundle.tmbundle. The only time ~/Library/Application\ Support/TextMate/Bundles/ForceDotBundle.tmbundle gets created is if you make a change to the bundle in the TextMate bundle editor, and only the differences are stored there. The $TM_BUNDLE_SUPPORT environment variable should be used (http://j.mp/skTHh1).

Thanks for creating this. Very helpful.

joshbirk commented 12 years ago

Most welcome! Interesting - so is it the Keychain access, SOQL callout, etc., that fails?

Did you run the move_tools.sh or move_tools.command? That should create the path to TextMate/Bundles/etc/ to hold the support shell and php scripts, even if the rest of the bundle goes into Pristine. I did just earlier today put in a fix since those the mkdir references were off. I'll look at using the env vars from end to end though.

joshbirk commented 12 years ago

Should be noted though, that tonight I'm trying to get an update in to get around some of the keychains bugs as well - plus a downloadable zip with a better installer.

pfeilbr commented 12 years ago

Yes, Keychain access, and SOQL callout failed. I installed by cloning, then double-clicking on move_tools.command in Finder. After that finished I was only left with ~/Library/Application Support/TextMate/Pristine Copy/Bundles/ForceDotBundle.tmbundle, and nothing in ~/Library/Application\ Support/TextMate/Bundles/ForceDotBundle.tmbundle.

I see the new zip has been posted. I'll give that a try.

Thanks for the prompt reply!

joshbirk commented 12 years ago

There was a directory name mismatch with move_tools yesterday which should be fixed now, hopefully the new zip will work correctly. Let me know if not and I'll see about a new script.

joshbirk commented 12 years ago

And that zip had a typo in the installer it looks like :/ New upload.

joshbirk commented 12 years ago

OK, next build will remove the Tools directory, replace it with the correct Support directory and possible eliminate the need of the install script completely.