I''ve the same problem as Alastair when running rspec command : http://lists.macromates.com/pipermail/textmate/2007-October/022585.html ../spec/mate/runner.rb:34:in `run'': undefined method `parse'' for Spec::Runner::OptionParser:Class I fixed this for me by changing the offending line to : ::Spec::Runner::CommandLine.run(argv, STDERR, stdout) (see http://lists.macromates.com/pipermail/textmate/2007-October/022985.html ) But I''m not sure at all for this fix. Did someone else have the same problem ? Thanks, Arthur
On 30 Oct 2007, at 14:20, Arthur P?try wrote:> I''ve the same problem as Alastair when running rspec command : > > http://lists.macromates.com/pipermail/textmate/2007-October/022585.html > > ../spec/mate/runner.rb:34:in `run'': undefined method `parse'' for > Spec::Runner::OptionParser:Class > > I fixed this for me by changing the offending line to : > ::Spec::Runner::CommandLine.run(argv, STDERR, stdout) > > (see http://lists.macromates.com/pipermail/textmate/2007-October/022985.html > ) > > But I''m not sure at all for this fix. > > Did someone else have the same problem ?Hi Arthur, I''ve since upgraded to Leopard and installed Rspec/Textmate etc. I tried your patch but unfortunately it caused more errors. I''m still having the same errors on a reasonably fresh Leopard install. /Users/alastair/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in `run'': undefined method `parse'' for Spec::Runner::OptionParser:Class (NoMethodError) from /Users/alastair/Library/Application Support/ TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ runner.rb:33:in `chdir'' from /Users/alastair/Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ runner.rb:33:in `run'' from /Users/alastair/Library/Application Support/ TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ runner.rb:17:in `run_focussed'' from /tmp/temp_textmate.QzJ0Zt:4 This is using ruby 1.8.6 (2007-06-07 patchlevel 36) [universal- darwin9.0] on the full release of 10.5 Leopard. RSpec bundle is 2799 and RSpec-1.0.8 (r2338) - BDD for Ruby http://rspec.rubyforge.org/ Little frustrating! Alastair
Le 30 oct. 07 ? 17:13, Alastair Moore a ?crit :> Hi Arthur, > > I''ve since upgraded to Leopard and installed Rspec/Textmate etc. I > tried your patch but unfortunately it caused more errors. I''m still > having the same errors on a reasonably fresh Leopard install. > > /Users/alastair/Library/Application Support/TextMate/Bundles/ > RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in `run'': > undefined method `parse'' for Spec::Runner::OptionParser:Class > (NoMethodError) from /Users/alastair/Library/Application Support/ > TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ > runner.rb:33:in `chdir'' from /Users/alastair/Library/Application > Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ > runner.rb:33:in `run'' from /Users/alastair/Library/Application > Support/ > TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/ > runner.rb:17:in `run_focussed'' from /tmp/temp_textmate.QzJ0Zt:4 > > This is using ruby 1.8.6 (2007-06-07 patchlevel 36) [universal- > darwin9.0] on the full release of 10.5 Leopard. RSpec bundle is 2799 > and RSpec-1.0.8 (r2338) - BDD for Ruby http://rspec.rubyforge.org/I''m too on Leopard, but I''m still using self installed ruby. ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1] Sorry to hear that removing the OptionParser.parse call, doesn''t fix it for you.
On Oct 30, 2007 12:13 PM, Alastair Moore <alastair at kozmo.co.uk> wrote:> This is using ruby 1.8.6 (2007-06-07 patchlevel 36) [universal- > darwin9.0] on the full release of 10.5 Leopard. RSpec bundle is 2799 > and RSpec-1.0.8 (r2338) - BDD for Ruby http://rspec.rubyforge.org/ > > Little frustrating!It would be less frustrating if you use the same release of rspec and the TM bundle! I''d suggest either upgrading rspec to rev2799 or grabbing the rspec bundle from 2338. Cheers, David
On 30 Oct 2007, at 16:36, David Chelimsky wrote:> On Oct 30, 2007 12:13 PM, Alastair Moore <alastair at kozmo.co.uk> wrote: >> This is using ruby 1.8.6 (2007-06-07 patchlevel 36) [universal- >> darwin9.0] on the full release of 10.5 Leopard. RSpec bundle is 2799 >> and RSpec-1.0.8 (r2338) - BDD for Ruby http://rspec.rubyforge.org/ >> >> Little frustrating! > > It would be less frustrating if you use the same release of rspec and > the TM bundle! > > I''d suggest either upgrading rspec to rev2799 or grabbing the rspec > bundle from 2338.Cheers for the tip, David. It might just work!
On 30 Oct 2007, at 16:36, David Chelimsky wrote:> On Oct 30, 2007 12:13 PM, Alastair Moore <alastair at kozmo.co.uk> wrote: >> This is using ruby 1.8.6 (2007-06-07 patchlevel 36) [universal- >> darwin9.0] on the full release of 10.5 Leopard. RSpec bundle is 2799 >> and RSpec-1.0.8 (r2338) - BDD for Ruby http://rspec.rubyforge.org/ >> >> Little frustrating! > > It would be less frustrating if you use the same release of rspec and > the TM bundle! > > I''d suggest either upgrading rspec to rev2799 or grabbing the rspec > bundle from 2338.Hmm.. no such luck. I''ve upgraded the RSpec gem to rspec 1.1.0 (r2799) by checking it out and building the gem then installing it and it''s using the same gem from that source so textmate bundle and rspec gem should be the same version now.
On Oct 30, 2007, at 1:01 PM, Alastair Moore wrote:> > On 30 Oct 2007, at 16:36, David Chelimsky wrote: > >> On Oct 30, 2007 12:13 PM, Alastair Moore <alastair at kozmo.co.uk> >> wrote: >>> This is using ruby 1.8.6 (2007-06-07 patchlevel 36) [universal- >>> darwin9.0] on the full release of 10.5 Leopard. RSpec bundle is 2799 >>> and RSpec-1.0.8 (r2338) - BDD for Ruby http://rspec.rubyforge.org/ >>> >>> Little frustrating! >> >> It would be less frustrating if you use the same release of rspec and >> the TM bundle! >> >> I''d suggest either upgrading rspec to rev2799 or grabbing the rspec >> bundle from 2338. > > Hmm.. no such luck. I''ve upgraded the RSpec gem to rspec 1.1.0 (r2799) > by checking it out and building the gem then installing it and it''s > using the same gem from that source so textmate bundle and rspec gem > should be the same version now. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-usersA coworker of mine had the same problem. Here''s what we did: 0. Closed down textmate 1. Deleted his bundle in ~/Library/Application\ Support /TextMate/ Rspec.tmbundle 2. svn up''ed his local copy to 2799 (we are running rspec_on_rails w/ rspec trunk and rail 1.2.3) 3. checked out the bundle to /Library/Application\ Support/TextMate/ Rspec.tmbundle. Checked it out at 2799. Notice the path in comparison to step 1 4. started up textmate 5. "Reloaded Bundles" in Texmate: Bundles => Bundle Editor => Reload Bundles 6. It should work now! Or at least, that was our experience. Scott
This worked for me #From my rails project rm -rf vendor/plugins/rspec rm -rf vendor/plugins/rspec_on_rails ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails ruby script/generate rspec #I installed the bundle in the global directory cd /Library/Application\ Support /TextMate/Bundles sudo svn co svn://rubyforge.org/var/svn/rspec/trunk/RSpec.tmbundle #I had ended up with 2 ruby directories after the leopard install (so 2 gem directories) /usr/bin/ruby -v ruby 1.8.6 (2007-06-07 patchlevel 36) [universal-darwin9.0] /usr/bin/gem -v 0.9.4 /opt/local/bin/ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.3] /opt/local/bin/gem -v 0.9.4 #I just went ahead nd installed the latest rspec gem in both, at so point I need to delete the /opt/local installation bt not right now cd ~ svn checkout svn://rubyforge.org/var/svn/rspec/trunk rspec_trunk cd rspec_trunk/rspec rake gem sudo /usr/bin/gem install pkg/rspec*.gem sudo /opt/local/bin/gem install pkg/rspec*.gem -- Posted via http://www.ruby-forum.com/.