I'm using Txmate 1.5.10 on Lion. I've always been able to run Ruby programs from within Txmate, now I can't. I've changed a few things in my set up, though, so that might be the reason (?). 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?
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
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@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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 10/01/2012, at 4:01 PM, Marc Chanliau wrote:
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
This may help re. getting TM and RVM to play together: http://beginrescueend.com/integration/textmate/. Using rvm-auto-ruby seems to be the easiest way to ensure TM is pointed to the correct ruby version.
However it doesn't look like this is your problem.
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"
If you run your code from the command line, do you get any more output? If not, it looks like your code is just failing somewhere, before writing anything to stdout.
Adam
Adam,
This may help re. getting TM and RVM to play together:
http://beginrescueend.com/integration/textmate/. Using rvm-auto-ruby seems to be the easiest way to ensure TM is pointed to the correct ruby version.<<
That fixed the problem! (my TM_RUBY var was not correct).
Thanks again for all the help.
On Mon, Jan 9, 2012 at 9:21 PM, Adam Sharp adsharp@me.com wrote:
On 10/01/2012, at 4:01 PM, Marc Chanliau wrote:
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
This may help re. getting TM and RVM to play together: http://beginrescueend.com/integration/textmate/. Using rvm-auto-ruby seems to be the easiest way to ensure TM is pointed to the correct ruby version.
However it doesn't look like this is your problem.
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"
If you run your code from the command line, do you get any more output? If not, it looks like your code is just failing somewhere, before writing anything to stdout.
Adam
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
You've got two options here. The quick and dirty hacky way is to set TM_RUBY to point at /Users/<you>/.rvm/rubies/ruby-1.9.2-p290. Boom. You're done.
However, this completely negates the utility of RVM. What happens when you have projects which rely on different Ruby versions? You are better off following the RVM instructions for integrating with TextMate: http://beginrescueend.com/integration/textmate/
As an off-topic tangent, it looks as though you may be mis-using RVM. If you are using RVM to install Ruby you are better off letting RVM manage your path for you. RVM nicely handles lots of cases you and I wouldn't think of until our stuff gets broken. If you follow the normal RVM setup instructions your path (and plenty of other stuff) will do the right thing as you move between projects.
--mkb
On Jan 9, 2012, at 6:48 PM, Marc Chanliau wrote:
I'm using Txmate 1.5.10 on Lion. I've always been able to run Ruby programs from within Txmate, now I can't. I've changed a few things in my set up, though, so that might be the reason (?). 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?
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate