[Ironruby-core] Running rake mspec:lib

Michael Letterle michael.letterle at gmail.com
Thu Jun 5 10:15:34 EDT 2008


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>


More information about the Ironruby-core mailing list