From rob.s.brit at gmail.com Mon Dec 5 10:12:49 2011 From: rob.s.brit at gmail.com (Rob Britton) Date: Mon, 5 Dec 2011 10:12:49 -0500 Subject: [Ironruby-core] Crontab Issues Message-ID: I'm not entirely sure if this is an IronRuby or a Mono issue, but here goes! I have a test suite that we're running on my Ubuntu server that works fine when I SSH in and run it manually, but when it tries to run from a cron job I get the following exceptions: ************************** WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322 ** (/home/rob/code/ironlangs/bin/ Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type System.Diagnostics.CodeAnalysis.SuppressMessageAttribute ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.Diagnostics.CodeAnalysis.SuppressMessageAttribute could not be loaded, used in Microsoft.Scripting ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't find custom attr constructor image: /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: 0x0a00008c ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type System.Diagnostics.CodeAnalysis.SuppressMessageAttribute ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't find custom attr constructor image: /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: 0x0a00008c ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type System.Diagnostics.CodeAnalysis.SuppressMessageAttribute ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't find custom attr constructor image: /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: 0x0a00008c ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.OperatingSystem could not be loaded, used in mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.OperatingSystem could not be loaded, used in mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.OperatingSystem could not be loaded, used in mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Microsoft.Scripting.PlatformAdaptationLayer ---> System.TypeLoadException: Could not load type 'System.OperatingSystem' from assembly 'mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at Microsoft.Scripting.PlatformAdaptationLayer..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at IronRuby.Hosting.RubyConsoleHost..ctor () [0x00000] in :0 at Host..ctor () [0x00000] in :0 at Host.Main (System.String[] args) [0x00000] in :0 ************************************************** Does anybody know why this might happen? Thanks, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From Orion.Edwards at gallagher.co Mon Dec 5 17:14:10 2011 From: Orion.Edwards at gallagher.co (Orion Edwards) Date: Tue, 6 Dec 2011 11:14:10 +1300 Subject: [Ironruby-core] Crontab Issues In-Reply-To: References: Message-ID: The error looks to be with running Mono under cron WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322 That's indicating mono is loading it's version of the .NET 1.1 framework (which dates to 2003), instead of the .NET 4.0 framework (2010), which is what is supported. As to why mono under cron isn't supporting .NET 4, I'm unsure. I'd suspect something to do with your PATH or other environment variables that differ when run under your local user account vs cron. From: Rob Britton To: ironruby-core at rubyforge.org Date: 06/12/2011 04:28 a.m. Subject: [Ironruby-core] Crontab Issues Sent by: ironruby-core-bounces at rubyforge.org I'm not entirely sure if this is an IronRuby or a Mono issue, but here goes! I have a test suite that we're running on my Ubuntu server that works fine when I SSH in and run it manually, but when it tries to run from a cron job I get the following exceptions: ************************** WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322 ** (/home/rob/code/ironlangs/bin/ Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type System.Diagnostics.CodeAnalysis.SuppressMessageAttribute ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.Diagnostics.CodeAnalysis.SuppressMessageAttribute could not be loaded, used in Microsoft.Scripting ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't find custom attr constructor image: /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: 0x0a00008c ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type System.Diagnostics.CodeAnalysis.SuppressMessageAttribute ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't find custom attr constructor image: /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: 0x0a00008c ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type System.Diagnostics.CodeAnalysis.SuppressMessageAttribute ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't find custom attr constructor image: /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: 0x0a00008c ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.OperatingSystem could not be loaded, used in mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.OperatingSystem could not be loaded, used in mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The class System.OperatingSystem could not be loaded, used in mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Microsoft.Scripting.PlatformAdaptationLayer ---> System.TypeLoadException: Could not load type 'System.OperatingSystem' from assembly 'mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at Microsoft.Scripting.PlatformAdaptationLayer..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at IronRuby.Hosting.RubyConsoleHost..ctor () [0x00000] in :0 at Host..ctor () [0x00000] in :0 at Host.Main (System.String[] args) [0x00000] in :0 ************************************************** Does anybody know why this might happen? Thanks, Rob _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob.s.brit at gmail.com Tue Dec 6 09:47:32 2011 From: rob.s.brit at gmail.com (Rob Britton) Date: Tue, 6 Dec 2011 09:47:32 -0500 Subject: [Ironruby-core] Crontab Issues In-Reply-To: References: Message-ID: Yep, it was a PATH issue. Seems like cron has an extremely pared down PATH compared to regular users! Thanks! On Mon, Dec 5, 2011 at 5:14 PM, Orion Edwards wrote: > The error looks to be with running Mono under cron > > WARNING: The runtime version supported by this application is unavailable. > Using default runtime: v1.1.4322 > > That's indicating mono is loading it's version of the .NET 1.1 framework > (which dates to 2003), instead of the .NET 4.0 framework (2010), which is > what is supported. > > As to why mono under cron isn't supporting .NET 4, I'm unsure. I'd suspect > something to do with your PATH or other environment variables that differ > when run under your local user account vs cron. > > > > From: Rob Britton > To: ironruby-core at rubyforge.org > Date: 06/12/2011 04:28 a.m. > Subject: [Ironruby-core] Crontab Issues > Sent by: ironruby-core-bounces at rubyforge.org > ------------------------------ > > > > I'm not entirely sure if this is an IronRuby or a Mono issue, but here > goes! I have a test suite that we're running on my Ubuntu server that works > fine when I SSH in and run it manually, but when it tries to run from a > cron job I get the following exceptions: > > ************************** > WARNING: The runtime version supported by this application is unavailable. > Using default runtime: v1.1.4322 > > ** (/home/rob/code/ironlangs/bin/ > Release/ir.exe:4798): WARNING **: Missing method .ctor in assembly > /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type > System.Diagnostics.CodeAnalysis.SuppressMessageAttribute > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The > class System.Diagnostics.CodeAnalysis.SuppressMessageAttribute could not be > loaded, used in Microsoft.Scripting > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't > find custom attr constructor image: > /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: > 0x0a00008c > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing > method .ctor in assembly > /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type > System.Diagnostics.CodeAnalysis.SuppressMessageAttribute > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't > find custom attr constructor image: > /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: > 0x0a00008c > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Missing > method .ctor in assembly > /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll, type > System.Diagnostics.CodeAnalysis.SuppressMessageAttribute > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: Can't > find custom attr constructor image: > /home/rob/code/ironlangs/bin/Release/Microsoft.Scripting.dll mtoken: > 0x0a00008c > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The > class System.OperatingSystem could not be loaded, used in mscorlib, > Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The > class System.OperatingSystem could not be loaded, used in mscorlib, > Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 > > ** (/home/rob/code/ironlangs/bin/Release/ir.exe:4798): WARNING **: The > class System.OperatingSystem could not be loaded, used in mscorlib, > Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 > > Unhandled Exception: System.TypeInitializationException: An exception was > thrown by the type initializer for > Microsoft.Scripting.PlatformAdaptationLayer ---> System.TypeLoadException: > Could not load type 'System.OperatingSystem' from assembly 'mscorlib, > Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. > at Microsoft.Scripting.PlatformAdaptationLayer..cctor () [0x00000] in > :0 > --- End of inner exception stack trace --- > at IronRuby.Hosting.RubyConsoleHost..ctor () [0x00000] in unknown>:0 > at Host..ctor () [0x00000] in :0 > at Host.Main (System.String[] args) [0x00000] in :0 > ************************************************** > > Does anybody know why this might happen? > > Thanks, > Rob > _______________________________________________ > 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: From lists at ruby-forum.com Sun Dec 11 11:38:00 2011 From: lists at ruby-forum.com (Andrei N.) Date: Sun, 11 Dec 2011 17:38:00 +0100 Subject: [Ironruby-core] WP7 limitations Message-ID: Hi, In the article from 2010, Tom?? was describing the limitations on WP7: http://matousek.wordpress.com/2010/03/21/ironruby-on-your-phone/ "The most significant are calls to methods with out or ref parameters. You also won?t be able to inherit a Ruby class from a CLR class or implement a CLR interface since that requires us to emit a proper CLR type. We are going to address both of these limitations in future versions." Are these two addressed in the latest version of IronRuby for WP7? Thanks! -- Posted via http://www.ruby-forum.com/. From jschementi at gmail.com Sun Dec 11 13:11:12 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Sun, 11 Dec 2011 13:11:12 -0500 Subject: [Ironruby-core] WP7 limitations In-Reply-To: References: Message-ID: <-1562742272953608619@unknownmsgid> This still is not supported in IronRuby, as the version of the CLR on the Windows Phone (at least last i checked) was really the compact framework, which does not support any types usually found in the full .NET Framework's System.Reflection.Emit namespace. Therefore, IronRuby cannot emit the correct backing class. The ref params is also a CF limitation. We were thinking of doing some static analysis to generate C# code which when compiled would produce the required static types, and then know to use those as backing types, but any static analysis solution would not always work in a dynamic language. I haven't used WP7 devtools in a while, so I'd be curious if the Ref.Emit limitation still exists in Mango, but I suspect it is still an issue. ~Jimmy On Dec 11, 2011, at 12:29 PM, "Andrei N." wrote: > Hi, > > In the article from 2010, Tom?? was describing the limitations on WP7: > http://matousek.wordpress.com/2010/03/21/ironruby-on-your-phone/ > > "The most significant are calls to methods with out or ref parameters. > You also won?t be able to inherit a Ruby class from a CLR class or > implement a CLR interface since that requires us to emit a proper CLR > type. We are going to address both of these limitations in future > versions." > > > Are these two addressed in the latest version of IronRuby for WP7? > > Thanks! > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From rob.s.brit at gmail.com Thu Dec 15 14:10:31 2011 From: rob.s.brit at gmail.com (Rob Britton) Date: Thu, 15 Dec 2011 14:10:31 -0500 Subject: [Ironruby-core] The requested feature is not implemented. Message-ID: Hello all, Why might I get the error "The requested feature is not implemented" when calling load_assembly() to load in a Mono-compiled DLL under Ubuntu? When I use the same script to require the same binary under Windows it works fine. Thanks, Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From jschementi at gmail.com Thu Dec 15 14:32:19 2011 From: jschementi at gmail.com (Jimmy Schementi) Date: Thu, 15 Dec 2011 14:32:19 -0500 Subject: [Ironruby-core] The requested feature is not implemented. In-Reply-To: References: Message-ID: <-4822820331837859769@unknownmsgid> When you say it works on Windows, do you mean Mono on Windows, or .NET? I suspect the same thing happens on Mono on Windows, making it a Mono bug. And does the same thing happen if you build the assembly in Windows? And for what it's worth, that error message does not occur anywhere in IronRuby. ~Jimmy On Dec 15, 2011, at 2:22 PM, Rob Britton wrote: > Hello all, > > Why might I get the error "The requested feature is not implemented" when calling load_assembly() to load in a Mono-compiled DLL under Ubuntu? When I use the same script to require the same binary under Windows it works fine. > > Thanks, > Rob > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From rob.s.brit at gmail.com Thu Dec 15 15:23:40 2011 From: rob.s.brit at gmail.com (Rob Britton) Date: Thu, 15 Dec 2011 15:23:40 -0500 Subject: [Ironruby-core] The requested feature is not implemented. In-Reply-To: <-4822820331837859769@unknownmsgid> References: <-4822820331837859769@unknownmsgid> Message-ID: I haven't tried Mono on Windows no, I mean .NET. The C# project when compiled with VS or Mono doesn't make a difference in Windows, it's just on Linux that it has the issue. Yeah you're right, it's probably a Mono issue, I'll send a message over to them. Thanks! On Thu, Dec 15, 2011 at 2:32 PM, Jimmy Schementi wrote: > When you say it works on Windows, do you mean Mono on Windows, or > .NET? I suspect the same thing happens on Mono on Windows, making it a > Mono bug. And does the same thing happen if you build the assembly in > Windows? And for what it's worth, that error message does not occur > anywhere in IronRuby. > > ~Jimmy > > > On Dec 15, 2011, at 2:22 PM, Rob Britton wrote: > > > Hello all, > > > > Why might I get the error "The requested feature is not implemented" > when calling load_assembly() to load in a Mono-compiled DLL under Ubuntu? > When I use the same script to require the same binary under Windows it > works fine. > > > > Thanks, > > Rob > > _______________________________________________ > > 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: From lists at ruby-forum.com Tue Dec 20 04:11:26 2011 From: lists at ruby-forum.com (Andrei N.) Date: Tue, 20 Dec 2011 10:11:26 +0100 Subject: [Ironruby-core] WP7 limitations In-Reply-To: References: Message-ID: <9de2ed327de678314ceb697f437ba154@ruby-forum.com> Hi James! System.Reflection.Emit is available in Mango, partially http://blogs.telerik.com/blogs/posts/11-09-13/mango-and-system-reflection-emit-new-optimizations-in-radcontrols-for-windows-phone.aspx http://msdn.microsoft.com/en-us/library/system.reflection.emit.ilgenerator(VS.96).aspx DynamicMethod, ILGenerator and OpCodes looks like they are fully supported. What do you think? Jurassic for example has made his way on WP7. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Dec 22 15:35:13 2011 From: lists at ruby-forum.com (rubix Rubix) Date: Thu, 22 Dec 2011 21:35:13 +0100 Subject: [Ironruby-core] ruby script in c# application Message-ID: <83f7e059999ae5e94812c845288d9e52@ruby-forum.com> Hi, I just installed IronRuby and I want ot know how to use a ruby script in .Net c# application visual studio 2008, Ruby 1.9.2 regards, -- Posted via http://www.ruby-forum.com/. From pascal at travobject.com Thu Dec 22 17:38:26 2011 From: pascal at travobject.com (Pascal Normandin) Date: Thu, 22 Dec 2011 17:38:26 -0500 Subject: [Ironruby-core] ruby script in c# application In-Reply-To: <83f7e059999ae5e94812c845288d9e52@ruby-forum.com> References: <83f7e059999ae5e94812c845288d9e52@ruby-forum.com> Message-ID: Hello, Here is an example of this http://blog.jimmy.schementi.com/2009/12/ironruby-rubyconf-2009-part-35.html Pascal On Thu, Dec 22, 2011 at 3:35 PM, rubix Rubix wrote: > Hi, > > I just installed IronRuby and I want ot know how to use a ruby script in > .Net c# application > visual studio 2008, Ruby 1.9.2 > regards, > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core