Having a hard time to get ruby scripts to recognize modules. Checked "$:" and got the following:
/usr/lib/ruby/site_ruby/1.8 /usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0 /usr/lib/ruby/site_ruby/1.8/universal-darwin8.0 /usr/lib/ruby/site_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/powerpc-darwin8.0 /usr/lib/ruby/1.8/universal-darwin8.0
The module I am trying to "require" is in this list (the first listing in fact). When I try to to run script from TextMate "command + R" the script keeps failing. When I ask text mate to get required "shift + command + D" TextMate complains that it can not find require "snmp". When I run script from the terminal though it finds the 'require' I requested. Any ideas?
Brad
On 14 Jun 2007, at 12:56, Brad Hutchins wrote:
Checked "$:"
Did you do this in TM? E.g. in a document
ruby -e'$><<$:*$/'
Then press ⌃R
Most likely TM is using a different version of Ruby than you use in the terminal. Compare “which ruby” ⌃R vs “which ruby” in Terminal
Actually now that I am working on this after having some sleep I came to realization that it was not complaining about the script I was trying to run. Control + R in TM is not working at all. A few days ago I updated the tmbundle for Ruby from the textmate site and had not run a script since then. My guess is something went wrong. Conrtol + R did work before hand. Here is a screen grab of what it is complaining about and the file that it is complaining about. Yes I tested this against scripts that worked with Control + R before hand. Getting same error.
Brad
On 6/14/07, Ciarán Walsh ciawal@gmail.com wrote:
On 14 Jun 2007, at 12:56, Brad Hutchins wrote:
Checked "$:"
Did you do this in TM? E.g. in a document ruby -e'$><<$:*$/'
Then press ⌃R
Most likely TM is using a different version of Ruby than you use in the terminal. Compare "which ruby" ⌃R vs "which ruby" in Terminal
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
If you update bundles from the SVN repository you need to make sure your Support folder is up to date as well. Check that out and try again.
For future reference: I assume you mean Command-R, not Control-R; and a textual error message is generally better than a screenshot.
On 14 Jun 2007, at 17:51, Brad Hutchins wrote:
Actually now that I am working on this after having some sleep I came to realization that it was not complaining about the script I was trying to run. Control + R in TM is not working at all. A few days ago I updated the tmbundle for Ruby from the textmate site and had not run a script since then. My guess is something went wrong. Conrtol + R did work before hand. Here is a screen grab of what it is complaining about and the file that it is complaining about. Yes I tested this against scripts that worked with Control
- R before hand. Getting same error.
Brad
On 6/14/07, Ciarán Walsh ciawal@gmail.com wrote: On 14 Jun 2007, at 12:56, Brad Hutchins wrote:
Checked "$:"
Did you do this in TM? E.g. in a document
ruby -e'$><<$:*$/'
Then press ⌃R
Most likely TM is using a different version of Ruby than you use in the terminal. Compare "which ruby" ⌃R vs "which ruby" in Terminal
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
<require missing.tiff>
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thanx, that did the trick. Sorry for the lame question, kinda new at this.
Brad
On 6/14/07, Ciarán Walsh ciawal@gmail.com wrote:
If you update bundles from the SVN repository you need to make sure your Support folder is up to date as well. Check that out and try again.
For future reference: I assume you mean Command-R, not Control-R; and a textual error message is generally better than a screenshot.
On 14 Jun 2007, at 17:51, Brad Hutchins wrote:
Actually now that I am working on this after having some sleep I came to realization that it was not complaining about the script I was trying to run. Control + R in TM is not working at all. A few days ago I updated the tmbundle for Ruby from the textmate site and had not run a script since then. My guess is something went wrong. Conrtol + R did work before hand. Here is a screen grab of what it is complaining about and the file that it is complaining about. Yes I tested this against scripts that worked with Control + R before hand. Getting same error.
Brad
On 6/14/07, Ciarán Walsh ciawal@gmail.com wrote:
On 14 Jun 2007, at 12:56, Brad Hutchins wrote:
Checked "$:"
Did you do this in TM? E.g. in a document ruby -e'$><<$:*$/'
Then press ⌃R
Most likely TM is using a different version of Ruby than you use in the terminal. Compare "which ruby" ⌃R vs "which ruby" in Terminal
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
<require missing.tiff>
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate