Let's file a bug. We have more control flow issues to be fixed. I'll fix them all at once.
Thanks for investigation, Tomas -----Original Message----- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shri Borde Sent: Wednesday, April 01, 2009 10:37 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Error when running Cucumber examples with IronRuby Its an IronRuby bug with "break" in eval'ed code. The problem can be reproed with the snippet below. Tomas, do you want to take a look? def f yield end f { break } # This works with both MRI and IronRuby eval "f { break }" # This throws LocalJumpError with IronRuby only Thanks, Shri -----Original Message----- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Chamini Gallage Sent: Wednesday, April 01, 2009 8:12 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Error when running Cucumber examples with IronRuby Hi, I got the new ironruby source from http://github.com/ironruby/ironruby/tree/master and built it by Visual Studio 2008 (with 11 successful, 0 failed and 1 skipped)and tried the examples. Still I'm getting a simillar kind of error. C:\ruby\lib\ruby\gems\1.8\gems\cucumber-0.2.3\examples\i18n\en>icucumber features *** THIS RUBY IMPLEMENTATION DOESN'T REPORT FILE AND LINE FOR PROCS *** *** WARNING: You must "gem install win32console" (1.2.0 or higher) to get coloured output on MRI/Windows (eval):220:in `_nt_keyword_space': unexpected break (LocalJumpError) from :0:in `loop' from (eval):211:in `_nt_keyword_space' from feature.rb:900:in `_nt_step' from feature.rb:848:in `_nt_steps' from :0:in `loop' from feature.rb:839:in `_nt_steps' from feature.rb:763:in `_nt_scenario_outline' from feature.rb:96:in `_nt_feature' from :0:in `loop' from feature.rb:71:in `_nt_feature' from :0:in `send' from compiled_parser.rb:15:in `parse' from treetop_ext.rb:39:in `parse_or_fail' from treetop_ext.rb:28:in `parse_file' from c:\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\IoOps.cs:161:in `InvokeOpenBlock' from treetop_ext.rb:19:in `parse_file' from main.rb:54:in `load_plain_text_features' from :0:in `each' from main.rb:49:in `load_plain_text_features' from main.rb:30:in `execute!' from main.rb:19:in `execute' from cucumber:0 from :0:in `load' from cucumber:0 I tried the same procedure after rake compiling the source as well, but got the same error. Ruby, IronRuby and Cucumber seems to be working fine when tested alone. Any help will be very much appreciated. Thanx in advance :) -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core