What are the steps of running Cucumber with IronRuby? Do I need to make a separate batch file called ICucumber.bat and then invoke it. Here is my ICucumber.bat file: @ECHO OFF REM This is to tell IronRuby where to find gems. SET MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* Any ideas? -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/8c1a175a/attachment.html>
There is an issue with the Gherkin parser used by Cucumber. Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native code) parser. It is slower, but it works. http://github.com/aslakhellesoy/gherkin/issues/issue/63 -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > @ECHO OFF > REM This is to tell IronRuby where to find gems. > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > Any ideas? > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/6810c537/attachment-0001.html>
I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 folder but now when I run the following command. c: cucumber I get the following error: no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote:> There is an issue with the Gherkin parser used by Cucumber. > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > -- > Will Green > http://hotgazpacho.org/ > > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com>wrote: > >> What are the steps of running Cucumber with IronRuby? Do I need to make a >> separate batch file called ICucumber.bat and then invoke it. Here is my >> ICucumber.bat file: >> >> @ECHO OFF >> REM This is to tell IronRuby where to find gems. >> SET >> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >> >> Any ideas? >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/2a471cf3/attachment.html>
Hi Mohammad -- That looks like your Ruby not IronRuby ... Try running: ir -S cucumber On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > c: cucumber > > I get the following error: > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote: > >> There is an issue with the Gherkin parser used by Cucumber. >> >> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >> (native code) parser. It is slower, but it works. >> >> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com>wrote: >> >>> What are the steps of running Cucumber with IronRuby? Do I need to make a >>> separate batch file called ICucumber.bat and then invoke it. Here is my >>> ICucumber.bat file: >>> >>> @ECHO OFF >>> REM This is to tell IronRuby where to find gems. >>> SET >>> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >>> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >>> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >>> >>> Any ideas? >>> >>> >>> >>> -- >>> Mohammad Azam >>> MVP (Microsoft Valuable Professional) >>> www.highoncoding.com >>> www.azamsharp.com >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/6529ba6c/attachment.html>
That might be the thing!! What does that -S stands for and where is it documented? Do I still need to make the icucumber.bat I guess not? On Wed, Jun 23, 2010 at 2:39 PM, Eddie Cianci <defeated2k4 at gmail.com> wrote:> Hi Mohammad -- > > That looks like your Ruby not IronRuby ... Try running: > > ir -S cucumber > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com>wrote: > >> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 >> folder but now when I run the following command. >> >> c: cucumber >> >> I get the following error: >> >> no such file to load -- >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber >> >> >> >> On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote: >> >>> There is an issue with the Gherkin parser used by Cucumber. >>> >>> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >>> (native code) parser. It is slower, but it works. >>> >>> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >>> >>> -- >>> Will Green >>> http://hotgazpacho.org/ >>> >>> >>> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com>wrote: >>> >>>> What are the steps of running Cucumber with IronRuby? Do I need to make >>>> a separate batch file called ICucumber.bat and then invoke it. Here is my >>>> ICucumber.bat file: >>>> >>>> @ECHO OFF >>>> REM This is to tell IronRuby where to find gems. >>>> SET >>>> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >>>> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >>>> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >>>> >>>> Any ideas? >>>> >>>> >>>> >>>> -- >>>> Mohammad Azam >>>> MVP (Microsoft Valuable Professional) >>>> www.highoncoding.com >>>> www.azamsharp.com >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/e3ca4655/attachment.html>
No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby implementation, which is those stack traces come from c:\ruby. Azam, first off, I?d recommend using the IronRuby 1.0 installer and not changing any other settings, like GEM_PATH; you?ll just run into these simple configuration issues, and we all know how you don?t like configuration. =) Also, we?d prefer not to answer these configuration issues, so please used the installer. So, no need for a icucumber.bat file ? just do ?igem install cucumber -v0.6.4? (from an elevated command prompt). Then just running ?cucumber? will run against IronRuby. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eddie Cianci Sent: Wednesday, June 23, 2010 12:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 Hi Mohammad -- That looks like your Ruby not IronRuby ... Try running: ir -S cucumber On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com<mailto:azamsharp at gmail.com>> wrote: I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 folder but now when I run the following command. c: cucumber I get the following error: no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org<mailto:will at hotgazpacho.org>> wrote: There is an issue with the Gherkin parser used by Cucumber. Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native code) parser. It is slower, but it works. http://github.com/aslakhellesoy/gherkin/issues/issue/63 -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com<mailto:azamsharp at gmail.com>> wrote: What are the steps of running Cucumber with IronRuby? Do I need to make a separate batch file called ICucumber.bat and then invoke it. Here is my ICucumber.bat file: @ECHO OFF REM This is to tell IronRuby where to find gems. SET MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* Any ideas? -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com<http://www.highoncoding.com> www.azamsharp.com<http://www.azamsharp.com> _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com<http://www.highoncoding.com> www.azamsharp.com<http://www.azamsharp.com> _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/d813b602/attachment-0001.html>
Note: if you have Ruby installed, it will still be ahead of IronRuby in the OS Path, so you?ll have to do ?ir -S cucumber?. To answer your question on the previous thread, it?s documented on the ir.exe directly (ir.exe /?). From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, June 23, 2010 1:28 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby implementation, which is those stack traces come from c:\ruby. Azam, first off, I?d recommend using the IronRuby 1.0 installer and not changing any other settings, like GEM_PATH; you?ll just run into these simple configuration issues, and we all know how you don?t like configuration. =) Also, we?d prefer not to answer these configuration issues, so please used the installer. So, no need for a icucumber.bat file ? just do ?igem install cucumber -v0.6.4? (from an elevated command prompt). Then just running ?cucumber? will run against IronRuby. ~Jimmy From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eddie Cianci Sent: Wednesday, June 23, 2010 12:39 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Cucumber with IronRuby V 1.0 Hi Mohammad -- That looks like your Ruby not IronRuby ... Try running: ir -S cucumber On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com<mailto:azamsharp at gmail.com>> wrote: I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 folder but now when I run the following command. c: cucumber I get the following error: no such file to load -- c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org<mailto:will at hotgazpacho.org>> wrote: There is an issue with the Gherkin parser used by Cucumber. Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native code) parser. It is slower, but it works. http://github.com/aslakhellesoy/gherkin/issues/issue/63 -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com<mailto:azamsharp at gmail.com>> wrote: What are the steps of running Cucumber with IronRuby? Do I need to make a separate batch file called ICucumber.bat and then invoke it. Here is my ICucumber.bat file: @ECHO OFF REM This is to tell IronRuby where to find gems. SET MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* Any ideas? -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com<http://www.highoncoding.com> www.azamsharp.com<http://www.azamsharp.com> _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com<http://www.highoncoding.com> www.azamsharp.com<http://www.azamsharp.com> _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/ac3d78fa/attachment.html>
I swear I got it running at work but I got home booted my computer and ran the following: ir -S cucumber and I got the following: C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S cucumber C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `report_activate_error'': C ould not find RubyGem treetop (>= 1.4.2)\n (Gem::LoadError) from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:261:in `activate'' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `activate'' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each'' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `activate'' from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem'' from c:/ruby/bin/cucumber:18 On Wed, Jun 23, 2010 at 2:30 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote:> Note: if you have Ruby installed, it will still be ahead of IronRuby in > the OS Path, so you?ll have to do ?ir -S cucumber?. To answer your question > on the previous thread, it?s documented on the ir.exe directly (ir.exe /?). > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi > *Sent:* Wednesday, June 23, 2010 1:28 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby > implementation, which is those stack traces come from c:\ruby. > > > > Azam, first off, I?d recommend using the IronRuby 1.0 installer and not > changing any other settings, like GEM_PATH; you?ll just run into these > simple configuration issues, and we all know how you don?t like > configuration. =) Also, we?d prefer not to answer these configuration > issues, so please used the installer. > > > > So, no need for a icucumber.bat file ? just do ?igem install cucumber > -v0.6.4? (from an *elevated* command prompt). Then just running ?cucumber? > will run against IronRuby. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010 12:39 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > > > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > > > c: cucumber > > > > I get the following error: > > > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote: > > There is an issue with the Gherkin parser used by Cucumber. > > > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > > -- > Will Green > http://hotgazpacho.org/ > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > > > @ECHO OFF > > REM This is to tell IronRuby where to find gems. > > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > > > Any ideas? > > > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/93ef756a/attachment-0001.html>
Weird! I download the treetop gem and it started working again. Maybe it has something to do with my BLUE screen of death on Windows 7. On Wed, Jun 23, 2010 at 7:53 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> I swear I got it running at work but I got home booted my computer and ran > the following: > > ir -S cucumber > > and I got the following: > > > C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S > cucumber > C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in > `report_activate_error'': C > ould not find RubyGem treetop (>= 1.4.2)\n (Gem::LoadError) > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:261:in > `activate'' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:296:in > `activate'' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each'' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in > `activate'' > from C:/IronRuby/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem'' > from c:/ruby/bin/cucumber:18 > > On Wed, Jun 23, 2010 at 2:30 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> Note: if you have Ruby installed, it will still be ahead of IronRuby in >> the OS Path, so you?ll have to do ?ir -S cucumber?. To answer your question >> on the previous thread, it?s documented on the ir.exe directly (ir.exe /?). >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jimmy Schementi >> *Sent:* Wednesday, June 23, 2010 1:28 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 >> >> >> >> No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby >> implementation, which is those stack traces come from c:\ruby. >> >> >> >> Azam, first off, I?d recommend using the IronRuby 1.0 installer and not >> changing any other settings, like GEM_PATH; you?ll just run into these >> simple configuration issues, and we all know how you don?t like >> configuration. =) Also, we?d prefer not to answer these configuration >> issues, so please used the installer. >> >> >> >> So, no need for a icucumber.bat file ? just do ?igem install cucumber >> -v0.6.4? (from an *elevated* command prompt). Then just running >> ?cucumber? will run against IronRuby. >> >> >> >> ~Jimmy >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci >> *Sent:* Wednesday, June 23, 2010 12:39 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 >> >> >> >> Hi Mohammad -- >> >> >> >> That looks like your Ruby not IronRuby ... Try running: >> >> >> >> ir -S cucumber >> >> >> >> >> >> >> >> On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com> >> wrote: >> >> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 >> folder but now when I run the following command. >> >> >> >> c: cucumber >> >> >> >> I get the following error: >> >> >> >> no such file to load -- >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber >> >> >> >> >> >> On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote: >> >> There is an issue with the Gherkin parser used by Cucumber. >> >> >> >> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >> (native code) parser. It is slower, but it works. >> >> >> >> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >> >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com> >> wrote: >> >> What are the steps of running Cucumber with IronRuby? Do I need to make >> a separate batch file called ICucumber.bat and then invoke it. Here is my >> ICucumber.bat file: >> >> >> >> @ECHO OFF >> >> REM This is to tell IronRuby where to find gems. >> >> SET >> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >> >> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >> >> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >> >> >> >> Any ideas? >> >> >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com >-- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/eecd22a9/attachment.html>
I''ve noticed that my recent addition of the ironruby.rb file in %IronRuby%\lib\ruby\site_ruby\1.8\rubygems\defaults for Gem.default_exec_format allows RubyGems to set the correct variables in the scripts that a gem installs, such that you no longer need to do ir -S scriptname and you can instead do scriptname and it will be properly executed by IronRuby. Note that this only applies to gems installed after you add the ironruby.rb file. -- Will Green http://hotgazpacho.org/ On Wed, Jun 23, 2010 at 4:28 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote:> No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby > implementation, which is those stack traces come from c:\ruby. > > > > Azam, first off, I?d recommend using the IronRuby 1.0 installer and not > changing any other settings, like GEM_PATH; you?ll just run into these > simple configuration issues, and we all know how you don?t like > configuration. =) Also, we?d prefer not to answer these configuration > issues, so please used the installer. > > > > So, no need for a icucumber.bat file ? just do ?igem install cucumber > -v0.6.4? (from an *elevated* command prompt). Then just running ?cucumber? > will run against IronRuby. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010 12:39 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > > > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > > > c: cucumber > > > > I get the following error: > > > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote: > > There is an issue with the Gherkin parser used by Cucumber. > > > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > > -- > Will Green > http://hotgazpacho.org/ > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > > > @ECHO OFF > > REM This is to tell IronRuby where to find gems. > > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > > > Any ideas? > > > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/2d87f187/attachment-0001.html>
BTW I did use the installer. On Wed, Jun 23, 2010 at 2:28 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote:> No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby > implementation, which is those stack traces come from c:\ruby. > > > > Azam, first off, I?d recommend using the IronRuby 1.0 installer and not > changing any other settings, like GEM_PATH; you?ll just run into these > simple configuration issues, and we all know how you don?t like > configuration. =) Also, we?d prefer not to answer these configuration > issues, so please used the installer. > > > > So, no need for a icucumber.bat file ? just do ?igem install cucumber > -v0.6.4? (from an *elevated* command prompt). Then just running ?cucumber? > will run against IronRuby. > > > > ~Jimmy > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci > *Sent:* Wednesday, June 23, 2010 12:39 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 > > > > Hi Mohammad -- > > > > That looks like your Ruby not IronRuby ... Try running: > > > > ir -S cucumber > > > > > > > > On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 > folder but now when I run the following command. > > > > c: cucumber > > > > I get the following error: > > > > no such file to load -- > c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber > > > > > > On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote: > > There is an issue with the Gherkin parser used by Cucumber. > > > > Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated (native > code) parser. It is slower, but it works. > > > > http://github.com/aslakhellesoy/gherkin/issues/issue/63 > > > -- > Will Green > http://hotgazpacho.org/ > > On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > What are the steps of running Cucumber with IronRuby? Do I need to make a > separate batch file called ICucumber.bat and then invoke it. Here is my > ICucumber.bat file: > > > > @ECHO OFF > > REM This is to tell IronRuby where to find gems. > > SET > MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib > > SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 > > @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* > > > > Any ideas? > > > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/5b75b6e6/attachment.html>
Thanks Will! I think I will go with ir -S rubygem. Thanks, Azam On Wed, Jun 23, 2010 at 8:15 PM, Will Green <will at hotgazpacho.org> wrote:> I''ve noticed that my recent addition of the ironruby.rb file in > %IronRuby%\lib\ruby\site_ruby\1.8\rubygems\defaults for > Gem.default_exec_format allows RubyGems to set the correct variables in the > scripts that a gem installs, such that you no longer need to do > > ir -S scriptname > > and you can instead do > > scriptname > > and it will be properly executed by IronRuby. > > Note that this only applies to gems installed after you add the ironruby.rb > file. > > -- > Will Green > http://hotgazpacho.org/ > > > On Wed, Jun 23, 2010 at 4:28 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> No, actually, he is using IronRuby, but setting the GEM_PATH to his Ruby >> implementation, which is those stack traces come from c:\ruby. >> >> >> >> Azam, first off, I?d recommend using the IronRuby 1.0 installer and not >> changing any other settings, like GEM_PATH; you?ll just run into these >> simple configuration issues, and we all know how you don?t like >> configuration. =) Also, we?d prefer not to answer these configuration >> issues, so please used the installer. >> >> >> >> So, no need for a icucumber.bat file ? just do ?igem install cucumber >> -v0.6.4? (from an *elevated* command prompt). Then just running >> ?cucumber? will run against IronRuby. >> >> >> >> ~Jimmy >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eddie Cianci >> *Sent:* Wednesday, June 23, 2010 12:39 PM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Cucumber with IronRuby V 1.0 >> >> >> >> Hi Mohammad -- >> >> >> >> That looks like your Ruby not IronRuby ... Try running: >> >> >> >> ir -S cucumber >> >> >> >> >> >> >> >> On Wed, Jun 23, 2010 at 3:27 PM, Mohammad Azam <azamsharp at gmail.com> >> wrote: >> >> I downloaded and install Cucumber 0.6.4. I deleted the Cucumber 0.8.3 >> folder but now when I run the following command. >> >> >> >> c: cucumber >> >> >> >> I get the following error: >> >> >> >> no such file to load -- >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber >> >> >> >> >> >> On Wed, Jun 23, 2010 at 2:05 PM, Will Green <will at hotgazpacho.org> wrote: >> >> There is an issue with the Gherkin parser used by Cucumber. >> >> >> >> Downgrade to Cucumber 0.6.4, which does not use the Ragel-generated >> (native code) parser. It is slower, but it works. >> >> >> >> http://github.com/aslakhellesoy/gherkin/issues/issue/63 >> >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> On Wed, Jun 23, 2010 at 2:04 PM, Mohammad Azam <azamsharp at gmail.com> >> wrote: >> >> What are the steps of running Cucumber with IronRuby? Do I need to make >> a separate batch file called ICucumber.bat and then invoke it. Here is my >> ICucumber.bat file: >> >> >> >> @ECHO OFF >> >> REM This is to tell IronRuby where to find gems. >> >> SET >> MONO_PATH=C:/IronRuby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib >> >> SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8 >> >> @"C:\IronRuby\bin\ir.exe" "c:\ruby\bin\cucumber" %* >> >> >> >> Any ideas? >> >> >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100623/ba963de5/attachment-0001.html>