D'uh!  I forgot to run "rake gen" first!  My bad, I though I had but I
obviously didn't.  It's all good now, sorry for the false alarm.

~Mike

P.S. I also get the error on "exit":

E:\Sandbox\IronRuby\build\debug>rbx
IronRuby 0.1 on .NET 2.0.50727.832
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).

>>> @a = 42
=> 42
>>> @a
=> 42
>>> exit
e:\Sandbox\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:145:in `Exit':
exit (SystemExit)
        from
e:\Sandbox\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:133:in `Exit'
        from :0:in `main'
        from :0:in `Initialize##7'
>>>

On Thu, Mar 13, 2008 at 3:51 PM, Mike Moore <[EMAIL PROTECTED]> wrote:

> I checked version 77 out to my work PC, which is running .NET 2.0.  I ran
> "rake compile" from my SDK Command prompt and everything compiled just
> fine.I changed the .sln file to "Format Version 09.00" so I could open it
> with VS 2K5.  I can compile from VS just fine as well.  However, I can't run
> rbx.exe.  I get the following error:
>
> Type 'Ruby.Runtime.RubyContext' doesn't provide a suitable public
> constructor or its implementation is faulty.
>
> Here is the output from my command prompt.
>
> E:\Sandbox\IronRuby\build\debug>rbx
> Console host failed to initialize:
> Microsoft.Scripting.Runtime.InvalidImplementationException: Type '
> Ruby.Runtime.RubyContext' doesn't provide a suitable public constructor or
> its implementation is faulty. --->
> Microsoft.Scripting.Runtime.InvalidImplementationException: Cannot find
> RubyLibraryAttribute in library assembly
>    at Ruby.Runtime.Loader.LoadStandardRubyLibraries() in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\Loader.cs:line 263
>    at Ruby.Runtime.RubyExecutionContext..ctor(RubyContext context, Scope
> globalScope) in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\RubyExecutionContext.cs:line 171
>    at Ruby.Runtime.RubyContext.InitializeExecutionContext() in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\RubyContext.cs:line 87
>    at Ruby.Runtime.RubyContext..ctor(ScriptDomainManager manager) in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\RubyContext.cs:line 72
>    --- End of inner exception stack trace ---
>    at Microsoft.Scripting.Utils.ReflectionUtils.CreateInstance[T](Type
> actualType, Object[] args) in
> e:\Sandbox\IronRuby\src\microsoft.scripting\Utils\ReflectionUtils.cs:line
> 130
>    at
> Microsoft.Scripting.Runtime.ScriptDomainManager.LanguageRegistration.LoadLanguageContext(ScriptDomainManager
> manager) in
> e:\Sandbox\IronRuby\src\microsoft.scripting\Runtime\ScriptDomainManager.cs:line
> 179
>    at Microsoft.Scripting.Runtime.ScriptDomainManager.GetLanguageContext(Type
> type) in
> e:\Sandbox\IronRuby\src\microsoft.scripting\Runtime\ScriptDomainManager.cs:line
> 254
>    at Microsoft.Scripting.Hosting.ScriptRuntime.GetEngine(Type
> languageContextType) in
> e:\Sandbox\IronRuby\src\microsoft.scripting\Hosting\ScriptRuntime.cs:line
> 268
>    at RubyConsoleHost.Initialize() in
> e:\Sandbox\IronRuby\utils\ironruby.console\Program.cs:line 34
>    at Microsoft.Scripting.Hosting.ConsoleHost.Run(String[] args) in
> e:\Sandbox\IronRuby\src\microsoft.scripting\Hosting\ConsoleHost.cs:line 82
> Microsoft.Scripting.Runtime.InvalidImplementationException: Cannot find
> RubyLibraryAttribute in library assembly
>    at Ruby.Runtime.Loader.LoadStandardRubyLibraries() in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\Loader.cs:line 263
>    at Ruby.Runtime.RubyExecutionContext..ctor(RubyContext context, Scope
> globalScope) in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\RubyExecutionContext.cs:line 171
>    at Ruby.Runtime.RubyContext.InitializeExecutionContext() in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\RubyContext.cs:line 87
>    at Ruby.Runtime.RubyContext..ctor(ScriptDomainManager manager) in
> e:\Sandbox\IronRuby\src\ironruby\Runtime\RubyContext.cs:line 72
>
> I haven't taken much time to debug this, but I'll load it on my VS2K8
> machine tonight and see if I get the same on the 3.5 fx.  So FYI, YMMV,
> etc...
>
>
> On Thu, Mar 13, 2008 at 2:25 PM, Ivan Porto Carrero <[EMAIL PROTECTED]>
> wrote:
>
> > Thanks. Looks like i can finally uninstall visual studio 2005 :)
> >
> >
> > On Fri, Mar 14, 2008 at 7:55 AM, Aaron Junod <[EMAIL PROTECTED]> wrote:
> >
> > > Great news! Thanks a lot IR team!
> > >
> > >
> > > On Thu, Mar 13, 2008 at 1:13 PM, Nick Aceves <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Awesome!
> > > >
> > > > On Thu, Mar 13, 2008 at 10:00 AM, John Lam (DLR) <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > >  There are a lot of new files in this change – mostly due to the
> > > > > beginnings of our work to get the latest Ruby specs working. So right 
> > > > > now
> > > > > there are duplicate specs under tests. This will change in the future.
> > > > >
> > > > >
> > > > >
> > > > > Our work to get Silverlight integration working is here. So
> > > > > rudimentary VS debugging support etc. should just work today.
> > > > >
> > > > >
> > > > >
> > > > > You won't be able to do a Silverlight build yet – that's coming in
> > > > > a future update.
> > > > >
> > > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > > -John
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Ironruby-core mailing list
> > > > > [email protected]
> > > > > http://rubyforge.org/mailman/listinfo/ironruby-core
> > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > Ironruby-core mailing list
> > > > [email protected]
> > > > http://rubyforge.org/mailman/listinfo/ironruby-core
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Ironruby-core mailing list
> > > [email protected]
> > > http://rubyforge.org/mailman/listinfo/ironruby-core
> > >
> > >
> >
> > _______________________________________________
> > Ironruby-core mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/ironruby-core
> >
> >
>
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to