Sorry for the text dump but I received this error after trying to run a few lines of ruby. I'm fairly new to *nix which I think might be related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in `filter_stdout': undefined method `test_script?' for nil:NilClass (NoMethodError) from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
I tried running a simple puts, too and got this.
Jose
Hola José,
I am also novice, but with TM ;)
try to send us the source (those "few lines of ruby")
El 12/02/2007, a las 6:35, Jose Villalobos escribió:
Sorry for the text dump but I received this error after trying to run a few lines of ruby. I'm fairly new to *nix which I think might be related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/ Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in `filter_stdout': undefined method `test_script?' for nil:NilClass (NoMethodError) from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Ruby.tmbundle/Support/RubyMate/run_script.rb:73
Well, I tried writing the Hello World bit.
puts 'hello world'
I tried it with a slightly larger program that had a few more 'puts' in it (going over some tutorial) but that was it.
Jose
On 2/12/07, Juan juanfc@lcc.uma.es wrote:
Hola José,
I am also novice, but with TM ;)
try to send us the source (those "few lines of ruby")
El 12/02/2007, a las 6:35, Jose Villalobos escribió:
Sorry for the text dump but I received this error after trying to run a few lines of ruby. I'm fairly new to *nix which I think might be related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/ Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in `filter_stdout': undefined method `test_script?' for nil:NilClass (NoMethodError) from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Ruby.tmbundle/Support/RubyMate/run_script.rb:73
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
Jose,
If you maintain an svn checkout of the Support directory, you need to update it. It looks like you have some version of it in /Users/ josevillalobos/Library/Application Support/TextMate. If you're not sure how that got there, you can delete the Support directory in that folder, and RubyMate should start working for you. In addition, make sure that TextMate is set to "Cutting-Edge" updates in the preferences.
- Alex
On Feb 12, 2007, at 6:57 AM, Jose Villalobos wrote:
Well, I tried writing the Hello World bit.
puts 'hello world'
I tried it with a slightly larger program that had a few more 'puts' in it (going over some tutorial) but that was it.
Jose
On 2/12/07, Juan juanfc@lcc.uma.es wrote:
Hola José,
I am also novice, but with TM ;)
try to send us the source (those "few lines of ruby")
El 12/02/2007, a las 6:35, Jose Villalobos escribió:
Sorry for the text dump but I received this error after trying
to run
a few lines of ruby. I'm fairly new to *nix which I think might be related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/ Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in `filter_stdout': undefined method `test_script?' for nil:NilClass (NoMethodError) from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from /Users/josevillalobos/Library/Application Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from /Applications/TextMate.app/Contents/SharedSupport/Bundles/ Ruby.tmbundle/Support/RubyMate/run_script.rb:73
_ 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
is it, for example:
#!/usr/bin/env ruby -w
puts "Hola"
Where was it run? Inside TM (via Cmd-R), from the Terminal?
El 12/02/2007, a las 15:57, Jose Villalobos escribió:
Well, I tried writing the Hello World bit.
puts 'hello world'
I tried it with a slightly larger program that had a few more 'puts' in it (going over some tutorial) but that was it.
I didn't have the first line on there, simply the second one. However, I deleted the support folder and now it works fine.
Thanks! Jose
On 2/12/07, Juan juanfc@lcc.uma.es wrote:
is it, for example:
#!/usr/bin/env ruby -w puts "Hola"
Where was it run? Inside TM (via Cmd-R), from the Terminal?
El 12/02/2007, a las 15:57, Jose Villalobos escribió:
Well, I tried writing the Hello World bit.
puts 'hello world'
I tried it with a slightly larger program that had a few more 'puts' in it (going over some tutorial) but that was it.
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