SVN Revision 77 out

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

as he watches TortoiseSVN fly by…

Wow, you weren’t kidding…

On Thu, Mar 13, 2008 at 1:00 PM, John L. (DLR) [email protected]
wrote:

Our work to get Silverlight integration working is here. So rudimentary VS

http://rubyforge.org/mailman/listinfo/ironruby-core


Michael L.
[Polymath Prokrammer]
http://blog.prokrams.com

Awesome!

On Thu, Mar 13, 2008 at 10:00 AM, John L. (DLR) [email protected]

Thanks. Looks like i can finally uninstall visual studio 2005 :slight_smile:

Great news! Thanks a lot IR team!

Does anyone have a problem with rbx not exiting correctly in revision
77?

I’m getting a method missing error on “Exit”:

Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

Q:>c:

C:>cd IronRuby

C:\IronRuby>rake gen
(in C:/IronRuby)

C:\IronRuby>rake compile
(in C:/IronRuby)
Read in 17 resources from
“C:\IronRuby\src\microsoft.scripting\Math\MathResource
s.resx”
Writing resource file… Done.
Read in 49 resources from
“C:\IronRuby\src\microsoft.scripting\Resources.resx”
Writing resource file… Done.

C:\IronRuby>cd build

C:\IronRuby\build>cd debug

C:\IronRuby\build\debug>dir
Volume in drive C has no label.
Volume Serial Number is 9C73-5E6E

Directory of C:\IronRuby\build\debug

03/13/2008 03:43 PM .
03/13/2008 03:43 PM …
03/13/2008 03:43 PM 36,864 ClassInitGenerator.exe
03/13/2008 03:43 PM 42,496 ClassInitGenerator.pdb
03/13/2008 03:43 PM 458,752 IronRuby.dll
03/13/2008 03:43 PM 274,432 IronRuby.Libraries.dll
03/13/2008 03:43 PM 697,856 IronRuby.Libraries.pdb
03/13/2008 03:43 PM 1,263,104 IronRuby.pdb
03/13/2008 03:43 PM 135,168 IronRuby.Tests.exe
03/13/2008 03:43 PM 198,144 IronRuby.Tests.pdb
03/13/2008 03:43 PM 1,134,592 Microsoft.Scripting.dll
03/13/2008 03:43 PM 1,477
Microsoft.Scripting.Math.MathResources.re
sources
03/13/2008 03:43 PM 3,022,336 Microsoft.Scripting.pdb
03/13/2008 03:43 PM 4,929
Microsoft.Scripting.Resources.resources
03/13/2008 03:43 PM 4,608 rbx.exe
03/13/2008 03:43 PM 11,776 rbx.pdb
14 File(s) 7,286,534 bytes
2 Dir(s) 52,908,146,688 bytes free

C:\IronRuby\build\debug>rbx
IronRuby 0.1 on .NET 2.0.50727.1433
Copyright © 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).

exit
c:\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:145:in Exit': exit (Syste mExit) from c:\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:133:inExit’

    from :0:in `main'
    from :0:in `Initialize##1'

Josh

Confirmed. This is a bug, I’ll fix it.

Tomas

For the time being hit CTRL-Z followed by enter (this is the Python
style exit from the shell).

I have the same issue on both OSX/mono and Vista/Powershell/command

On Fri, Mar 14, 2008 at 9:45 AM, Josh C. [email protected]

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 C.
[email protected]

I had a problem compiling the source after pulling down revision 77

Here are two “rake compile” results…One before I updated (source was
at rvn 76) one after… Any thoughts?

$ rake compile
c:\ruby\bin\ruby.exe: No such file or directory –
/cygdrive/c/ruby/bin/rake (Lo
adError)

gakins@ssi-45440 /cygdrive/c/Libraries/IronRuby/trunk
$ rake.bat compile
(in c:/Libraries/IronRuby/trunk)
Read in 17 resources from
“c:\Libraries\IronRuby\trunk\src\microsoft.scripting\M
ath\MathResources.resx”
Writing resource file… Done.
Read in 48 resources from
“c:\Libraries\IronRuby\trunk\src\microsoft.scripting\R
esources.resx”
Writing resource file… Done.

gakins@ssi-45440 /cygdrive/c/Libraries/IronRuby/trunk
$ rake.bat compile
(in c:/Libraries/IronRuby/trunk)
Read in 17 resources from
“c:\Libraries\IronRuby\trunk\src\microsoft.scripting\M
ath\MathResources.resx”
Writing resource file… Done.
Read in 49 resources from
“c:\Libraries\IronRuby\trunk\src\microsoft.scripting\R
esources.resx”
Writing resource file… Done.
rake aborted!
Command failed with status (0): [csc /nologo /noconfig
/nowarn:1591,1701,17…]
c:/Libraries/IronRuby/trunk/rakefile:197:in `exec’
(See full trace by running task with --trace)

On Thu, Mar 13, 2008 at 5:55 PM, Mike M. [email protected] wrote:

e:\Sandbox\IronRuby\src\IronRuby.Libraries\Builtins\Kernel.cs:145:in `Exit’:

I checked version 77 out to my work PC, which is running .NET 2.0. I ran
E:\Sandbox\IronRuby\build\debug>rbx
e:\Sandbox\IronRuby\src\ironruby\Runtime\RubyExecutionContext.cs:line 171
Microsoft.Scripting.Runtime.ScriptDomainManager.LanguageRegistration.LoadLanguageContext(ScriptDomainManager
e:\Sandbox\IronRuby\src\microsoft.scripting\Hosting\ScriptRuntime.cs:line
globalScope) in

wrote:


http://rubyforge.org/mailman/listinfo/ironruby-core


Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core


Greg A.
Software Development Manager
SSI Services

http://kc.vanadium.com
http://www.pghcodingdojo.org
http://www.insomnia-consulting.org/monologue

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 © 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:inExit’
from :0:in main' from :0:inInitialize##7

Command failed with status (0): [csc /nologo /noconfig /nowarn:1591,1701,17…]
c:/Libraries/IronRuby/trunk/rakefile:197:in `exec’

I have the same problem.
Previous revision was OK.

SDK v6.0
XP SP2 with .NET v3.0
rake 0.7.2
ruby 1.8.6 (i386-mswin32)