I have recently become unable to run tests in TextMate using the Ruby bundle's Command-R "Run" option. It used to work, but at some point in the past few weeks I started getting this error:
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:143: undefined method `htmlize' for main:Object (NoMethodError) from /Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:101
Using TextMate Version 1.5.3 (1258) My /Library/Application Support/TextMate/Bundles directory is a svn checkout of http://macromates.com/svn/Bundles/trunk/Bundles Revision 5277
In case I was too vague, I'm trying to run a functional test for a Rails application by choosing Ruby > Run from the Bundles menu.
On 9/19/06, derek gulbranson derekgulbranson@gmail.com wrote:
I have recently become unable to run tests in TextMate using the Ruby bundle's Command-R "Run" option. It used to work, but at some point in the past few weeks I started getting this error:
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:143: undefined method `htmlize' for main:Object (NoMethodError) from /Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:101
Using TextMate Version 1.5.3 (1258) My /Library/Application Support/TextMate/Bundles directory is a svn checkout of http://macromates.com/svn/Bundles/trunk/Bundles Revision 5277
On 20/9/2006, at 7:37, derek gulbranson wrote:
I have recently become unable to run tests in TextMate using the Ruby bundle's Command-R "Run" option. It used to work, but at some point in the past few weeks I started getting this error:
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/ run_script.rb [...]
Try: svn up '/Library/Application Support/TextMate/Support'
Before you do though, could you:
cat '/Library/Application Support/TextMate/Support/version'
And tell me what version it reports.
I did not have a /Library/Application Support/TextMate/Support directory. I found in the documentation where I needed to add that and, having done so, everything works fine.
Thanks for the quick response, Alan. Take care.
On 9/19/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 20/9/2006, at 7:37, derek gulbranson wrote:
I have recently become unable to run tests in TextMate using the Ruby bundle's Command-R "Run" option. It used to work, but at some point in the past few weeks I started getting this error:
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/ run_script.rb [...]
Try: svn up '/Library/Application Support/TextMate/Support'
Before you do though, could you:
cat '/Library/Application Support/TextMate/Support/version'
And tell me what version it reports.
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
I'm having the same problem i deleted the contents of the ruby bundle and redid the svn up command and it still happened (r 5289)
Then i did svn up -r 5000 Which works as intended
cat '/Library/Application Support/TextMate/Support/version' returns 5209
Here is my Error RubyMate r5243 running Ruby v1.8.2 (/usr/bin/ruby)
untitled
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:108: undefined method `readpartial' for # (NoMethodError) from /Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:101:in `each' from /Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:10
Allan Odgaard wrote:
On 20/9/2006, at 7:37, derek gulbranson wrote:
I have recently become unable to run tests in TextMate using the Ruby bundle's Command-R "Run" option. It used to work, but at some point in the past few weeks I started getting this error:
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb [...]
Try: svn up '/Library/Application Support/TextMate/Support'
Before you do though, could you:
cat '/Library/Application Support/TextMate/Support/version'
And tell me what version it reports.
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
Allan Odgaard wrote:
On 21/9/2006, at 12:06, Kim Hunter wrote:
I'm having the same problem
Well, not exactly the same -- your error claims readpartial is an unknown method.
Could you try this from shell:
echo test|ruby -e 'p STDIN.readpartial(1024)'
Here is the Result:
jet:~ kim$ echo test|ruby -e 'p STDIN.readpartial(1024)' -e:1: undefined method `readpartial' for #IO:0x2b8f4 (NoMethodError) jet:~ kim$
I'm only a beginner at ruby is there a library missing or something??
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
On Sep 21, 2006, at 7:51 AM, Kim Hunter wrote:
Allan Odgaard wrote:
On 21/9/2006, at 12:06, Kim Hunter wrote:
I'm having the same problem
Well, not exactly the same -- your error claims readpartial is an unknown method. Could you try this from shell: echo test|ruby -e 'p STDIN.readpartial(1024)'
Here is the Result:
jet:~ kim$ echo test|ruby -e 'p STDIN.readpartial(1024)' -e:1: undefined method `readpartial' for #IO:0x2b8f4 (NoMethodError) jet:~ kim$
Would you please also check:
ruby -v
James Edward Gray II
James Edward Gray II wrote:
On Sep 21, 2006, at 7:51 AM, Kim Hunter wrote:
Allan Odgaard wrote:
On 21/9/2006, at 12:06, Kim Hunter wrote:
I'm having the same problem
Well, not exactly the same -- your error claims readpartial is an unknown method. Could you try this from shell: echo test|ruby -e 'p STDIN.readpartial(1024)'
Here is the Result:
jet:~ kim$ echo test|ruby -e 'p STDIN.readpartial(1024)' -e:1: undefined method `readpartial' for #IO:0x2b8f4 (NoMethodError) jet:~ kim$
Would you please also check:
ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
James Edward Gray II
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
On 21/9/2006, at 17:01, Kim Hunter wrote:
Would you please also check: ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
Okay, apparently readpartial wasn’t added before 1.8.3 or 1.8.4.
I have now reverted run_script.rb to before we used readpartial. So that should now work (again) with the native ruby 1.8.2.
Sorry about the inconvenience.
Allan Odgaard wrote:
On 21/9/2006, at 17:01, Kim Hunter wrote:
Would you please also check: ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]
Okay, apparently readpartial wasn’t added before 1.8.3 or 1.8.4.
I have now reverted run_script.rb to before we used readpartial. So that should now work (again) with the native ruby 1.8.2.
Sorry about the inconvenience.
Not a problem, Thanks a lot. Kim
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