I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec'': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run'' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.r b:91:in `main'' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec'' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:i n `require'': no such file to load -- optparse (LoadError) from :0:in `Initialize##1'' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec'' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080605/6a34496a/attachment.html>
Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote:> I am having trouble running the RubySpecs from rake. > > > > First I get this: > > D:\dev\ruby\ironruby\head>rake mspec:lib > > (in D:/dev/ruby/ironruby/head) > > mspec/bin/mspec:141:in `exec'': No such file or directory - > d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) > > from mspec/bin/mspec:141:in `run'' > > from > d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.rb:91:in > `main'' > > from mspec/bin/mspec:146 > > rake aborted! > > Command failed with status (1): [ruby mspec/bin/mspec ci -t > d:\dev\ruby\iro...] > > D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec'' > > (See full trace by running task with --trace) > > > > It appears that ir.cmd is hard-coded inside rake to look in the release > folder rather than debug, which is to where rake compile is building. > > > > OK so I copy the files over from debug to release and now I get: > > D:\dev\ruby\ironruby\head>rake mspec:lib > > (in D:/dev/ruby/ironruby/head) > > d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in > `require'': no such file to load -- optparse (LoadError) > > from :0:in `Initialize##1'' > > rake aborted! > > Command failed with status (1): [ruby mspec/bin/mspec ci -t > d:\dev\ruby\iro...] > > D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec'' > > (See full trace by running task with --trace) > > > > I get the same result with rake mspec:core and mspec:lang. > > Any ideas? > > Pete > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080605/ea76cbe5/attachment.html>
Thanks Michael. I copied it across but still got the same failure. I can''t even get the optparse.rb to require directly (here optparse.rb is in the build\debug folder): D:\dev\ruby\ironruby\head\build\debug>ir IronRuby 1.0.0.0 on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. Note that local variables do not work today in the console. As a workaround, use globals instead (eg $x = 42 instead of x = 42).>>> require ''optparse''D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:i n `require'': Type ''IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext'' is missing or cannot be loaded. (Microsoft::Scripting::Runtime::MissingTypeException) from :0:in `Initialize##1'' But this does not crash... D:\dev\ruby\ironruby\head\build\debug>ir optparse.rb Is there a problem with the requiring mechanism? Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080605/ac032a74/attachment-0001.html>
You need to remove the SIGNED compliation constants from the project files. If you notice it''s looking for a strong-named assembly. IronRuby 1.0.0.0 on .NET 2.0.50727.1433 Copyright (c) Microsoft Corporation. All rights reserved. Note that local variables do not work today in the console. As a workaround, use globals instead (eg $x = 42 instead of x = 42).>>> require ''optparse''=> true>>>On Thu, Jun 5, 2008 at 9:51 AM, Peter Bacon Darwin < bacondarwin at googlemail.com> wrote:> Thanks Michael. > > > > I copied it across but still got the same failure. I can''t even get the > optparse.rb to require directly (here optparse.rb is in the build\debug > folder): > > > > D:\dev\ruby\ironruby\head\build\debug>ir > > IronRuby 1.0.0.0 on .NET 2.0.50727.1433 > > Copyright (c) Microsoft Corporation. All rights reserved. > > > > Note that local variables do not work today in the console. > > As a workaround, use globals instead (eg $x = 42 instead of x = 42). > > > > >>> require ''optparse'' > > D:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\KernelOps.cs:300:in > `require'': Type ''IronRuby, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=31bf3856ad364e35, Ruby.Runtime.RubyContext'' is > > missing or cannot be loaded. > (Microsoft::Scripting::Runtime::MissingTypeException) > > from :0:in `Initialize##1'' > > > > But this does not crash... > > D:\dev\ruby\ironruby\head\build\debug>ir optparse.rb > > > > Is there a problem with the requiring mechanism? > > > > Pete > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080605/c76e37e8/attachment.html>
Optparse should be in the Libs folder with our hacks and such. If it''s not then something didn''t get pushed out correctly. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 6:28 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin <bacondarwin at googlemail.com<mailto:bacondarwin at googlemail.com>> wrote: I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec'': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run'' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.rb:91:in `main'' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec'' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in `require'': no such file to load -- optparse (LoadError) from :0:in `Initialize##1'' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec'' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080605/3302cfe7/attachment.html>
Can you verify this behavior by doing a local deploy and running the svn build from a non merlin cmd prompt? - John Sent from my phone ________________________________ From: Jim Deville <jdeville at microsoft.com> Sent: Thursday, June 05, 2008 12:24 PM To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org> Subject: Re: [Ironruby-core] Running rake mspec:lib Optparse should be in the Libs folder with our hacks and such. If it?s not then something didn?t get pushed out correctly. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 6:28 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin <bacondarwin at googlemail.com<mailto:bacondarwin at googlemail.com>> wrote: I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec'': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run'' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.rb:91:in `main'' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec'' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:in `require'': no such file to load -- optparse (LoadError) from :0:in `Initialize##1'' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec'' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080605/ec11fafb/attachment.html>
optparse.rb is not there but also I find that I can''t require any of those rb files in lib at the moment. So to rather than require ''socket'' I am having to do the whole load_assembly... which is a bit annoying. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday,05 June 05, 2008 17:24 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Optparse should be in the Libs folder with our hacks and such. If it''s not then something didn''t get pushed out correctly. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Letterle Sent: Thursday, June 05, 2008 6:28 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Running rake mspec:lib Copy optparse.rb from an MRI installation (i.e. lib/ruby/1.8/optparse.rb) into the same directory as ir.exe .. I believe this worked for me when I was working on getting mspec running. On Thu, Jun 5, 2008 at 8:50 AM, Peter Bacon Darwin <bacondarwin at googlemail.com> wrote: I am having trouble running the RubySpecs from rake. First I get this: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) mspec/bin/mspec:141:in `exec'': No such file or directory - d:\dev\ruby\ironruby\head\build\release\ir.cmd (Errno::ENOENT) from mspec/bin/mspec:141:in `run'' from d:/dev/ruby/ironruby/head/tests/ironruby/util/mspec/lib/mspec/utils/script.r b:91:in `main'' from mspec/bin/mspec:146 rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:350:in `invoke_mspec'' (See full trace by running task with --trace) It appears that ir.cmd is hard-coded inside rake to look in the release folder rather than debug, which is to where rake compile is building. OK so I copy the files over from debug to release and now I get: D:\dev\ruby\ironruby\head>rake mspec:lib (in D:/dev/ruby/ironruby/head) d:\dev\ruby\ironruby\head\src\IronRuby.Libraries\Builtins\kernelops.cs:300:i n `require'': no such file to load -- optparse (LoadError) from :0:in `Initialize##1'' rake aborted! Command failed with status (1): [ruby mspec/bin/mspec ci -t d:\dev\ruby\iro...] D:/dev/ruby/ironruby/head/rakefile:351:in `invoke_mspec'' (See full trace by running task with --trace) I get the same result with rake mspec:core and mspec:lang. Any ideas? Pete _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Michael Letterle [Polymath Prokrammer] http://blog.prokrams.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080605/2d01d6b0/attachment-0001.html>