The run command throws up this error:
/Users/jashugan/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files': private method `split' called for nil:NilClass (NoMethodError) from /tmp/temp_textmate.HNHo7l:5
Running the specs using rake works fine.
Oh I've had that error (just yesterday night), restarting textmate cleared it up for me.
-Brian
On 8/31/07, Nithin Reddy jashugan@gmail.com wrote:
The run command throws up this error:
/Users/jashugan/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files': private method `split' called for nil:NilClass (NoMethodError) from /tmp/temp_textmate.HNHo7l:5
Running the specs using rake works fine.
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
Hi Brian,
Thanks for the response, but restarting Textmate didn't clear up the error. Is there anything else you did?
On 8/31/07, Brian Anderson banderson623mailinglist@gmail.com wrote:
Oh I've had that error (just yesterday night), restarting textmate cleared it up for me.
-Brian
On 8/31/07, Nithin Reddy jashugan@gmail.com wrote:
The run command throws up this error:
/Users/jashugan/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files': private method `split' called for nil:NilClass (NoMethodError) from /tmp/temp_textmate.HNHo7l:5
Running the specs using rake works fine.
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
On Sep 4, 2007, at 7:40 PM, Nithin Reddy wrote:
Thanks for the response, but restarting Textmate didn't clear up the error. Is there anything else you did?
I don’t have the RSpec bundle, but from the error it calls split on nil in a method called ‘run_files’ -- my guess is that it wants a selection in the project drawer and you have no files selected there.
That said, this could of course be handled better.
On 9/4/07, Allan Odgaard throw-away-1@macromates.com wrote:
On Sep 4, 2007, at 7:40 PM, Nithin Reddy wrote:
I don't have the RSpec bundle, but from the error it calls split on nil in a method called 'run_files' -- my guess is that it wants a selection in the project drawer and you have no files selected there.
Yes, you were absolutely right. I usually use "Go To File..." to navigate through my project. Since "Go To File..." doesn't select the file in the drawer, I guess the bundle wasn't finding the correct file(s) to run.
That said, this could of course be handled better.
Do you mean there is some way to modify the bundle to handle this better?
On 10/09/2007, at 23:37, Nithin Reddy wrote:
That said, this could of course be handled better.
Do you mean there is some way to modify the bundle to handle this better?
Sure, it could fallback to current file when there is no selected file.
Recently the RSpec bundle was added to the TM repository, so you should preferably update to that one (notice it is now called “Ruby RSpec”) and if the problem persists, report the problem to the maintainer (which should be in the info.plist of the bundle).