Does anyone else have issues running rspec textmate bundle? I’ve got
revision 2997, but the blasted thing just won’t run.
It is checked out to my /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle
When it runs I get the below error…
“textmate” is not a valid class name
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/options.rb:173:in load_class': "textmate" is not a valid class name (RuntimeError) from /Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/options.rb:137:inparse_format’ from
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:93:in initialize' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:incall’ from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:in parse_in_order' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:incatch’ from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:in parse_in_order' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1241:inorder!’ from
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:118:in order!' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1332:inpermute!’ from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1353:in parse!' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1343:inparse’ from
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:10:in parse' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:inrun’ from /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/…/spec/mate/runner.rb:33:in chdir' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:33:inrun’ from /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/…/spec/mate/runner.rb:12:in
`run_file’ from /tmp/temp_textmate.AZtCnz:4
load_class': "textmate" is not a valid class name (RuntimeError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:in parse’ from
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/option_parser.rb:10:in parse' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in run’ from /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/…/spec/mate/runner.rb:33:in chdir' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:33:in run’ from /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/…/spec/mate/runner.rb:12:in
`run_file’ from /tmp/temp_textmate.AZtCnz:4
Hello Zach. Are you running Rspec 1.0.8 with the Trunk version of the
Textmate Bundle?
Hello Zach. Are you running Rspec 1.0.8 with the Trunk version of the
Textmate Bundle?
It wasn’t 1.0.8, but it was a revision from about a month ago, give or
take
a few days. I’ve updated to trunk and that problem has gone away.
Running
all examples works, but running focused examples blows up with the below
error. This appears under the green “RSpec Results” header:
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:108:in run': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.empty? from /Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:in run’ from
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in each' from /Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in run’ from
/Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/options.rb:85:in run_examples' from /Users/zdennis/source/ao_projects/circlebuilder/vendor/plugins/rspec/lib/spec/runner/command_line.rb:19:in run’ from /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/…/spec/mate/runner.rb:34:in run' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:33:in chdir’ from /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/…/spec/mate/runner.rb:33:in run' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:17:in run_focussed’ from /tmp/temp_textmate.zWPVDL:4
I am having a (probably much more elementary) problem with the
bundle. When I try and “run Behavior Description” (shift-ctrl-option
R) I get an error from TextMate:
/Library/Application Support/TextMate/Bundles/Ruby RSpec.tmbundle/
Support/lib/spec_mate.rb:2:in require': No such file to load -- rubygems (LoadError) from /Library/Application Support/TextMate/ Bundles/Ruby RSpec.tmbundle/Support/lib/spec_mate.rb:2 from /tmp/ temp_textmate.b2MJZi:3:inrequire’ from /tmp/temp_textmate.b2MJZi:3
Some kind of path or config problem I am pretty sure…
TM_RUBY is set up correctly in TextMate/Preferences/Advanced:
TM_RUBY=/opt/local/bin/ruby
run' from Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:33:in chdir’ from /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/…/spec/mate/runner.rb:33:in run' from /Users/zdennis/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:17:in run_focussed’ from /tmp/temp_textmate.zWPVDL:4
I think this was just fixed. Try updating again.