Ivan Porto Carrero
2009-Sep-23 08:09 UTC
[Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems
Mohammed Can you send me the output of these commands? echo %GEM_PATH% where ir where ruby where csc.exe where resgen echo %MERLIN_ROOT% echo %PATH% So I can tell you what should be in there for it to work properly thanks --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:46 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote:> > http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Scripts/Dev.bat#L16 > > GEM_PATH is set to the gems path in the Ruby stdlibs that are checked into > the IronRuby source; GEM_HOME isn''t set since we want the implementations to > still install them to their own directory. (GEM_HOME tells RubyGems where to > install gems, and GEM_PATH tells it where to load them from). > > Again, this is just for the developer environment. > > ~js > > ------------------------------ > *From:* ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] on behalf of Ryan Riley [ > ryan.riley at panesofglass.org] > *Sent:* Tuesday, September 22, 2009 9:35 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby > libraries instead of IronRuby gems > > What are the values of gem_path and gem_home? > > Sent from my iPhone > > On Sep 22, 2009, at 11:08 PM, Mohammad Azam <azamsharp at gmail.com> wrote: > > I uninstall Ruby spec gem and it worked fine. Seems like when spec gem > is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for > the gem. > > On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville < <jdeville at microsoft.com> > jdeville at microsoft.com> wrote: > >> More info please J >> >> >> >> *From:* <ironruby-core-bounces at rubyforge.org> >> ironruby-core-bounces at rubyforge.org [mailto:<ironruby-core-bounces at rubyforge.org> >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >> *Sent:* Tuesday, September 22, 2009 2:33 PM >> *To:* <ironruby-core at rubyforge.org>ironruby-core at rubyforge.org >> *Subject:* [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> <http://www.highoncoding.com>www.highoncoding.com >> <http://www.azamsharp.com>www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> <Ironruby-core at rubyforge.org>Ironruby-core at rubyforge.org >> <http://rubyforge.org/mailman/listinfo/ironruby-core> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > <http://www.highoncoding.com>www.highoncoding.com > <http://www.azamsharp.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/20090923/a57e1894/attachment.html>
Ryan Riley
2009-Sep-23 16:29 UTC
[Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems
On Wed, Sep 23, 2009 at 11:14 AM, Mohammad Azam <azamsharp at gmail.com> wrote:> I am running this from command line shell of windows (cmd.exe)You should run dev.bat instead of cmd.exe. dev.bat sets those variables each time it starts up but doesn''t add the variables permanently to your environment. Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090923/1dab600c/attachment.html>
Ryan Riley
2009-Sep-23 16:30 UTC
[Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems
On Wed, Sep 23, 2009 at 11:29 AM, Ryan Riley <ryan.riley at panesofglass.org>wrote:> On Wed, Sep 23, 2009 at 11:14 AM, Mohammad Azam <azamsharp at gmail.com>wrote: > >> I am running this from command line shell of windows (cmd.exe) > > > You should run dev.bat instead of cmd.exe. dev.bat sets those variables > each time it starts up but doesn''t add the variables permanently to your > environment. > >In other words, dev.bat wraps cmd.exe and adds several elements such as environment variables and the start path for easier development without affecting your current environment variables. Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090923/3bd8d773/attachment.html>
Ivan Porto Carrero
2009-Sep-23 16:39 UTC
[Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems
I''d be interested in the powershell script I''ve found the alias script but haven''t found the dev.ps1 script Ok and to fix what you are seeing. Because I don''t think you''re interested on developing on ironruby as to with ironruby. So you just want a working ironruby package and not have to deal with dev.bat etc. is to make sure you have a *release* build. either with visual studio or by doing rake compile:all configuration=release ensure your MRI contains the pathname2 gem if you have files in C:\ironruby that you want to keep take a backup of the folder. Then execute rake package in C:\devtools\ironruby\ironruby That will copy the files of a binary distribution to C:\ironruby if you then remove the variables you have set up earlier and place C:\ironruby\bin in the PATH (via system properties - environment variables) You should be all good from now on. If you installed gems you can either reinstall them or copy the contents of C:\ devtools\ironruby\ironruby\Merlin\External.LCA_RESTRICTED\Languages\Ruby\redist-libs\ironruby\gems\1.8 to C:\ironruby\lib\IronRuby\gems\1.8 You now have a working ironruby distribution key words: => release build => PATH variable through system properties => rake package --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:14 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> I am running this from command line shell of windows (cmd.exe) > Thanks, > Azam > > > On Wed, Sep 23, 2009 at 11:00 AM, John Lam (TC) <jflam at microsoft.com>wrote: > >> Are you running from a Powershell prompt? It seems so, because your >> output tells me that you?re creating a sub-shell where the environment >> variables do get set, but then that sub-shell goes away. >> >> >> >> To fix this you?ll need a Powershell version of dev.bat. We have several >> floating around ? am sure folks can point you to the right one. >> >> >> >> Thanks, >> >> -John >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >> *Sent:* Wednesday, September 23, 2009 8:58 AM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> >> >> I have ran dev.bat several times but it does not do anything. No entries >> were made in the environment variables so I had to manually go and do the >> entries. >> >> >> >> Also, as soon as I uninstall the MRI spec it all started working fine! >> >> On Tue, Sep 22, 2009 at 9:21 PM, Jimmy Schementi < >> Jimmy.Schementi at microsoft.com> wrote: >> >> >>> Seems like when spec gem is installed on IronRuby and Ruby >> then IronRuby looks in the Ruby folder for the gem. >> >> >> >> No, that''s not a correct assumption. :) RubyGems will look for gems in a >> path relative to itself if the GEM_PATH environment variable isn''t set. If >> it is set (which dev.bat sets it), then RubyGems will always look on that >> path, regardless of what Ruby implementation you use. >> >> >> >> Are you running IronRuby from a dev.bat prompt, or some other way? If >> that''s not the behavior you want, make sure to unset that variable at the >> command line (set GEM_PATH=) or from your Ruby scripts themselves >> (ENV[''GEM_PATH''] = nil), but the latter is preferred. >> >> >> >> ~js >> >> >> ------------------------------ >> >> *From:* ironruby-core-bounces at rubyforge.org [ >> ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ >> azamsharp at gmail.com] >> *Sent:* Tuesday, September 22, 2009 9:08 PM >> >> >> *To:* ironruby-core at rubyforge.org >> >> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> I uninstall Ruby spec gem and it worked fine. Seems like when spec gem is >> installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for >> the gem. >> >> On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville <jdeville at microsoft.com> >> wrote: >> >> More info please J >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >> *Sent:* Tuesday, September 22, 2009 2:33 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> >> >> >> >> -- >> 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 >> >> >> >> >> -- >> 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 >> >> >> >> >> -- >> 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 >> >> > > > -- > 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/20090923/bf86f2f2/attachment.html>
Ivan Porto Carrero
2009-Sep-23 16:58 UTC
[Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems
"technically" both of them need to be in same console session for it to work as the changes you make are scoped to the console session. ;) to make them persistent across console sessions use system properties - environment variables --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:51 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> I forgot to exit the dev.bat which is different console. > I restarted the cmd again and Cucumber works fine. > > > On Wed, Sep 23, 2009 at 11:44 AM, Mohammad Azam <azamsharp at gmail.com>wrote: > >> After running the dev.bat and set my ICucumber is failing: >> C:\Projects\ILoveIronRuby\ILoveIronRuby\testing>icucumber features >> --no-color >> no such file to load -- spec/expectations >> Failed to load features/step_definitons/calculator_steps.rb (LoadError) >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Builtins\KernelOps.cs:1341:in `require'' >> custom_require.rb:30:in `require'' >> polyglot.rb:69:in `require'' >> ./features/step_definitons/calculator_steps.rb:3 >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Builtins\KernelOps.cs:1341:in `require'' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r >> b_language.rb:101:in `load_code_file'' >> custom_require.rb:30:in `require'' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r >> b_language.rb:46:in `step_definitions_for'' >> polyglot.rb:69:in `require'' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. >> rb:118:in `load_code_file'' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. >> rb:110:in `load_code_files'' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. >> rb:109:in `load_code_files'' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: >> 48:in `execute!'' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: >> 23:in `execute'' >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Extensions\IListOps.cs:810:in `each'' >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/cucumber:9 >> c:/ruby/bin/cucumber:19 >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Builtins\KernelOps.cs:1326:in `load'' >> >> C:\Projects\ILoveIronRuby\ILoveIronRuby\testing> >> >> On Wed, Sep 23, 2009 at 9:38 AM, Jim Deville <jdeville at microsoft.com>wrote: >> >>> Can you start a new cmd process, run dev.bat, and then run "set" and >>> paste that output? >>> >>> Thanks >>> JD >>> >>> >>> >>> ------------------------------ >>> From: Mohammad Azam <azamsharp at gmail.com> >>> Sent: September 23, 2009 9:15 AM >>> To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org> >>> Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby >>> libraries instead of IronRuby gems >>> >>> I am running this from command line shell of windows (cmd.exe) >>> Thanks, >>> Azam >>> >>> On Wed, Sep 23, 2009 at 11:00 AM, John Lam (TC) <jflam at microsoft.com>wrote: >>> >>>> Are you running from a Powershell prompt? It seems so, because your >>>> output tells me that you?re creating a sub-shell where the environment >>>> variables do get set, but then that sub-shell goes away. >>>> >>>> >>>> >>>> To fix this you?ll need a Powershell version of dev.bat. We have several >>>> floating around ? am sure folks can point you to the right one. >>>> >>>> >>>> >>>> Thanks, >>>> >>>> -John >>>> >>>> >>>> >>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >>>> *Sent:* Wednesday, September 23, 2009 8:58 AM >>>> >>>> *To:* ironruby-core at rubyforge.org >>>> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >>>> libraries instead of IronRuby gems >>>> >>>> >>>> >>>> I have ran dev.bat several times but it does not do anything. No entries >>>> were made in the environment variables so I had to manually go and do the >>>> entries. >>>> >>>> >>>> >>>> Also, as soon as I uninstall the MRI spec it all started working fine! >>>> >>>> On Tue, Sep 22, 2009 at 9:21 PM, Jimmy Schementi < >>>> Jimmy.Schementi at microsoft.com> wrote: >>>> >>>> >>> Seems like when spec gem is installed on IronRuby and Ruby >>>> then IronRuby looks in the Ruby folder for the gem. >>>> >>>> >>>> >>>> No, that''s not a correct assumption. :) RubyGems will look for gems in a >>>> path relative to itself if the GEM_PATH environment variable isn''t set. If >>>> it is set (which dev.bat sets it), then RubyGems will always look on that >>>> path, regardless of what Ruby implementation you use. >>>> >>>> >>>> >>>> Are you running IronRuby from a dev.bat prompt, or some other way? If >>>> that''s not the behavior you want, make sure to unset that variable at the >>>> command line (set GEM_PATH=) or from your Ruby scripts themselves >>>> (ENV[''GEM_PATH''] = nil), but the latter is preferred. >>>> >>>> >>>> >>>> ~js >>>> >>>> >>>> ------------------------------ >>>> >>>> *From:* ironruby-core-bounces at rubyforge.org [ >>>> ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ >>>> azamsharp at gmail.com] >>>> *Sent:* Tuesday, September 22, 2009 9:08 PM >>>> >>>> >>>> *To:* ironruby-core at rubyforge.org >>>> >>>> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >>>> libraries instead of IronRuby gems >>>> >>>> I uninstall Ruby spec gem and it worked fine. Seems like when spec gem >>>> is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for >>>> the gem. >>>> >>>> On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville <jdeville at microsoft.com> >>>> wrote: >>>> >>>> More info please J >>>> >>>> >>>> >>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >>>> *Sent:* Tuesday, September 22, 2009 2:33 PM >>>> *To:* ironruby-core at rubyforge.org >>>> *Subject:* [Ironruby-core] Seems like it is loading from the Ruby >>>> libraries instead of IronRuby gems >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> 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 >>>> >>>> >>>> >>>> >>>> -- >>>> 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 >>>> >>>> >>>> >>>> >>>> -- >>>> 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 >>>> >>>> >>> >>> >>> -- >>> 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 >>> >>> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> > > > > -- > 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/20090923/c3a3acd5/attachment.html>
Jim Deville
2009-Sep-23 18:00 UTC
[Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems
Mohammad, Can you try running a dev.bat console (run cmd, then run dev.bat) then install cucumber and rspec from there, and then try running your tests? I have a feeling dev.bat has a different GEM_PATH than your normal ruby install. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, September 23, 2009 9:59 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems "technically" both of them need to be in same console session for it to work as the changes you make are scoped to the console session. ;) to make them persistent across console sessions use system properties - environment variables --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:51 PM, Mohammad Azam <azamsharp at gmail.com<mailto:azamsharp at gmail.com>> wrote: I forgot to exit the dev.bat which is different console. I restarted the cmd again and Cucumber works fine. On Wed, Sep 23, 2009 at 11:44 AM, Mohammad Azam <azamsharp at gmail.com<mailto:azamsharp at gmail.com>> wrote: After running the dev.bat and set my ICucumber is failing: C:\Projects\ILoveIronRuby\ILoveIronRuby\testing>icucumber features --no-color no such file to load -- spec/expectations Failed to load features/step_definitons/calculator_steps.rb (LoadError) C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1341:in `require'' custom_require.rb:30:in `require'' polyglot.rb:69:in `require'' ./features/step_definitons/calculator_steps.rb:3 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1341:in `require'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r b_language.rb:101:in `load_code_file'' custom_require.rb:30:in `require'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r b_language.rb:46:in `step_definitions_for'' polyglot.rb:69:in `require'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:118:in `load_code_file'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:110:in `load_code_files'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:109:in `load_code_files'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: 48:in `execute!'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: 23:in `execute'' C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Extensions\IListOps.cs:810:in `each'' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/cucumber:9 c:/ruby/bin/cucumber:19 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1326:in `load'' C:\Projects\ILoveIronRuby\ILoveIronRuby\testing> On Wed, Sep 23, 2009 at 9:38 AM, Jim Deville <jdeville at microsoft.com<mailto:jdeville at microsoft.com>> wrote: Can you start a new cmd process, run dev.bat, and then run "set" and paste that output? Thanks JD ________________________________ From: Mohammad Azam <azamsharp at gmail.com<mailto:azamsharp at gmail.com>> Sent: September 23, 2009 9:15 AM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> <ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org>> Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems I am running this from command line shell of windows (cmd.exe) Thanks, Azam On Wed, Sep 23, 2009 at 11:00 AM, John Lam (TC) <jflam at microsoft.com<mailto:jflam at microsoft.com>> wrote: Are you running from a Powershell prompt? It seems so, because your output tells me that you?re creating a sub-shell where the environment variables do get set, but then that sub-shell goes away. To fix this you?ll need a Powershell version of dev.bat. We have several floating around ? am sure folks can point you to the right one. Thanks, -John From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Mohammad Azam Sent: Wednesday, September 23, 2009 8:58 AM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems I have ran dev.bat several times but it does not do anything. No entries were made in the environment variables so I had to manually go and do the entries. Also, as soon as I uninstall the MRI spec it all started working fine! On Tue, Sep 22, 2009 at 9:21 PM, Jimmy Schementi <Jimmy.Schementi at microsoft.com<mailto:Jimmy.Schementi at microsoft.com>> wrote:>>> Seems like when spec gem is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for the gem.No, that''s not a correct assumption. :) RubyGems will look for gems in a path relative to itself if the GEM_PATH environment variable isn''t set. If it is set (which dev.bat sets it), then RubyGems will always look on that path, regardless of what Ruby implementation you use. Are you running IronRuby from a dev.bat prompt, or some other way? If that''s not the behavior you want, make sure to unset that variable at the command line (set GEM_PATH=) or from your Ruby scripts themselves (ENV[''GEM_PATH''] = nil), but the latter is preferred. ~js ________________________________ From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] on behalf of Mohammad Azam [azamsharp at gmail.com<mailto:azamsharp at gmail.com>] Sent: Tuesday, September 22, 2009 9:08 PM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems I uninstall Ruby spec gem and it worked fine. Seems like when spec gem is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for the gem. On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville <jdeville at microsoft.com<mailto:jdeville at microsoft.com>> wrote: More info please ? From: ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Mohammad Azam Sent: Tuesday, September 22, 2009 2:33 PM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems -- 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 -- 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 -- 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 -- 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 -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com<http://www.highoncoding.com> www.azamsharp.com<http://www.azamsharp.com> -- 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/20090923/4b7bab2e/attachment.html>