[TxMt] Re: Simple question re. running a Ruby program

Marc Chanliau marc.chanliau at gmail.com
Tue Jan 10 05:01:49 UTC 2012


Thanks for the answer, Adam.

I've followed the instructions you provided. My path is in Txmate
preferences.
I have the PATH variable = /usr/bin:/bin:/usr/sbin:/sbin
I have the TM_RUBY variable = /Users/marcc/.rvm/rubies/ruby-1.9.2-p290/bin

When I run a program, I don't get any error, there's simply no output. The
only visible message is "Program exited with code #1 after 0.00 seconds"

Thanks


On Mon, Jan 9, 2012 at 7:09 PM, Adam Sharp <adsharp at me.com> wrote:

> On 10/01/2012, at 1:48 PM, Marc Chanliau wrote:
>
> I'm using Txmate 1.5.10 on Lion.
>
> [...]
>
>
> First I downloaded Ruby 1.9.2 from RVM and I modified my path in .profile
> as follows:
> PATH=$PATH:.:~/.rvm/rubies/ruby-1.9.2-p290
> export PATH
> Could that be the reason I'm having problems?
>
>
> This won't affect TM, which keeps its own PATH variable rather than
> sourcing it from your profile:
> http://wiki.macromates.com/Troubleshooting/TextMateAndThePath.
>
> I've changed a few things in my set up, though, so that might be the
> reason (?).
>
>
> Did you modify TM's PATH variable in Preferences > Advanced > Shell
> Variables?
>
> I've always been able to run Ruby programs from within Txmate, now I can't.
>
>
> Is the problem that TM can't locate your Ruby executable? If the PATH
> isn't your problem, please provide the error message you're getting.
>
> Best,
>
> Adam
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20120109/652256b9/attachment.html>


More information about the textmate mailing list