[TxMt] Some Bundle Questions

Chris Thomas chris at cjack.com
Thu Mar 10 06:52:41 UTC 2005


On Mar 9, 2005, at 9:48 PM, Eric Ocean wrote:

>
> Now, Add to Repository fails with:
>
>     /bin/bash: line 11: ruby: command not found

This is probably the BASH_ENV problem. We should fail more gracefully 
and support TM_RUBY, but -- currently -- we don't.

     Date:     January 27, 2005 4:38:47 AM PST
     From:       cryo at cyanite.org
     Subject:     Re: [TxMt] ruby not found error
     To:       textmate at lists.macromates.com
     Reply-To:       textmate at lists.macromates.com


On 27. jan 2005, at 13:15, David Casal wrote:

> Hello all,
>
> Stupid question here...I have:
>
> ruby /Users/dc/Documents/txt/scripts/todo2log.rb $TM_FILEPATH

It can't locate ruby _here_.. doesn't matter if the shebang is right 
later on (it's not even used). Most likely your ruby-path is setup in 
~/.bash_profile, which is not sourced by TM. A solution that should fix 
everything path-related:

Make a file in your home-dir, say   .bash_env  and have it contain:
source /etc/profile
source ~/.bash_profile

Then set TM's BASH_ENV variable to: ~/.bash_env

That should source all relevant path stuff.

A completely different solution is of course to call the script 
directly:
/Users/dc/Documents/txt/scripts/todo2log.rb $TM_FILEPATH
..it needs to be +x of course, for this to work.

http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list