On 10/11/07, Brandon Keepers <[EMAIL PROTECTED]> wrote: > > On Oct 10, 2007, at 9:20 PM, David Chelimsky wrote: > > > On 10/10/07, Alastair Moore <[EMAIL PROTECTED]> wrote: > >> > >> On 11 Oct 2007, at 01:03, David Chelimsky wrote: > >> > >>> We've been making some changes in trunk, so if you're using trunk > >>> make > >>> sure that you have the same revision of rspec and the textmate > >>> bundle. > >>> Seems like your textmate bundle is newer than your version of rspec. > >> > >> Hi David, > >> > >> Thanks for your reply. I've uninstalled my rspec gem, checked out > >> from trunk and built a new rspec gem (rspec-1.0.9 r2715) and > >> installed this. I noticed that an rspec bundle was also downloaded > >> from trunk and so I removed the rspec bundle from textmate and > >> installed this one. > >> > >> Opening a simple spec file and running the run behaviour description, > >> I get a new error: > >> > >> /Users/alastair/Library/Application Support/TextMate/Pristine Copy/ > >> Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:4:in `join': can't > >> convert nil into String (TypeError) from /Users/alastair/Library/ > >> Application Support/TextMate/Pristine Copy/Bundles/RSpec.tmbundle/ > >> Support/lib/spec/mate.rb:4 from /tmp/temp_textmate.jLcyE7:3:in > >> `require' from /tmp/temp_textmate.jLcyE7:3 > >> > >> Any ideas what might be up with this? At least there are less errors! > > > > That line looks like this: > > > > rspec_rails_plugin = > > File.join(ENV > > ['TM_PROJECT_DIRECTORY'],'vendor','plugins','rspec','lib') > > > > I'm guessing that ENV['TM_PROJECT_DIRECTORY'] is coming up nil, so I'm > > guessing that you're opening a single file, yes? Try opening up a > > directory with your file in it and running it from a project window. > > I can also confirm issues with the RSpec TextMate bundle as of this > week. The error I'm getting is different though: > > RubyMate r6354 running Ruby r1.8.6 (/opt/local/bin/ruby) > >>> workspaces_controller_spec.rb > > /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ > builder.rb:86:in `blank_slate_method_added': stack level too deep > (SystemStackError) > from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ > builder.rb:86:in `blank_slate_method_added' > from /opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/ > blankslate.rb:84:in `method_added' > from /opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/ > blankslate.rb:104 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > from /opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/ > blankslate.rb:11 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 32:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 32:in `require' > ... 17 levels... > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > from /Users/brandon/projects/dealerflow/spec/controllers/../ > spec_helper.rb:5 > from /Users/brandon/projects/dealerflow/spec/controllers/ > workspaces_controller_spec.rb:1:in `require' > from /Users/brandon/projects/dealerflow/spec/controllers/ > workspaces_controller_spec.rb:1 > /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ > builder.rb:86:in `blank_slate_method_added': stack level too deep > (SystemStackError) > from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ > builder.rb:86:in `blank_slate_method_added' > from /opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/ > blankslate.rb:84:in `method_added' > from /opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/ > blankslate.rb:104 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > from /opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/ > blankslate.rb:11 > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 32:in `gem_original_require' > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 32:in `require' > ... 17 levels... > from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > from /Users/brandon/projects/dealerflow/spec/controllers/../ > spec_helper.rb:5 > from /Users/brandon/projects/dealerflow/spec/controllers/ > workspaces_controller_spec.rb:1:in `require' > from /Users/brandon/projects/dealerflow/spec/controllers/ > workspaces_controller_spec.rb:1 > > > > I am using rspec trunk and have updated the textmate bundle to the > latest revision. I haven't investigated this, but I know edge rails > is now bundling it's own version of Builder, in which it renamed the > BlankSlate class to BasicObject. Given the stack trace, I'm guessing > that might have something to do with it.
Also - I don't see 'RSpec' or 'rspec' anywhere in that stack trace. It's all SharedSupport, rails and the app. Unfortunately, I'm not able to duplicate this. Anybody else having a similar problem? > > Brandon > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users