From thibaut.barrere at gmail.com Sun Mar 1 05:57:47 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sun, 1 Mar 2009 11:57:47 +0100 Subject: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? Message-ID: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> Hi, not sure if it's an oddity in my code, a bug or non-implemented feature in IronRuby or Mono - so I'm reporting it here. When using accents inside strings ("Barr?re") that I pass to either buttons or datagridviews, they translate into "BarrA?re". Here's a sample (also available on github ): form = Magic.build do form(:text => "DataGridView sample", :width => 800, :height => 600) do # nifty - current Magic.build makes it possible to reuse the control that has been added @grid = data_grid_view :dock => DockStyle.fill @grid.column_count = 2 @grid.columns[0].name = "First name" @grid.columns[1].name = "Last name" @grid.rows.add("Thibaut","Barr?re") # using my name with its nasty accent - utf-8 ? end end After editing the datagridview, I noticed a log on stdout from mono: 009-03-01 11:48:36.927 mono[5512:10b] WARNING: CFSTR("Barr\37777777703\37777777603\37777777702\37777777650re") has non-7 bit chars, interpreting using MacOS Roman encoding for now, but this will change. Please eliminate usages of non-7 bit chars (including escaped characters above \177 octal) in CFSTR(). So I guess the issue probably boils down to non-MacOS Roman support in Mono. What do you think ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Sun Mar 1 17:47:39 2009 From: lists at ruby-forum.com (Mr X Enterprises) Date: Sun, 1 Mar 2009 23:47:39 +0100 Subject: [Ironruby-core] Getting started in VB? In-Reply-To: References: <314bc8fa6c5b2a85532982ad12a4ef67@ruby-forum.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB399E58@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <7050ed99046ab45efd21b27256ae332f@ruby-forum.com> Nevermind, I figured it out. :) I had to use parenthesesis in the def. def do_foo(v1,v2) Thanks for all of your help. :) -- Posted via http://www.ruby-forum.com/. From thibaut.barrere at gmail.com Mon Mar 2 12:09:21 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 2 Mar 2009 18:09:21 +0100 Subject: [Ironruby-core] Magic - a new project for ironruby-contrib Message-ID: <4a68b8cf0903020909x202e7b5bw74c962501f6055@mail.gmail.com> Hi, I extracted a gem called Magic from my IronRuby UI experiments. It's on GitHub here: http://github.com/thbar/magic/tree/master with a decent README (also see the main spec here: http://github.com/thbar/magic/blob/bdced06811d71ec7f1946a32a5a60d60afb99774/spec/magic_spec.rb). Roughly, it makes it quite easy to build Windows Forms (including controls and menu_items), with sugar for CLR enums, class names, properties and handlers. It's also compatible with non-menu-items/controls stuff, like the BackgroundWorker (I'll upload more samples later on). My rough guess is that it will be useful to much more than Windows Forms UI building (including WPF, Silverlight, or any nested object construction). I hope you'll like it! Before I release this as a gem (through GitHub), I'd like to ask - do you like the name (Magic) ? I thought about switching to MagicCandy to make it easier to google. any feedback will be most appreciated, cheers, -- Thibaut From jdeville at microsoft.com Tue Mar 3 00:24:23 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 2 Mar 2009 21:24:23 -0800 Subject: [Ironruby-core] GIT Push In-Reply-To: References: Message-ID: New git revision pushed. From: Tomas Matousek Sent: Monday, March 02, 2009 9:17 PM To: Jim Deville Subject: GIT Push Just remainder... we should push the latest bits asap to unblock all Mono users. (Assembly resolution also went in, which might help others as well). Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Mar 3 00:45:56 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 2 Mar 2009 21:45:56 -0800 Subject: [Ironruby-core] Regression ? "Invalid IL code in (wrapper dynamic-method)" In-Reply-To: References: <4a68b8cf0902261441n5e673ec0g5c89a8056cfb943a@mail.gmail.com> <69f7d8470902270008p36daf720l1ff47162fd3795a6@mail.gmail.com> <69f7d8470902271147y544f0024me7e62ea713fc1d4@mail.gmail.com> Message-ID: This issue is now fixed in the GIT repo. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Friday, February 27, 2009 2:53 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Regression ? "Invalid IL code in (wrapper dynamic-method)" There is a bug in DLR compiler. We are working on a fix. Thanks for great report, Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jb Evain Sent: Friday, February 27, 2009 11:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Regression ? "Invalid IL code in (wrapper dynamic-method)" Hey Tomas, On 2/27/09, Tomas Matousek wrote: > Jb, could you try again using the latest source code (after Jim pushes it) and if it fails send me please full stack trace and complete IL of the offending method? Sure. So, after building from source the updated git repo, we have a different error, but similar error. I'm simply executing mono ir.exe test.rb, where test.rb only contains a call to `require "mscorlib"`. The stacktrace looks like this: (gdb) bt #0 mono_method_to_ir (cfg=0x8ec0ac0, method=0x8ecbce8, start_bblock=0x8ec48b4, end_bblock=0x8ec494c, return_var=0x0, dont_inline=0x8ec9a60, inline_args=0x0, inline_offset=0, is_virtual_call=0)at method-to-ir.c:4606 #1 0x0806124d in mini_method_compile (method=0x8ecbce8, opts=64055807, domain=0x25ee0, run_cctors=, compile_aot=, parts=0) at mini.c:3208 #2 0x08062b19 in mono_jit_compile_method (method=0x8ecbce8) at mini.c:3847 #3 0x0818ef88 in ves_icall_System_Delegate_CreateDelegate_internal (type=0xc6960, target=0x1f27b0, info=0x2e0a0) at icall.c:5988 #4 0xb6c9ae43 in (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (param0=0xc6960, param1=0x1f27b0, param2=0x2e0a0) at xdb.il:7790 #5 0xb6c9ab34 in System.Delegate:CreateDelegate (type=0xc6960, firstArgument=0x1f27b0, method=0x2e0a0, throwOnBindFailure=true)at /home/jbevain/sources/mcs/class/corlib/System/Delegate.cs:256 #6 0xb6c9a6e6 in System.Delegate:CreateDelegate (type=0xc6960, firstArgument=0x1f27b0, method=0x2e0a0) at /home/jbevain/sources/mcs/class/corlib/System/Delegate.cs:263 #7 0xb6bc152b in System.Reflection.Emit.DynamicMethod:CreateDelegate (this=0x2e0a0, delegateType=0xc6960, target=0x1f27b0) at /home/jbevain/sources/mcs/class/corlib/System.Reflection.Emit/DynamicMethod.cs:189 #8 0xb6bc14c8 in System.Dynamic.Utils.TypeExtensions:CreateDelegate (methodInfo=0x2e0a0, delegateType=0xc6960, target=0x1f27b0) at xdb.il:44617 #9 0xb6bc13d7 in System.Linq.Expressions.Compiler.LambdaCompiler:CreateDelegate (this=0x1f17e0) at xdb.il:44564 #10 0xb6bcb61f in System.Linq.Expressions.Compiler.LambdaCompiler:Compile (lambda=0x1f0ca0) at xdb.il:34475 #11 0xb6bcb57c in System.Linq.Expressions.Expression`1:Compile (this=0x1f0ca0) #12 0xb6b722ba in System.Dynamic.SmallRuleSet`1:MakeTarget (this=0x1f3c60) #13 0xb6b72235 in System.Dynamic.SmallRuleSet`1:GetTarget (this=0x1f3c60) #14 0xb6b721ea in System.Runtime.CompilerServices.CallSiteOps:SetTarget(site=1120512, rule=2047096) #15 0xb6bc293b in System.Dynamic.UpdateDelegates:UpdateAndExecute3 (site=0xe9940, arg0=0x5ab80, arg1=0x50cf0, arg2=0x111528) #16 0xb6bbe81c in (wrapper static-rgctx-invoke) System.Dynamic.UpdateDelegates:static_rgctx_invoke_object_CallSite_RubyScope_object_MutableString (param0=0x111900, param1=0x5ab80, param2=0x50cf0, param3=0x111528)at xdb.il:43447 #17 0xb6ba3120 in (wrapper dynamic-method) object:IR;#;test.rb;0; (param0=0xe9ab0, param1=0x111d50, param2=0x25aa0) at xdb.il:44669 #18 0xb6bcb2b8 in Microsoft.Scripting.ScriptCode:InvokeTarget (this=0x111d68, code=0x4e700, scope=0x111d50) at xdb.il:34374 #19 0xb6bcb279 in Microsoft.Scripting.ScriptCode:Run (this=0x111d68, scope=0x111d50) at xdb.il:34361 #20 0xb6bcb1f3 in Microsoft.Scripting.ScriptCode:Run (this=0x111d68) at xdb.il:34331 #21 0xb6beac36 in IronRuby.Runtime.RubyContext:ExecuteProgram (this=0x25aa0, program=0xe2eb0) at xdb.il:17847 #22 0xb6beab8d in Microsoft.Scripting.Hosting.ScriptSource:ExecuteProgram (this=0x8b978) at xdb.il:17816 #23 0xb6beab2c in (wrapper remoting-invoke-with-check) Microsoft.Scripting.Hosting.ScriptSource:ExecuteProgram (this=0x8b978) at xdb.il:17807 #24 0xb6beaa4e in Microsoft.Scripting.Hosting.Shell.CommandLine:RunFile (this=0xe2f00, source=0x8b978) at xdb.il:17749 #25 0xb6bea389 in IronRuby.Hosting.RubyCommandLine:RunFile (this=0xe2f00, fileName=0x48fe0) at xdb.il:17406 #26 0xb6bea2d2 in Microsoft.Scripting.Hosting.Shell.CommandLine:Run (this=0xe2f00) at xdb.il:17363 #27 0xb6bea103 in Microsoft.Scripting.Hosting.Shell.CommandLine:Run (this=0xe2f00, engine=0x4e880, console=0xe2ed8, options=0x4b320) at xdb.il:17265 #28 0xb6be5570 in Microsoft.Scripting.Hosting.Shell.ConsoleHost:RunCommandLine(this=0x4bfc8) at xdb.il:16737 #29 0xb6be5370 in Microsoft.Scripting.Hosting.Shell.ConsoleHost:ExecuteInternal(this=0x4bfc8) at xdb.il:16638 #30 0xb6be520e in Microsoft.Scripting.Hosting.Shell.ConsoleHost:Execute (this=0x4bfc8) at xdb.il:16568 #31 0xb780b81b in Microsoft.Scripting.Hosting.Shell.ConsoleHost:Run (this=0x4bfc8, args=0x29f48) at xdb.il:276 #32 0xb780b2ca in RubyConsoleHost:Main (args=0x29f48) at xdb.il:79 #33 0xb780b203 in (wrapper runtime-invoke) RubyConsoleHost:runtime_invoke_int_object (param0=, param1=-1073746312, param2=0, param3=-1216302424) at xdb.il:53 #34 0x0814551e in mono_runtime_exec_main (method=0x82cdde4, args=0x29f48, exc=0x0) at object.c:3335 #35 0x08145c3b in mono_runtime_run_main (method=0x82cdde4, argc=1, argv=0xbffff0d8, exc=0x0) at object.c:3123 #36 0x080b1b0a in mono_main (argc=3, argv=0xbffff0d4) at driver.c:969 #37 0x0805aff1 in main (argc=149723456, argv=0x0) at main.c:34 (gdb) And most importantly, the code that is trying to be emitted by the DynamicMethod is as follows: (gdb) p mono_method_get_header(method)->code $1 = (const unsigned char *) 0x8ec15e0 "\005\002{\001" (gdb) p mono_method_get_header(method)->code_size $2 = 198 (gdb) p mono_disasm_code (0, method, 0x8ec15e0, 0x8ec15e0 + 198) IL_0000: ldarg.3 IL_0001: ldarg.0 IL_0002: ldfld IL_0007: ldc.i4.0 IL_0008: ldelem.ref IL_0009: ceq IL_000b: brfalse IL_00a3 IL_0010: ldarg.2 IL_0011: call IL_0016: ldarg.0 IL_0017: ldfld IL_001c: ldc.i4.1 IL_001d: ldelem.ref IL_001e: castclass IL_0023: ceq IL_0025: brfalse IL_00a3 IL_002a: ldarg.s 4 IL_002c: brfalse IL_00a3 IL_0031: ldarg.s 4 IL_0033: castclass IL_0038: callvirt IL_003d: ldtoken IL_0042: call IL_0047: ceq IL_0049: brfalse IL_00a3 IL_004e: ldarg.0 IL_004f: ldfld IL_0054: ldc.i4.2 IL_0055: ldelem.ref IL_0056: castclass IL_005b: ldfld IL_0060: ldc.i4 189 IL_0065: ceq IL_0067: brfalse IL_009d IL_006c: ldarg.2 IL_006d: ldarg.3 IL_006e: ldarg.0 IL_006f: ldfld IL_0074: ldc.i4.3 IL_0075: ldelem.ref IL_0076: castclass IL_007b: dup IL_007c: stloc.0 IL_007d: ldfld IL_0082: ldloc.0 IL_0083: ldarg.2 IL_0084: call IL_0089: ldarg.s 4 IL_008b: callvirt :Invoke (System.Runtime.CompilerServices.CallSite,IronRuby.Runtime.RubyContext,IronRuby.Builtins.MutableString)> IL_0090: call IL_0095: tail. IL_0097: call IL_009c: ret IL_009d: br IL_00a3 IL_00a2: ret IL_00a3: ldarg.1 IL_00a4: call IL_00a9: brfalse IL_00b0 IL_00ae: ldnull IL_00af: ret IL_00b0: ldarg.1 IL_00b1: castclass IL_00b6: callvirt >:get_Update ()> IL_00bb: ldarg.1 IL_00bc: ldarg.2 IL_00bd: ldarg.3 IL_00be: ldarg.s 4 IL_00c0: callvirt :Invoke (System.Runtime.CompilerServices.CallSite,IronRuby.Runtime.RubyScope,object,IronRuby.Builtins.MutableString)> IL_00c5: ret The issue here is the instruction: IL_00a2: ret With is right after an unconditional branch, thus will be executed, but the IL is still wrong. -- Jb Evain _______________________________________________ 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 From jb at nurv.fr Tue Mar 3 06:09:19 2009 From: jb at nurv.fr (Jb Evain) Date: Tue, 3 Mar 2009 12:09:19 +0100 Subject: [Ironruby-core] [patch] welcoming Mono in ir Message-ID: <69f7d8470903030309s563c319jbab49aa7cd4ded95@mail.gmail.com> Hey, In the progress of investigating why with the last git revision, ir.exe in repl mode doesn't print the result of the evaluation, I figured I'd write the most useful patch of the year, to get a cute prompt on Mono: [mono] ~/Desktop/Debug @ mono ir.exe IronRuby 1.0.0.0 on Mono 2.5 Copyright (c) Microsoft Corporation. All rights reserved. That's the documented way to do so, and will be maintained that way. Thanks, -- Jb Evain -------------- next part -------------- A non-text attachment was scrubbed... Name: ir_cmd_mono.patch Type: text/x-patch Size: 1558 bytes Desc: not available URL: From jb at nurv.fr Tue Mar 3 07:46:49 2009 From: jb at nurv.fr (Jb Evain) Date: Tue, 3 Mar 2009 13:46:49 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines Message-ID: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> Hey, I spent some time investigating why on Mono ir.exe (last git revision) doesn't print the result of evaluations. The issue lies in the processing of new lines in Microsoft.Scripting.Core.Hosting.Shell.CommandLine. The code is appending \n as terminating new lines, but checks for the presence of Environment.NewLine inside the evaluated string. Obviously it works only if Environment.NewLine is \r\n, and not \n. Attached is a suggested patch, addressing the issue. -- Jb Evain -------------- next part -------------- A non-text attachment was scrubbed... Name: cmd_line.patch Type: text/x-patch Size: 2026 bytes Desc: not available URL: From ivan at flanders.co.nz Tue Mar 3 09:22:17 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 15:22:17 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> Message-ID: Great i'll add those to the mono branch :) On Tue, Mar 3, 2009 at 1:46 PM, Jb Evain wrote: > Hey, > > I spent some time investigating why on Mono ir.exe (last git revision) > doesn't print the result of evaluations. > > The issue lies in the processing of new lines in > Microsoft.Scripting.Core.Hosting.Shell.CommandLine. > > The code is appending \n as terminating new lines, but checks for the > presence of Environment.NewLine inside the evaluated string. Obviously > it works only if Environment.NewLine is \r\n, and not \n. > > Attached is a suggested patch, addressing the issue. > > -- > Jb Evain > > _______________________________________________ > 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 thibaut.barrere at gmail.com Tue Mar 3 09:34:38 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 15:34:38 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> Message-ID: <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> > Great i'll add those to the mono branch :) Sorry for the obvious question: where is the mono branch ? I think I reached a point where I need to build it myself (and I want to stay on Mac for the moment :-). -- Thibaut From thibaut.barrere at gmail.com Tue Mar 3 09:35:35 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 15:35:35 +0100 Subject: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? In-Reply-To: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> References: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> Message-ID: <4a68b8cf0903030635k53920700s84b1dec8778de4a5@mail.gmail.com> Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here. When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re". Here's a sample (also available on github): Bumping this one - do you have some idea of what's happening there ? Is it a mono related issue ? -- Thibaut > Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here.?When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re".?Here's a sample (also available on github): > > form = Magic.build do > ??form(:text => "DataGridView sample", :width => 800, :height => 600) do > ????# nifty - current Magic.build makes it possible to reuse the control > that has been added > ????@grid = data_grid_view :dock => DockStyle.fill > ????@grid.column_count = 2 > ????@grid.columns[0].name = "First name" > ????@grid.columns[1].name = "Last name" > > ????@grid.rows.add("Thibaut","Barr?re") # using my name with its nasty > accent - utf-8 ? > ??end > end > > After editing the datagridview, I noticed a log on stdout from mono: > 009-03-01 11:48:36.927 mono[5512:10b] WARNING: > CFSTR("Barr\37777777703\37777777603\37777777702\37777777650re") has non-7 > bit chars, interpreting using MacOS Roman encoding for now, but this will > change. Please eliminate usages of non-7 bit chars (including escaped > characters above \177 octal) in CFSTR(). > So I guess the issue probably boils down to non-MacOS Roman support in Mono. > What do you think ? > -- Thibaut From ivan at flanders.co.nz Tue Mar 3 09:46:52 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 15:46:52 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> Message-ID: http://github.com/mletterle/ironruby cd src git clone git://github.com/mletterle/ironruby.git cd ironruby git checkout -b linux git pull origin linux ./build (you may have to chmod +x that build file first) or sh build if you put ~/bin in your PATH variable it will build, package and deploy an ironruby version. I'm still updating the build though at the moment. If you join the IRC channel you can see my check in coming through. I'll also send a mail to this mailinglist when I'm done :). On Tue, Mar 3, 2009 at 3:34 PM, Thibaut Barr?re wrote: > > Great i'll add those to the mono branch :) > > Sorry for the obvious question: where is the mono branch ? > > I think I reached a point where I need to build it myself (and I want > to stay on Mac for the moment :-). > > -- Thibaut > _______________________________________________ > 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 dagda1 at scotalt.net Tue Mar 3 09:53:29 2009 From: dagda1 at scotalt.net (Paul Cowan) Date: Tue, 3 Mar 2009 14:53:29 +0000 Subject: [Ironruby-core] Returning a Clr type in IronRuby Message-ID: Hi, I am trying to return a CLR object from Iron Ruby. I have the following CLR type defined in C# public class BuildMetaData { public string Description { get; set; } } I have the following IronRuby file: $:.unshift(File.dirname(__FILE__) + '/../bin/Debug') require 'mscorlib' require 'Horn.Core.DSL.Domain' class MetaDataFactory def return_meta_data() meta = Horn::Core::DSL::Domain::BuildMetaData.new meta.Description = "A description of sorts" meta end end I have the following test that is failing: [Fact] public void Then_a_build_metadata_object_is_returned() { var engine = Ruby.CreateEngine(); engine.Runtime.LoadAssembly(typeof (BuildMetaData).Assembly); engine.ExecuteFile(buildFile); var klass = engine.Runtime.Globals.GetVariable("MetaDataFactory"); var instance = (RubyObject)engine.Operations.CreateInstance(klass); var metaData = (BuildMetaData)engine.Operations.InvokeMember(instance, "return_meta_data"); Assert.Equal(metaData.Description, "A description of sorts"); } It fails when trying to cast the object returned from IronRuby with the following error. System.InvalidCastException : [A]Horn.Core.DSL.Domain.BuildMetaData cannot be cast to [B]Horn.Core.DSL.Domain.BuildMetaData. Type A originates from 'Horn.Core.DSL.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' at location 'C:\Projects\horn\branches\rubydsl\src\Horn.Dsl.Specificatioin\bin\Debug\Horn.Core.DSL.Domain.dll'. Type B originates from 'Horn.Core.DSL.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\paul.cowan\AppData\Local\Temp\gjpo5svj.0zd\Horn.Dsl.Specificatioin\assembly\dl3\6d8ae49c\7acadf2b_c798c901\Horn.Core.DSL.Domain.DLL'. The only way I can access the members of the BuildMetaData is using reflection. If you look at the error message, both types are created in different locations. Is this possible in IronRuby yet? Cheers Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Mar 3 09:57:48 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 15:57:48 +0100 Subject: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? In-Reply-To: <4a68b8cf0903030635k53920700s84b1dec8778de4a5@mail.gmail.com> References: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> <4a68b8cf0903030635k53920700s84b1dec8778de4a5@mail.gmail.com> Message-ID: No not a mono related issue. I get the same results when i run your sample on windows with MS.NET It must be an encoding thing. When I set the $KCODE to "UTF-8" it still has the same behavior which is weird I guess :) On Tue, Mar 3, 2009 at 3:35 PM, Thibaut Barr?re wrote: > Hi, > > > not sure if it's an oddity in my code, a bug or non-implemented feature > in > > IronRuby or Mono - so I'm reporting it here. When using accents inside > > strings ("Barr?re") that I pass to either buttons or datagridviews, they > > translate into "BarrA?re". Here's a sample (also available on github): > > Bumping this one - do you have some idea of what's happening there ? > Is it a mono related issue ? > > -- Thibaut > > > Hi, > > not sure if it's an oddity in my code, a bug or non-implemented feature > in > > IronRuby or Mono - so I'm reporting it here. When using accents inside > > strings ("Barr?re") that I pass to either buttons or datagridviews, they > > translate into "BarrA?re". Here's a sample (also available on github): > > > > form = Magic.build do > > form(:text => "DataGridView sample", :width => 800, :height => 600) do > > # nifty - current Magic.build makes it possible to reuse the control > > that has been added > > @grid = data_grid_view :dock => DockStyle.fill > > @grid.column_count = 2 > > @grid.columns[0].name = "First name" > > @grid.columns[1].name = "Last name" > > > > @grid.rows.add("Thibaut","Barr?re") # using my name with its nasty > > accent - utf-8 ? > > end > > end > > > > After editing the datagridview, I noticed a log on stdout from mono: > > 009-03-01 11:48:36.927 mono[5512:10b] WARNING: > > CFSTR("Barr\37777777703\37777777603\37777777702\37777777650re") has non-7 > > bit chars, interpreting using MacOS Roman encoding for now, but this will > > change. Please eliminate usages of non-7 bit chars (including escaped > > characters above \177 octal) in CFSTR(). > > So I guess the issue probably boils down to non-MacOS Roman support in > Mono. > > What do you think ? > > -- Thibaut > _______________________________________________ > 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 jb at nurv.fr Tue Mar 3 11:10:58 2009 From: jb at nurv.fr (Jb Evain) Date: Tue, 3 Mar 2009 17:10:58 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> Message-ID: <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> Hey Ivan, On 3/3/09, Ivan Porto Carrero wrote: > Great i'll add those to the mono branch :) Do you keep a log of what goes into this branch? Does the branch contain any workaround for a Mono issue that has not been solved, or reported? -- Jb Evain From Shri.Borde at microsoft.com Tue Mar 3 12:45:32 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 3 Mar 2009 09:45:32 -0800 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D066EBD@NA-EXMSG-C104.redmond.corp.microsoft.com> I have updated the instructions at http://wiki.github.com/ironruby/ironruby#wiki_building-mono. Except for the build step. The wiki says to use ?rake compile mono=1?. Feel free to update the wiki if there is a better way to do the build. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, March 03, 2009 6:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines http://github.com/mletterle/ironruby cd src git clone git://github.com/mletterle/ironruby.git cd ironruby git checkout -b linux git pull origin linux ./build (you may have to chmod +x that build file first) or sh build if you put ~/bin in your PATH variable it will build, package and deploy an ironruby version. I'm still updating the build though at the moment. If you join the IRC channel you can see my check in coming through. I'll also send a mail to this mailinglist when I'm done :). On Tue, Mar 3, 2009 at 3:34 PM, Thibaut Barr?re > wrote: > Great i'll add those to the mono branch :) Sorry for the obvious question: where is the mono branch ? I think I reached a point where I need to build it myself (and I want to stay on Mac for the moment :-). -- Thibaut _______________________________________________ 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 ivan at flanders.co.nz Tue Mar 3 12:49:45 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 18:49:45 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> Message-ID: Perhaps.. Most of the fixes in that branch have to do with type inference and missing parameterless constructors. public class MyType{ } Compiles on MS.NET but not on Mono. public class MyType{ public MyType(){ } } There is an issue though around delegates but this has to do with generic type parameter inference again. And the reason I still didn't check in today is because gmcs is complaining about a file being defined twice but I can't find it anywhere :(. Interpreter is the name of the file, when I look at the class descriptions most of them have been defined as partial classes _and_ it does build on windows :) I had a merge conflict on Microsoft.Scripting.Build.csproj but i thought that had to do with line endings as I couldn't spot the conflict anywhere in the file and when I threw the 2 files in a file comparer line endings were the only differences. I'll try to chase up that one problem with delegates On Tue, Mar 3, 2009 at 5:10 PM, Jb Evain wrote: > Hey Ivan, > > On 3/3/09, Ivan Porto Carrero wrote: > > Great i'll add those to the mono branch :) > > Do you keep a log of what goes into this branch? Does the branch > contain any workaround for a Mono issue that has not been solved, or > reported? > > -- > Jb Evain > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Tue Mar 3 12:55:12 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 3 Mar 2009 09:55:12 -0800 Subject: [Ironruby-core] Returning a Clr type in IronRuby In-Reply-To: References: Message-ID: The problem is that CLR/Mono assembly loader loads the assembly twice into 2 different contexts: "LoadNeither" and "Default". Therefore there are actually 2 different types "BuildMetaData" in system. require 'Horn.Core.DSL.Domain' uses Assembly.LoadFrom to load the assembly, which loads it to one context. A static assembly reference (in C#) is loaded via Assembly.Load, which loads to a different context. You can use Kernel#load_assembly or require '' to invoke Assembly.Load. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Paul Cowan Sent: Tuesday, March 03, 2009 6:53 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Returning a Clr type in IronRuby Hi, I am trying to return a CLR object from Iron Ruby. I have the following CLR type defined in C# public class BuildMetaData { public string Description { get; set; } } I have the following IronRuby file: $:.unshift(File.dirname(__FILE__) + '/../bin/Debug') require 'mscorlib' require 'Horn.Core.DSL.Domain' class MetaDataFactory def return_meta_data() meta = Horn::Core::DSL::Domain::BuildMetaData.new meta.Description = "A description of sorts" meta end end I have the following test that is failing: [Fact] public void Then_a_build_metadata_object_is_returned() { var engine = Ruby.CreateEngine(); engine.Runtime.LoadAssembly(typeof (BuildMetaData).Assembly); engine.ExecuteFile(buildFile); var klass = engine.Runtime.Globals.GetVariable("MetaDataFactory"); var instance = (RubyObject)engine.Operations.CreateInstance(klass); var metaData = (BuildMetaData)engine.Operations.InvokeMember(instance, "return_meta_data"); Assert.Equal(metaData.Description, "A description of sorts"); } It fails when trying to cast the object returned from IronRuby with the following error. System.InvalidCastException : [A]Horn.Core.DSL.Domain.BuildMetaData cannot be cast to [B]Horn.Core.DSL.Domain.BuildMetaData. Type A originates from 'Horn.Core.DSL.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'LoadNeither' at location 'C:\Projects\horn\branches\rubydsl\src\Horn.Dsl.Specificatioin\bin\Debug\Horn.Core.DSL.Domain.dll'. Type B originates from 'Horn.Core.DSL.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Users\paul.cowan\AppData\Local\Temp\gjpo5svj.0zd\Horn.Dsl.Specificatioin\assembly\dl3\6d8ae49c\7acadf2b_c798c901\Horn.Core.DSL.Domain.DLL'. The only way I can access the members of the BuildMetaData is using reflection. If you look at the error message, both types are created in different locations. Is this possible in IronRuby yet? Cheers Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Mar 3 12:55:41 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 3 Mar 2009 09:55:41 -0800 Subject: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? In-Reply-To: References: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> <4a68b8cf0903030635k53920700s84b1dec8778de4a5@mail.gmail.com> Message-ID: I?ll take a look. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, March 03, 2009 6:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? No not a mono related issue. I get the same results when i run your sample on windows with MS.NET It must be an encoding thing. When I set the $KCODE to "UTF-8" it still has the same behavior which is weird I guess :) On Tue, Mar 3, 2009 at 3:35 PM, Thibaut Barr?re > wrote: Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here. When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re". Here's a sample (also available on github): Bumping this one - do you have some idea of what's happening there ? Is it a mono related issue ? -- Thibaut > Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here. When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re". Here's a sample (also available on github): > > form = Magic.build do > form(:text => "DataGridView sample", :width => 800, :height => 600) do > # nifty - current Magic.build makes it possible to reuse the control > that has been added > @grid = data_grid_view :dock => DockStyle.fill > @grid.column_count = 2 > @grid.columns[0].name = "First name" > @grid.columns[1].name = "Last name" > > @grid.rows.add("Thibaut","Barr?re") # using my name with its nasty > accent - utf-8 ? > end > end > > After editing the datagridview, I noticed a log on stdout from mono: > 009-03-01 11:48:36.927 mono[5512:10b] WARNING: > CFSTR("Barr\37777777703\37777777603\37777777702\37777777650re") has non-7 > bit chars, interpreting using MacOS Roman encoding for now, but this will > change. Please eliminate usages of non-7 bit chars (including escaped > characters above \177 octal) in CFSTR(). > So I guess the issue probably boils down to non-MacOS Roman support in Mono. > What do you think ? > -- Thibaut _______________________________________________ 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 ivan at flanders.co.nz Tue Mar 3 12:56:06 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 18:56:06 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D066EBD@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D066EBD@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Cool :) I went ahead and added the bit about the build script, also removed the instruction with the patch file as that is not necessary anymore. On Tue, Mar 3, 2009 at 6:45 PM, Shri Borde wrote: > I have updated the instructions at > http://wiki.github.com/ironruby/ironruby#wiki_building-mono. Except for > the build step. The wiki says to use ?rake compile mono=1?. Feel free to > update the wiki if there is a better way to do the build. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Tuesday, March 03, 2009 6:47 AM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new > lines > > > > http://github.com/mletterle/ironruby > > cd src > > git clone git://github.com/mletterle/ironruby.git > cd ironruby > git checkout -b linux > git pull origin linux > > ./build (you may have to chmod +x that build file first) or sh build > > if you put ~/bin in your PATH variable it will build, package and deploy an > ironruby version. I'm still updating the build though at the moment. If you > join the IRC channel you can see my check in coming through. I'll also send > a mail to this mailinglist when I'm done :). > > > > > On Tue, Mar 3, 2009 at 3:34 PM, Thibaut Barr?re < > thibaut.barrere at gmail.com> wrote: > > > Great i'll add those to the mono branch :) > > Sorry for the obvious question: where is the mono branch ? > > I think I reached a point where I need to build it myself (and I want > to stay on Mac for the moment :-). > > -- Thibaut > > _______________________________________________ > 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 jb at nurv.fr Tue Mar 3 13:08:37 2009 From: jb at nurv.fr (Jb Evain) Date: Tue, 3 Mar 2009 19:08:37 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> Message-ID: <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> Hey, On 3/3/09, Ivan Porto Carrero wrote: > public class MyType{ > } > > Compiles on MS.NET but not on Mono. Huh? It does compile on Mono. It must be a different issue. > There is an issue though around delegates but this has to do with generic > type parameter inference again. Have you filed a bug or extracted a test case? Anyway, I'll make sure IronRuby compiles fine with gmcs. -- Jb Evain From ivan at flanders.co.nz Tue Mar 3 13:09:09 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 19:09:09 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D066EBD@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: http://github.com/casualjim/ironruby/commit/1d06f3dead4de74f3529c8c028a655e0fc94a7a4#diff-4 Mono didn't want to cast the Expression to a LambdaExpression :) On that page you can find most of the code fixes I made to make IR compile on mono. I've just repeated those in Michaels branch and just have to delete my fork at some stage :) On Tue, Mar 3, 2009 at 6:56 PM, Ivan Porto Carrero wrote: > Cool :) I went ahead and added the bit about the build script, also > removed the instruction with the patch file as that is not necessary > anymore. > > > > > On Tue, Mar 3, 2009 at 6:45 PM, Shri Borde wrote: > >> I have updated the instructions at >> http://wiki.github.com/ironruby/ironruby#wiki_building-mono. Except for >> the build step. The wiki says to use ?rake compile mono=1?. Feel free to >> update the wiki if there is a better way to do the build. >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero >> *Sent:* Tuesday, March 03, 2009 6:47 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new >> lines >> >> >> >> http://github.com/mletterle/ironruby >> >> cd src >> >> git clone git://github.com/mletterle/ironruby.git >> cd ironruby >> git checkout -b linux >> git pull origin linux >> >> ./build (you may have to chmod +x that build file first) or sh build >> >> if you put ~/bin in your PATH variable it will build, package and deploy >> an ironruby version. I'm still updating the build though at the moment. If >> you join the IRC channel you can see my check in coming through. I'll also >> send a mail to this mailinglist when I'm done :). >> >> >> >> >> On Tue, Mar 3, 2009 at 3:34 PM, Thibaut Barr?re < >> thibaut.barrere at gmail.com> wrote: >> >> > Great i'll add those to the mono branch :) >> >> Sorry for the obvious question: where is the mono branch ? >> >> I think I reached a point where I need to build it myself (and I want >> to stay on Mac for the moment :-). >> >> -- Thibaut >> >> _______________________________________________ >> 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 jb at nurv.fr Tue Mar 3 13:34:36 2009 From: jb at nurv.fr (Jb Evain) Date: Tue, 3 Mar 2009 19:34:36 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D066EBD@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <69f7d8470903031034w5c3c692fg22fb18bf3f7d1d20@mail.gmail.com> Hey, On 3/3/09, Ivan Porto Carrero wrote: > On that page you can find most of the code fixes I made to make IR compile > on mono. Very nice, thanks! -- Jb Evain From Tomas.Matousek at microsoft.com Tue Mar 3 13:36:13 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 3 Mar 2009 10:36:13 -0800 Subject: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? In-Reply-To: References: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> <4a68b8cf0903030635k53920700s84b1dec8778de4a5@mail.gmail.com> Message-ID: If I run this in Ruby 1.8.6: > ruby ?Ku uni.rb And uni.rb is UTF-8 encoded w/o BOM: puts $KCODE puts 'h?llo'.size I?ll get output: UTF-8 6 So that clearly doesn?t work as one might expect. String literals in MRI 1.8 are always binary (ie. the accented character is stored as any other 2 bytes in the string). AFAIK $KCODE only affects some built-in and library methods ? for example String#inspect, regular expression, conversion libraries, etc. Although IronRuby stores string literals in UTF16 .NET strings, to be fully compatible with MRI 1.8 we use a custom BinaryEncoding for these strings. When a string is converted to an array of bytes using this encoding, only 8 bits of each character are used (the other bits are required to be 0). This works fine for encodings that use a single byte per character. It?s broken for multi-byte encodings but that?s a problem with Ruby 1.8 in general. If you want to use Unicode you should not use 1.8 semantics. You should use -19 switch to run your script in 1.9 mode and either add a UTF8 BOM preamble or Ruby encoding magic comment: #encoding: UTF-8 puts 'h?llo'.size > ruby19 uni.rb 5 > ir.exe -19 uni.rb 5 In a hosted app you can set 1.9 compat mode when creating the ScriptEngine/Runtime: var ruby = IronRuby.Ruby.CreateEngine((setup) => { setup.Options["Compatibility"] = RubyCompatibility.Ruby19 }); Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, March 03, 2009 9:56 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? I?ll take a look. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, March 03, 2009 6:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? No not a mono related issue. I get the same results when i run your sample on windows with MS.NET It must be an encoding thing. When I set the $KCODE to "UTF-8" it still has the same behavior which is weird I guess :) On Tue, Mar 3, 2009 at 3:35 PM, Thibaut Barr?re > wrote: Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here. When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re". Here's a sample (also available on github): Bumping this one - do you have some idea of what's happening there ? Is it a mono related issue ? -- Thibaut > Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here. When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re". Here's a sample (also available on github): > > form = Magic.build do > form(:text => "DataGridView sample", :width => 800, :height => 600) do > # nifty - current Magic.build makes it possible to reuse the control > that has been added > @grid = data_grid_view :dock => DockStyle.fill > @grid.column_count = 2 > @grid.columns[0].name = "First name" > @grid.columns[1].name = "Last name" > > @grid.rows.add("Thibaut","Barr?re") # using my name with its nasty > accent - utf-8 ? > end > end > > After editing the datagridview, I noticed a log on stdout from mono: > 009-03-01 11:48:36.927 mono[5512:10b] WARNING: > CFSTR("Barr\37777777703\37777777603\37777777702\37777777650re") has non-7 > bit chars, interpreting using MacOS Roman encoding for now, but this will > change. Please eliminate usages of non-7 bit chars (including escaped > characters above \177 octal) in CFSTR(). > So I guess the issue probably boils down to non-MacOS Roman support in Mono. > What do you think ? > -- Thibaut _______________________________________________ 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 dagda1 at scotalt.net Tue Mar 3 13:51:15 2009 From: dagda1 at scotalt.net (Paul Cowan) Date: Tue, 3 Mar 2009 18:51:15 +0000 Subject: [Ironruby-core] Returning a Clr type in IronRuby In-Reply-To: References: Message-ID: I was running the test using the R# test runner and once I turned off the shadow-copy assemblies being tested option then the test now passes. 2009/3/3 Tomas Matousek > The problem is that CLR/Mono assembly loader loads the assembly twice > into 2 different contexts: ?LoadNeither? and ?Default?. > > Therefore there are actually 2 different types ?BuildMetaData? in system. > > > > require 'Horn.Core.DSL.Domain' uses Assembly.LoadFrom to load the assembly, > which loads it to one context. > > A static assembly reference (in C#) is loaded via Assembly.Load, which > loads to a different context. > > > > You can use Kernel#load_assembly or require ?? to > invoke Assembly.Load. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Paul Cowan > *Sent:* Tuesday, March 03, 2009 6:53 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] Returning a Clr type in IronRuby > > > > Hi, > I am trying to return a CLR object from Iron Ruby. > > I have the following CLR type defined in C# > > public class BuildMetaData > { > public string Description { get; set; } > } > > I have the following IronRuby file: > $:.unshift(File.dirname(__FILE__) + '/../bin/Debug') > require 'mscorlib' > require 'Horn.Core.DSL.Domain' > class MetaDataFactory > def return_meta_data() > meta = Horn::Core::DSL::Domain::BuildMetaData.new > meta.Description = "A description of sorts" > meta > end > end > > I have the following test that is failing: > > [Fact] > public void Then_a_build_metadata_object_is_returned() > { > var engine = Ruby.CreateEngine(); > engine.Runtime.LoadAssembly(typeof (BuildMetaData).Assembly); > engine.ExecuteFile(buildFile); > var klass = engine.Runtime.Globals.GetVariable("MetaDataFactory"); > var instance = (RubyObject)engine.Operations.CreateInstance(klass); > var metaData = (BuildMetaData)engine.Operations.InvokeMember(instance, > "return_meta_data"); > Assert.Equal(metaData.Description, "A description of sorts"); > } > > It fails when trying to cast the object returned from IronRuby with the > following error. > > System.InvalidCastException : [A]Horn.Core.DSL.Domain.BuildMetaData cannot > be cast to [B]Horn.Core.DSL.Domain.BuildMetaData. Type A originates from > 'Horn.Core.DSL.Domain, Version=1.0.0.0, Culture=neutral, > PublicKeyToken=null' in the context 'LoadNeither' at location > 'C:\Projects\horn\branches\rubydsl\src\Horn.Dsl.Specificatioin\bin\Debug\Horn.Core.DSL.Domain.dll'. > Type B originates from 'Horn.Core.DSL.Domain, Version=1.0.0.0, > Culture=neutral, PublicKeyToken=null' in the context 'Default' at location > 'C:\Users\paul.cowan\AppData\Local\Temp\gjpo5svj.0zd\Horn.Dsl.Specificatioin\assembly\dl3\6d8ae49c\7acadf2b_c798c901\Horn.Core.DSL.Domain.DLL'. > > The only way I can access the members of the BuildMetaData is using > reflection. > > If you look at the error message, both types are created in different > locations. > > Is this possible in IronRuby yet? > > Cheers > > Paul > > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Tue Mar 3 14:37:39 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 3 Mar 2009 11:37:39 -0800 Subject: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? In-Reply-To: References: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> <4a68b8cf0903030635k53920700s84b1dec8778de4a5@mail.gmail.com> Message-ID: Actually the 1.8 parser is somewhat influenced by the current $KCODE. Multi-byte characters could be part of identifiers and also the decision of where a string literal ends needs to deal with multi-byte characters. However, the resulting literals are just plain byte arrays with no knowledge of encoding so String#size method is still broken. To achieve a better .NET interop in IronRuby, we will honor KCODE when creating MutableStrings. The representation of the string will be byte[] if it contains any non-ascii characters and KCODE is set to a non-ascii encoding. We will also attach the KCODE encoding to the MutableString at creation time. This doesn?t affect Ruby 1.8 functionality, it only affects conversions to CLR string. So if you use KCODE = ?U? the CLR strings should be correctly encoded (they are not now as you are experiencing). I?ll implement this feature as soon as possible. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, March 03, 2009 10:36 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? If I run this in Ruby 1.8.6: > ruby ?Ku uni.rb And uni.rb is UTF-8 encoded w/o BOM: puts $KCODE puts 'h?llo'.size I?ll get output: UTF-8 6 So that clearly doesn?t work as one might expect. String literals in MRI 1.8 are always binary (ie. the accented character is stored as any other 2 bytes in the string). AFAIK $KCODE only affects some built-in and library methods ? for example String#inspect, regular expression, conversion libraries, etc. Although IronRuby stores string literals in UTF16 .NET strings, to be fully compatible with MRI 1.8 we use a custom BinaryEncoding for these strings. When a string is converted to an array of bytes using this encoding, only 8 bits of each character are used (the other bits are required to be 0). This works fine for encodings that use a single byte per character. It?s broken for multi-byte encodings but that?s a problem with Ruby 1.8 in general. If you want to use Unicode you should not use 1.8 semantics. You should use -19 switch to run your script in 1.9 mode and either add a UTF8 BOM preamble or Ruby encoding magic comment: #encoding: UTF-8 puts 'h?llo'.size > ruby19 uni.rb 5 > ir.exe -19 uni.rb 5 In a hosted app you can set 1.9 compat mode when creating the ScriptEngine/Runtime: var ruby = IronRuby.Ruby.CreateEngine((setup) => { setup.Options["Compatibility"] = RubyCompatibility.Ruby19 }); Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, March 03, 2009 9:56 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? I?ll take a look. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, March 03, 2009 6:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? No not a mono related issue. I get the same results when i run your sample on windows with MS.NET It must be an encoding thing. When I set the $KCODE to "UTF-8" it still has the same behavior which is weird I guess :) On Tue, Mar 3, 2009 at 3:35 PM, Thibaut Barr?re > wrote: Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here. When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re". Here's a sample (also available on github): Bumping this one - do you have some idea of what's happening there ? Is it a mono related issue ? -- Thibaut > Hi, > not sure if it's an oddity in my code, a bug or non-implemented feature in > IronRuby or Mono - so I'm reporting it here. When using accents inside > strings ("Barr?re") that I pass to either buttons or datagridviews, they > translate into "BarrA?re". Here's a sample (also available on github): > > form = Magic.build do > form(:text => "DataGridView sample", :width => 800, :height => 600) do > # nifty - current Magic.build makes it possible to reuse the control > that has been added > @grid = data_grid_view :dock => DockStyle.fill > @grid.column_count = 2 > @grid.columns[0].name = "First name" > @grid.columns[1].name = "Last name" > > @grid.rows.add("Thibaut","Barr?re") # using my name with its nasty > accent - utf-8 ? > end > end > > After editing the datagridview, I noticed a log on stdout from mono: > 009-03-01 11:48:36.927 mono[5512:10b] WARNING: > CFSTR("Barr\37777777703\37777777603\37777777702\37777777650re") has non-7 > bit chars, interpreting using MacOS Roman encoding for now, but this will > change. Please eliminate usages of non-7 bit chars (including escaped > characters above \177 octal) in CFSTR(). > So I guess the issue probably boils down to non-MacOS Roman support in Mono. > What do you think ? > -- Thibaut _______________________________________________ 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 Shri.Borde at microsoft.com Tue Mar 3 14:34:23 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 3 Mar 2009 11:34:23 -0800 Subject: [Ironruby-core] Code Review: Fixes for setting/getting backtraces Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D066FA0@NA-EXMSG-C104.redmond.corp.microsoft.com> tfpt review "/shelveset:exc;REDMOND\sborde" Comment : Exception backtracesL: - minitest was failing while reporting a test failure because .backtrace was returning null. This was because "raise existingExceptionObject" was setting backtrace to nil. Fixed this and added tests for it. - Overridden versions of set_trace were also not being called. Fixed this. - The model now is that RubyExceptionData.SetBacktrace manages the case of firing (the most override version of) Exception#set_backtrace for the case of an exception being raised. ExceptionOps.SetBacktrace handles the generic case of the user calling the base implmenetation of Exception#set_backtrace (ie. it is the normal library API which does not have to worry about the complications of exception handling). RubyExceptionData.SetBacktrace now eagerly creates the Ruby backtrace in most cases, but this should not affect perf since an exception is being thrown which is much more expensive. Added RubySpec project to Ruby.sln as a placeholder to make it easy to get to the rubyspec files. It contains a link to just a couple of files. Once these are opened, Ctrl-O will open a File Open dialog box in the same folder as that file. Added all the supported command-line options to ir.exe help -------------- next part -------------- A non-text attachment was scrubbed... Name: exc.diff Type: application/octet-stream Size: 53001 bytes Desc: exc.diff URL: From ivan at flanders.co.nz Tue Mar 3 15:19:09 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 21:19:09 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> Message-ID: Ok I just checked in the latest git push from Jim into the linux branch. I also applied your patches JB. As it turns out it was a merge conflict in Microsoft.Scripting.Build.csproj, but git found it unnecessary to mark it as a conflict and just kept the older version of the file. It looks like Runtime/LegacyScriptCode.cs (ironic as IR hasn't even hit 1.0 yet :)) got added and 2 files in the Interpreter couldn't be found because they didn't exist anymore. On Tue, Mar 3, 2009 at 7:08 PM, Jb Evain wrote: > Hey, > > On 3/3/09, Ivan Porto Carrero wrote: > > public class MyType{ > > } > > > > Compiles on MS.NET but not on Mono. > > Huh? It does compile on Mono. It must be a different issue. > > > There is an issue though around delegates but this has to do with generic > > type parameter inference again. > > Have you filed a bug or extracted a test case? > > Anyway, I'll make sure IronRuby compiles fine with gmcs. > > -- > Jb Evain > _______________________________________________ > 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 thibaut.barrere at gmail.com Tue Mar 3 15:24:36 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 21:24:36 +0100 Subject: [Ironruby-core] Issue with accents (UTF-8) - is it supposed to work ? In-Reply-To: References: <4a68b8cf0903010257y1c03b8cbmf9a47329abf6dd0e@mail.gmail.com> <4a68b8cf0903030635k53920700s84b1dec8778de4a5@mail.gmail.com> Message-ID: <4a68b8cf0903031224h72d85276kb86fd3e371cb3e0d@mail.gmail.com> Hi Tomas, thanks for your two messages and the in-depth explanation. Working with -19 and #encoding: UTF-8 indeed solves the issue (tested on Mono). > Actually the 1.8 parser is somewhat influenced by the current $KCODE. > Multi-byte characters could be part of identifiers and also the decision of > where a string literal ends needs to deal with multi-byte characters. > > However, the resulting literals are just plain byte arrays with no knowledge > of encoding so String#size method is still broken. > > To achieve a better .NET interop in IronRuby, we will honor KCODE when > creating MutableStrings. The representation of the string will be byte[] if > it contains any non-ascii characters and KCODE is set to a non-ascii > encoding. We will also attach the KCODE encoding to the MutableString at > creation time. This doesn?t affect Ruby 1.8 functionality, it only affects > conversions to CLR string. So if you use KCODE = ?U? the CLR strings should > be correctly encoded (they are not now as you are experiencing). I?ll > implement this feature as soon as possible. I think affecting strings only when conversion occurs to CLR is a pretty neat idea. I like that a lot more than having to add #encoding and -19 (also because I'm not sure what the impact would be to use -19 just for that). Because I was curious, I had a look at Rails (2.2.2) output for some of these operations: Loading development environment (Rails 2.2.2) "h?llo".size>> "h?llo".size => 6 >> "h?llo".chars => # >> "h?llo".chars.size => 5 >> '?2.99'[0,1] => "\342" >> '?2.99'.first => "?" >> '?2.99'.first => "?" So pretty much rough access through array is pure byte, while .first takes multibytes into account. I think the spirit of what you suggest is somewhat close from that. I like it - and will test it when you'll have it implemented. cheers and thanks for your idea, -- Thibaut From thibaut.barrere at gmail.com Tue Mar 3 15:31:58 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 21:31:58 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D066EBD@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <4a68b8cf0903030634h4f3a267te70a040ae0ce74fb@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D066EBD@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903031231k35da153av36ee90ab785a9696@mail.gmail.com> > I have updated the instructions at > http://wiki.github.com/ironruby/ironruby#wiki_building-mono. Except for the > build step. The wiki says to use ?rake compile mono=1?. Feel free to update > the wiki if there is a better way to do the build. Ivan, Shri, thanks for the build info and updating the wiki. Building it on mono right now. cheers -- Thibaut > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero > Sent: Tuesday, March 03, 2009 6:47 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines > > > > http://github.com/mletterle/ironruby > > cd src > > git clone git://github.com/mletterle/ironruby.git > cd ironruby > git checkout -b linux > git pull origin linux > > ./build (you may have to chmod +x that build file first) or sh build > > if you put ~/bin in your PATH variable it will build, package and deploy an > ironruby version. I'm still updating the build though at the moment. If you > join the IRC channel you can see my check in coming through. I'll also send > a mail to this mailinglist when I'm done :). > > > On Tue, Mar 3, 2009 at 3:34 PM, Thibaut Barr?re > wrote: > >> Great i'll add those to the mono branch :) > > Sorry for the obvious question: where is the mono branch ? > > I think I reached a point where I need to build it myself (and I want > to stay on Mac for the moment :-). > > -- Thibaut > > _______________________________________________ > 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 > > From thibaut.barrere at gmail.com Tue Mar 3 15:38:34 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 21:38:34 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> Message-ID: <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> > Ok I just checked in the latest git push from Jim into the linux branch. I > also applied your patches JB. > As it turns out it was a merge conflict in Microsoft.Scripting.Build.csproj, > but git found it unnecessary to mark it as a conflict and just kept the > older version of the file. > > It looks like Runtime/LegacyScriptCode.cs (ironic as IR hasn't even hit 1.0 > yet :)) got added and 2 files in the Interpreter couldn't be found because > they didn't exist anymore. Seems I have a compile issue (pulled the linux branch) - I'm using the chmod'ed +x build: Exception caught by the compiler while compiling: Block that caused the problem begin at: Runtime/LegacyScriptCode.cs(58,35): Block being compiled: [Runtime/LegacyScriptCode.cs(59,34):,Runtime/LegacyScriptCode.cs(67,13):] System.NullReferenceException: Object reference not set to an instance of an object Internal compiler error at Runtime/LegacyScriptCode.cs(58,35):: exception caught while emitting MethodBuilder [LegacyScriptCode::EnsureTarget] Do you meet this as well ? I'm using Mono 2.4. -- Thibaut > > On Tue, Mar 3, 2009 at 7:08 PM, Jb Evain wrote: >> >> Hey, >> >> On 3/3/09, Ivan Porto Carrero wrote: >> > public class MyType{ >> > } >> > >> > Compiles on MS.NET but not on Mono. >> >> Huh? It does compile on Mono. It must be a different issue. >> >> > There is an issue though around delegates but this has to do with >> > generic >> > type parameter inference again. >> >> Have you filed a bug or extracted a test case? >> >> Anyway, I'll make sure IronRuby compiles fine with gmcs. >> >> -- >> Jb Evain ? >> _______________________________________________ >> 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 > > From thibaut.barrere at gmail.com Tue Mar 3 15:46:03 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 21:46:03 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour Message-ID: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> Hi, while writing specs for Magic, I noticed that: instance_from(MenuItem, "Hello").text.*to_s*.should == "Hello" to_s is required to get the assertion to pass. The following will return false: button = Button.new button.text = "Hello" puts button.text == "Hello" So I guess that CLR strings cannot be compared to Ruby strings unless to_s is applied. While not a big deal, it's a bit surprising. Is it something that is likely to change ? cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Mar 3 15:55:27 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 21:55:27 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> Message-ID: For me it builds but I'm on mono trunk On the build server it builds as well: http://ironruby.colliertech.org/integrity/ironruby/builds/45599d7a3f2f769fc5f658ea2f8eaec1e2eb666a I can publish a packaged version automatically when I build if you want. That would typically be 1-2 days behind on Jim's pushes. I'll set up a git repo with mono builds and publish the url here and on the wiki On Tue, Mar 3, 2009 at 9:38 PM, Thibaut Barr?re wrote: > > Ok I just checked in the latest git push from Jim into the linux branch. > I > > also applied your patches JB. > > As it turns out it was a merge conflict in > Microsoft.Scripting.Build.csproj, > > but git found it unnecessary to mark it as a conflict and just kept the > > older version of the file. > > > > It looks like Runtime/LegacyScriptCode.cs (ironic as IR hasn't even hit > 1.0 > > yet :)) got added and 2 files in the Interpreter couldn't be found > because > > they didn't exist anymore. > > Seems I have a compile issue (pulled the linux branch) - I'm using the > chmod'ed +x build: > > Exception caught by the compiler while compiling: > Block that caused the problem begin at: > Runtime/LegacyScriptCode.cs(58,35): > Block being compiled: > [Runtime/LegacyScriptCode.cs(59,34):,Runtime/LegacyScriptCode.cs(67,13):] > System.NullReferenceException: Object reference not set to an instance > of an object > Internal compiler error at Runtime/LegacyScriptCode.cs(58,35):: > exception caught while emitting MethodBuilder > [LegacyScriptCode::EnsureTarget] > > Do you meet this as well ? I'm using Mono 2.4. > > -- Thibaut > > > > > > > On Tue, Mar 3, 2009 at 7:08 PM, Jb Evain wrote: > >> > >> Hey, > >> > >> On 3/3/09, Ivan Porto Carrero wrote: > >> > public class MyType{ > >> > } > >> > > >> > Compiles on MS.NET but not on Mono. > >> > >> Huh? It does compile on Mono. It must be a different issue. > >> > >> > There is an issue though around delegates but this has to do with > >> > generic > >> > type parameter inference again. > >> > >> Have you filed a bug or extracted a test case? > >> > >> Anyway, I'll make sure IronRuby compiles fine with gmcs. > >> > >> -- > >> Jb Evain > >> _______________________________________________ > >> 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 > > > > > _______________________________________________ > 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 thibaut.barrere at gmail.com Tue Mar 3 16:25:52 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 22:25:52 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> Message-ID: <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> Hi Ivan, > I can publish a packaged version automatically when I build if you want. > That would typically be 1-2 days behind on Jim's pushes. > > I'll set up a git repo with mono builds and publish the url here and on the > wiki > that will be useful, thanks! -- Thibaut > > > > > On Tue, Mar 3, 2009 at 9:38 PM, Thibaut Barr?re > wrote: > >> > Ok I just checked in the latest git push from Jim into the linux branch. >> I >> > also applied your patches JB. >> > As it turns out it was a merge conflict in >> Microsoft.Scripting.Build.csproj, >> > but git found it unnecessary to mark it as a conflict and just kept the >> > older version of the file. >> > >> > It looks like Runtime/LegacyScriptCode.cs (ironic as IR hasn't even hit >> 1.0 >> > yet :)) got added and 2 files in the Interpreter couldn't be found >> because >> > they didn't exist anymore. >> >> Seems I have a compile issue (pulled the linux branch) - I'm using the >> chmod'ed +x build: >> >> Exception caught by the compiler while compiling: >> Block that caused the problem begin at: >> Runtime/LegacyScriptCode.cs(58,35): >> Block being compiled: >> [Runtime/LegacyScriptCode.cs(59,34):,Runtime/LegacyScriptCode.cs(67,13):] >> System.NullReferenceException: Object reference not set to an instance >> of an object >> Internal compiler error at Runtime/LegacyScriptCode.cs(58,35):: >> exception caught while emitting MethodBuilder >> [LegacyScriptCode::EnsureTarget] >> >> Do you meet this as well ? I'm using Mono 2.4. >> >> -- Thibaut >> >> >> >> > >> > On Tue, Mar 3, 2009 at 7:08 PM, Jb Evain wrote: >> >> >> >> Hey, >> >> >> >> On 3/3/09, Ivan Porto Carrero wrote: >> >> > public class MyType{ >> >> > } >> >> > >> >> > Compiles on MS.NET but not on Mono. >> >> >> >> Huh? It does compile on Mono. It must be a different issue. >> >> >> >> > There is an issue though around delegates but this has to do with >> >> > generic >> >> > type parameter inference again. >> >> >> >> Have you filed a bug or extracted a test case? >> >> >> >> Anyway, I'll make sure IronRuby compiles fine with gmcs. >> >> >> >> -- >> >> Jb Evain >> >> _______________________________________________ >> >> 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 >> > >> > >> _______________________________________________ >> 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 ivan at flanders.co.nz Tue Mar 3 16:33:55 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 3 Mar 2009 22:33:55 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> Message-ID: You can find the binaries @ http://github.com/casualjim/ironruby-mono-builds On Tue, Mar 3, 2009 at 10:25 PM, Thibaut Barr?re wrote: > Hi Ivan, > >> I can publish a packaged version automatically when I build if you want. >> That would typically be 1-2 days behind on Jim's pushes. >> >> I'll set up a git repo with mono builds and publish the url here and on >> the wiki >> > > that will be useful, thanks! > > -- Thibaut > > >> >> >> >> >> On Tue, Mar 3, 2009 at 9:38 PM, Thibaut Barr?re < >> thibaut.barrere at gmail.com> wrote: >> >>> > Ok I just checked in the latest git push from Jim into the linux >>> branch. I >>> > also applied your patches JB. >>> > As it turns out it was a merge conflict in >>> Microsoft.Scripting.Build.csproj, >>> > but git found it unnecessary to mark it as a conflict and just kept the >>> > older version of the file. >>> > >>> > It looks like Runtime/LegacyScriptCode.cs (ironic as IR hasn't even hit >>> 1.0 >>> > yet :)) got added and 2 files in the Interpreter couldn't be found >>> because >>> > they didn't exist anymore. >>> >>> Seems I have a compile issue (pulled the linux branch) - I'm using the >>> chmod'ed +x build: >>> >>> Exception caught by the compiler while compiling: >>> Block that caused the problem begin at: >>> Runtime/LegacyScriptCode.cs(58,35): >>> Block being compiled: >>> [Runtime/LegacyScriptCode.cs(59,34):,Runtime/LegacyScriptCode.cs(67,13):] >>> System.NullReferenceException: Object reference not set to an instance >>> of an object >>> Internal compiler error at Runtime/LegacyScriptCode.cs(58,35):: >>> exception caught while emitting MethodBuilder >>> [LegacyScriptCode::EnsureTarget] >>> >>> Do you meet this as well ? I'm using Mono 2.4. >>> >>> -- Thibaut >>> >>> >>> >>> > >>> > On Tue, Mar 3, 2009 at 7:08 PM, Jb Evain wrote: >>> >> >>> >> Hey, >>> >> >>> >> On 3/3/09, Ivan Porto Carrero wrote: >>> >> > public class MyType{ >>> >> > } >>> >> > >>> >> > Compiles on MS.NET but not on Mono. >>> >> >>> >> Huh? It does compile on Mono. It must be a different issue. >>> >> >>> >> > There is an issue though around delegates but this has to do with >>> >> > generic >>> >> > type parameter inference again. >>> >> >>> >> Have you filed a bug or extracted a test case? >>> >> >>> >> Anyway, I'll make sure IronRuby compiles fine with gmcs. >>> >> >>> >> -- >>> >> Jb Evain >>> >> _______________________________________________ >>> >> 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 >>> > >>> > >>> _______________________________________________ >>> 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 >> >> > > _______________________________________________ > 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 thibaut.barrere at gmail.com Tue Mar 3 16:53:09 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 22:53:09 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> Message-ID: <4a68b8cf0903031353l3916afc0kc2b4f97e6deab28e@mail.gmail.com> > > You can find the binaries @ > http://github.com/casualjim/ironruby-mono-builds > Lovely - cloning it right now. thanks! -- Thibaut > > > > > On Tue, Mar 3, 2009 at 10:25 PM, Thibaut Barr?re < > thibaut.barrere at gmail.com> wrote: > >> Hi Ivan, >> >>> I can publish a packaged version automatically when I build if you want. >>> That would typically be 1-2 days behind on Jim's pushes. >>> >>> I'll set up a git repo with mono builds and publish the url here and on >>> the wiki >>> >> >> that will be useful, thanks! >> >> -- Thibaut >> >> >>> >>> >>> >>> >>> On Tue, Mar 3, 2009 at 9:38 PM, Thibaut Barr?re < >>> thibaut.barrere at gmail.com> wrote: >>> >>>> > Ok I just checked in the latest git push from Jim into the linux >>>> branch. I >>>> > also applied your patches JB. >>>> > As it turns out it was a merge conflict in >>>> Microsoft.Scripting.Build.csproj, >>>> > but git found it unnecessary to mark it as a conflict and just kept >>>> the >>>> > older version of the file. >>>> > >>>> > It looks like Runtime/LegacyScriptCode.cs (ironic as IR hasn't even >>>> hit 1.0 >>>> > yet :)) got added and 2 files in the Interpreter couldn't be found >>>> because >>>> > they didn't exist anymore. >>>> >>>> Seems I have a compile issue (pulled the linux branch) - I'm using the >>>> chmod'ed +x build: >>>> >>>> Exception caught by the compiler while compiling: >>>> Block that caused the problem begin at: >>>> Runtime/LegacyScriptCode.cs(58,35): >>>> Block being compiled: >>>> >>>> [Runtime/LegacyScriptCode.cs(59,34):,Runtime/LegacyScriptCode.cs(67,13):] >>>> System.NullReferenceException: Object reference not set to an instance >>>> of an object >>>> Internal compiler error at Runtime/LegacyScriptCode.cs(58,35):: >>>> exception caught while emitting MethodBuilder >>>> [LegacyScriptCode::EnsureTarget] >>>> >>>> Do you meet this as well ? I'm using Mono 2.4. >>>> >>>> -- Thibaut >>>> >>>> >>>> >>>> > >>>> > On Tue, Mar 3, 2009 at 7:08 PM, Jb Evain wrote: >>>> >> >>>> >> Hey, >>>> >> >>>> >> On 3/3/09, Ivan Porto Carrero wrote: >>>> >> > public class MyType{ >>>> >> > } >>>> >> > >>>> >> > Compiles on MS.NET but not on Mono. >>>> >> >>>> >> Huh? It does compile on Mono. It must be a different issue. >>>> >> >>>> >> > There is an issue though around delegates but this has to do with >>>> >> > generic >>>> >> > type parameter inference again. >>>> >> >>>> >> Have you filed a bug or extracted a test case? >>>> >> >>>> >> Anyway, I'll make sure IronRuby compiles fine with gmcs. >>>> >> >>>> >> -- >>>> >> Jb Evain >>>> >> _______________________________________________ >>>> >> 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 >>>> > >>>> > >>>> _______________________________________________ >>>> 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 >>> >>> >> >> _______________________________________________ >> 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 thibaut.barrere at gmail.com Tue Mar 3 17:03:32 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 3 Mar 2009 23:03:32 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <4a68b8cf0903031353l3916afc0kc2b4f97e6deab28e@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> <4a68b8cf0903031353l3916afc0kc2b4f97e6deab28e@mail.gmail.com> Message-ID: <4a68b8cf0903031403v1ee7d2bco22bf35511cdc4f97@mail.gmail.com> In case that's useful to someone else, I had to: ln -s ~/git/ironruby-mono-builds/lib/ ~/lib ln -s ~/git/ironruby-mono-builds/bin/ ~/bin thanks again Ivan! -- Thibaut On Tue, Mar 3, 2009 at 10:53 PM, Thibaut Barr?re wrote: > You can find the binaries @ >> http://github.com/casualjim/ironruby-mono-builds >> > > Lovely - cloning it right now. > > thanks! > > -- Thibaut > > >> >> >> >> >> On Tue, Mar 3, 2009 at 10:25 PM, Thibaut Barr?re < >> thibaut.barrere at gmail.com> wrote: >> >>> Hi Ivan, >>> >>>> I can publish a packaged version automatically when I build if you want. >>>> That would typically be 1-2 days behind on Jim's pushes. >>>> >>>> I'll set up a git repo with mono builds and publish the url here and on >>>> the wiki >>>> >>> >>> that will be useful, thanks! >>> >>> -- Thibaut >>> >>> >>>> >>>> >>>> >>>> >>>> On Tue, Mar 3, 2009 at 9:38 PM, Thibaut Barr?re < >>>> thibaut.barrere at gmail.com> wrote: >>>> >>>>> > Ok I just checked in the latest git push from Jim into the linux >>>>> branch. I >>>>> > also applied your patches JB. >>>>> > As it turns out it was a merge conflict in >>>>> Microsoft.Scripting.Build.csproj, >>>>> > but git found it unnecessary to mark it as a conflict and just kept >>>>> the >>>>> > older version of the file. >>>>> > >>>>> > It looks like Runtime/LegacyScriptCode.cs (ironic as IR hasn't even >>>>> hit 1.0 >>>>> > yet :)) got added and 2 files in the Interpreter couldn't be found >>>>> because >>>>> > they didn't exist anymore. >>>>> >>>>> Seems I have a compile issue (pulled the linux branch) - I'm using the >>>>> chmod'ed +x build: >>>>> >>>>> Exception caught by the compiler while compiling: >>>>> Block that caused the problem begin at: >>>>> Runtime/LegacyScriptCode.cs(58,35): >>>>> Block being compiled: >>>>> >>>>> [Runtime/LegacyScriptCode.cs(59,34):,Runtime/LegacyScriptCode.cs(67,13):] >>>>> System.NullReferenceException: Object reference not set to an instance >>>>> of an object >>>>> Internal compiler error at Runtime/LegacyScriptCode.cs(58,35):: >>>>> exception caught while emitting MethodBuilder >>>>> [LegacyScriptCode::EnsureTarget] >>>>> >>>>> Do you meet this as well ? I'm using Mono 2.4. >>>>> >>>>> -- Thibaut >>>>> >>>>> >>>>> >>>>> > >>>>> > On Tue, Mar 3, 2009 at 7:08 PM, Jb Evain wrote: >>>>> >> >>>>> >> Hey, >>>>> >> >>>>> >> On 3/3/09, Ivan Porto Carrero wrote: >>>>> >> > public class MyType{ >>>>> >> > } >>>>> >> > >>>>> >> > Compiles on MS.NET but not on Mono. >>>>> >> >>>>> >> Huh? It does compile on Mono. It must be a different issue. >>>>> >> >>>>> >> > There is an issue though around delegates but this has to do with >>>>> >> > generic >>>>> >> > type parameter inference again. >>>>> >> >>>>> >> Have you filed a bug or extracted a test case? >>>>> >> >>>>> >> Anyway, I'll make sure IronRuby compiles fine with gmcs. >>>>> >> >>>>> >> -- >>>>> >> Jb Evain >>>>> >> _______________________________________________ >>>>> >> 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 >>>>> > >>>>> > >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>> >>> _______________________________________________ >>> 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 meinrad.recheis at gmail.com Tue Mar 3 17:11:42 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Tue, 3 Mar 2009 23:11:42 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> Message-ID: <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> On Tue, Mar 3, 2009 at 9:46 PM, Thibaut Barr?re wrote: > Hi, > > while writing specs for Magic, I noticed that: > > instance_from(MenuItem, "Hello").text.*to_s*.should == "Hello" > > to_s is required to get the assertion to pass. The following will return > false: > > button = Button.new > button.text = "Hello" > puts button.text == "Hello" > > So I guess that CLR strings cannot be compared to Ruby strings unless to_s > is applied. > I have stumbled on this too and was very surprised. This problem does not exist in IronPython (does it? please correct me if I am wrong). The behavior I was expecting is that "on the ruby" side all strings are (or at least behave exactly like) ruby strings, even if they come from .NET and are automatically converted to clr-strings when passed into clr methods. cheers, -- henon -------------- next part -------------- An HTML attachment was scrubbed... URL: From meinrad.recheis at gmail.com Tue Mar 3 17:19:07 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Tue, 3 Mar 2009 23:19:07 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> Message-ID: <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> On Tue, Mar 3, 2009 at 11:11 PM, Meinrad Recheis wrote: > On Tue, Mar 3, 2009 at 9:46 PM, Thibaut Barr?re > wrote: > >> Hi, >> >> while writing specs for Magic, I noticed that: >> >> instance_from(MenuItem, "Hello").text.*to_s*.should == "Hello" >> >> to_s is required to get the assertion to pass. The following will return >> false: >> >> button = Button.new >> button.text = "Hello" >> puts button.text == "Hello" >> >> So I guess that CLR strings cannot be compared to Ruby strings unless to_s >> is applied. >> > > I have stumbled on this too and was very surprised. This problem does not > exist in IronPython (does it? please correct me if I am wrong). The behavior > I was expecting is that "on the ruby" side all strings are (or at least > behave exactly like) ruby strings, even if they come from .NET and are > automatically converted to clr-strings when passed into clr methods. > In addition to that, it would also be great to have automatic type conversion on the .NET side too. I'd expect to be able to assign a string pulled out from the interpreter to a C# string without the need to call ToString(). For example, string s = engine.Execute("'hi'") as string; Currently s would be null because the dynamic cast to System.String fails. -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Tue Mar 3 17:41:54 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Tue, 3 Mar 2009 14:41:54 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> Message-ID: This mismatch doesn't exist in Python because Python's string semantics are largely compatible with .NET's string semantics. As a result, Python can actually use .NET's strings as Python strings. Ruby strings, unfortunately, are mutable, which means that IronRuby has to use a different type to store a mutable string. In many cases, the binder should automatically perform the conversion between a CLR string and a mutable string. There are probably places (like this one) where something just hasn't been implemented yet. And there may be places where we simply can't do an automatic conversion. The mutable string type in Ruby is (in my opinion) one of the most unfortunate design decisions made in the language. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Tuesday, March 03, 2009 2:19 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour On Tue, Mar 3, 2009 at 11:11 PM, Meinrad Recheis > wrote: On Tue, Mar 3, 2009 at 9:46 PM, Thibaut Barr?re > wrote: Hi, while writing specs for Magic, I noticed that: instance_from(MenuItem, "Hello").text.to_s.should == "Hello" to_s is required to get the assertion to pass. The following will return false: button = Button.new button.text = "Hello" puts button.text == "Hello" So I guess that CLR strings cannot be compared to Ruby strings unless to_s is applied. I have stumbled on this too and was very surprised. This problem does not exist in IronPython (does it? please correct me if I am wrong). The behavior I was expecting is that "on the ruby" side all strings are (or at least behave exactly like) ruby strings, even if they come from .NET and are automatically converted to clr-strings when passed into clr methods. In addition to that, it would also be great to have automatic type conversion on the .NET side too. I'd expect to be able to assign a string pulled out from the interpreter to a C# string without the need to call ToString(). For example, string s = engine.Execute("'hi'") as string; Currently s would be null because the dynamic cast to System.String fails. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Mar 3 17:49:31 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 3 Mar 2009 14:49:31 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB61D4AD@NA-EXMSG-C116.redmond.corp.microsoft.com> IronPython doesn't have this problem because they use CLR Strings directly; Python strings map well to CLR Strings. Ruby has mutable strings, and CLR Strings are immutable, so IronRuby strings are different types than CLR Strings. Comparison of CLR Strings and Ruby Strings should be possible without having to to_s a CLR string ... so this is a bug and on our list of .NET interop things to do. We won't do an auto-conversion of CLR strings to Ruby strings, since a CLR method may return a string that you want to pass onto another CLR method. However, we do convert Ruby strings to CLR strings today. ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Tuesday, March 03, 2009 2:12 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour On Tue, Mar 3, 2009 at 9:46 PM, Thibaut Barr?re > wrote: Hi, while writing specs for Magic, I noticed that: instance_from(MenuItem, "Hello").text.to_s.should == "Hello" to_s is required to get the assertion to pass. The following will return false: button = Button.new button.text = "Hello" puts button.text == "Hello" So I guess that CLR strings cannot be compared to Ruby strings unless to_s is applied. I have stumbled on this too and was very surprised. This problem does not exist in IronPython (does it? please correct me if I am wrong). The behavior I was expecting is that "on the ruby" side all strings are (or at least behave exactly like) ruby strings, even if they come from .NET and are automatically converted to clr-strings when passed into clr methods. cheers, -- henon -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Tue Mar 3 18:05:40 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 00:05:40 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB61D4AD@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB61D4AD@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903031505h6b2613bdie19e9b4d318074e9@mail.gmail.com> > Comparison of CLR Strings and Ruby Strings should be possible without having > to to_s a CLR string ... so this is a bug and on our list of .NET interop > things to do. We won't do an auto-conversion of CLR strings to Ruby strings, > since a CLR method may return a string that you want to pass onto another > CLR method. However, we do convert Ruby strings to CLR strings today. Just removing the need for to_s when comparing sounds good to me. thanks for the feedback, -- Thibaut > > > > ~js > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis > Sent: Tuesday, March 03, 2009 2:12 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > > > On Tue, Mar 3, 2009 at 9:46 PM, Thibaut Barr?re > wrote: > > Hi, > > while writing specs for Magic, I noticed that: > > instance_from(MenuItem, "Hello").text.to_s.should == "Hello" > > to_s is required to get the assertion to pass. The following will return > false: > > > > button = Button.new > > button.text = "Hello" > > puts button.text == "Hello" > > > > So I guess that CLR strings cannot be compared to Ruby strings unless to_s > is applied. > > > > I have stumbled on this too and was very surprised. This problem does not > exist in IronPython (does it? please correct me if I am wrong). The behavior > I was expecting is that "on the ruby" side all strings are (or at least > behave exactly like) ruby strings, even if they come from .NET and are > automatically converted to clr-strings when passed into clr methods. > > > > cheers, > -- henon > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From lists at ruby-forum.com Tue Mar 3 18:09:50 2009 From: lists at ruby-forum.com (Rafael Rosa) Date: Wed, 4 Mar 2009 00:09:50 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <4a68b8cf0903031403v1ee7d2bco22bf35511cdc4f97@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> <4a68b8cf0903031353l3916afc0kc2b4f97e6deab28e@mail.gmail.com> <4a68b8cf0903031403v1ee7d2bco22bf35511cdc4f97@mail.gmail.com> Message-ID: <5c721c0f0420ddf0b95e72e98aac7eb5@ruby-forum.com> Hi, It worked, after some wrestling with the paths. Thanks. Cheers, Rafael www.rafaelrosafu.com -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Tue Mar 3 18:24:23 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 3 Mar 2009 15:24:23 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> Message-ID: We don't plan to make the highlighted code work. However we are going to make this work: string s = engine.Execute("'hi'") and also this works: string s = engine.Execute("'hi'").ToString(), although in this case you need to take care of null. The difference is that unlike Execute, Execute invokes an explicit dynamic conversion on the resulting type. You can achieve the same using engine.ObjectOperations.ConvertTo(engine.Execute("'hi'")). Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Tuesday, March 03, 2009 2:19 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour On Tue, Mar 3, 2009 at 11:11 PM, Meinrad Recheis > wrote: On Tue, Mar 3, 2009 at 9:46 PM, Thibaut Barr?re > wrote: Hi, while writing specs for Magic, I noticed that: instance_from(MenuItem, "Hello").text.to_s.should == "Hello" to_s is required to get the assertion to pass. The following will return false: button = Button.new button.text = "Hello" puts button.text == "Hello" So I guess that CLR strings cannot be compared to Ruby strings unless to_s is applied. I have stumbled on this too and was very surprised. This problem does not exist in IronPython (does it? please correct me if I am wrong). The behavior I was expecting is that "on the ruby" side all strings are (or at least behave exactly like) ruby strings, even if they come from .NET and are automatically converted to clr-strings when passed into clr methods. In addition to that, it would also be great to have automatic type conversion on the .NET side too. I'd expect to be able to assign a string pulled out from the interpreter to a C# string without the need to call ToString(). For example, string s = engine.Execute("'hi'") as string; Currently s would be null because the dynamic cast to System.String fails. -------------- next part -------------- An HTML attachment was scrubbed... URL: From meinrad.recheis at gmail.com Tue Mar 3 19:24:32 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Wed, 4 Mar 2009 01:24:32 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> Message-ID: <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> Ok, the Execute is convenient enough. In my opinion the highlighted C# code represents a potential interoperability pitfall and will need to be documented well. On the ruby side, I think there are no technical limitations to achieve ruby's string behavior even if the underlying object is an immutable clr string. What do you think? -- henon On Wed, Mar 4, 2009 at 12:24 AM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > We don?t plan to make the highlighted code work. However we are going to > make this work: > > > > string s = engine.Execute(??hi??) > > > > and also this works: > > > > string s = engine.Execute(??hi??).ToString(), > > > > although in this case you need to take care of *null*. > > > > The difference is that unlike Execute, Execute invokes an explicit > dynamic conversion on the resulting type. You can achieve the same using > engine.ObjectOperations.ConvertTo(engine.Execute(??hi??)). > > > > Tomas > [...] > In addition to that, it would also be great to have automatic type > conversion on the .NET side too. I'd expect to be able to assign a string > pulled out from the interpreter to a C# string without the need to call > ToString(). For example, > > string s = engine.Execute("'hi'") as string; > > Currently s would be null because the dynamic cast to System.String fails. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Mar 3 19:56:43 2009 From: lists at ruby-forum.com (Rafael Rosa) Date: Wed, 4 Mar 2009 01:56:43 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: References: Message-ID: Hi, I've got the same error, but I'm just starting to use IronRuby. The igem doesn't work and it's very hard to do anything useful without gems. Cheers, Rafael www.rafaelrosafu.com -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Tue Mar 3 23:55:12 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 3 Mar 2009 20:55:12 -0800 Subject: [Ironruby-core] ironruby-dev.zip Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE98A@NA-EXMSG-C116.redmond.corp.microsoft.com> Currently, it's a little hard to find your way around the github repository. To make our crazy directory structure manageable from the command line, the DLR and Languages teams have a developer bat file which sets up paths and helpful aliases to make jumping to important directories and building easy. It was not initially included in the IronRuby github repository because of aliases for non-applicable things. However, in an effort to make life easier when working out of github, I've extracted meaningful aliases here: http://cloud.github.com/downloads/ironruby/ironruby/ironruby-dev.zip Extract the contents into the root of your local repository, and run dev.bat to initialize your environment. This will give you msbuild on your path if you have the VS SDK installed, and give you aliases to navigate the tree and build IronRuby and IronPython (see alias.txt). Currently the Silverlight build aliases don't work, but that'll be fixed shortly. Unfortunately xbuild doesn't quite work to build for Mono, so you'll have to stick with rake compile. I'd be open to having dev.bat detect the platform and load a alias file for building on Mono. These will be added to the github repository shortly, but it requires some refactoring in our internal repo to make sure the aliases work in both places. ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Mar 4 00:50:27 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 3 Mar 2009 21:50:27 -0800 Subject: [Ironruby-core] possible problem on mono In-Reply-To: References: Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> Which same error? Is anyone else having problems with igem on Mono? Have you grabbed the build from here: http://github.com/casualjim/ironruby-mono-builds ? ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Rafael Rosa > Sent: Tuesday, March 03, 2009 4:57 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] possible problem on mono > > Hi, > > I've got the same error, but I'm just starting to use IronRuby. The > igem > doesn't work and it's very hard to do anything useful without gems. > > Cheers, > Rafael > www.rafaelrosafu.com > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Wed Mar 4 01:08:59 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 3 Mar 2009 22:08:59 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> (This is my understanding of the problem, so Tomas please correct me if it's wrong ... I wasn't involved in the initial decision). The "mutableness" of a string is the defining distinction, so we don't make CLR string act like a Ruby string in cases, because it won't allow mutation. This is the same reason we can't easily allow Ruby methods to operate on CLR strings, because mutating methods won't work (chomp!, etc). So rather than only supporting part of the Ruby methods on CLR strings, you have to explicitly ask for one or the other. In practice, I haven't felt much pain by this when hosting IronRuby. The hosting layer can make sure to convert any CLR string into a mutable string, and any strings pulled out of IronRuby code can be turned into CLR strings by the way Tomas showed below. ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Tuesday, March 03, 2009 4:25 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour Ok, the Execute is convenient enough. In my opinion the highlighted C# code represents a potential interoperability pitfall and will need to be documented well. On the ruby side, I think there are no technical limitations to achieve ruby's string behavior even if the underlying object is an immutable clr string. What do you think? -- henon On Wed, Mar 4, 2009 at 12:24 AM, Tomas Matousek > wrote: We don't plan to make the highlighted code work. However we are going to make this work: string s = engine.Execute("'hi'") and also this works: string s = engine.Execute("'hi'").ToString(), although in this case you need to take care of null. The difference is that unlike Execute, Execute invokes an explicit dynamic conversion on the resulting type. You can achieve the same using engine.ObjectOperations.ConvertTo(engine.Execute("'hi'")). Tomas [...] In addition to that, it would also be great to have automatic type conversion on the .NET side too. I'd expect to be able to assign a string pulled out from the interpreter to a C# string without the need to call ToString(). For example, string s = engine.Execute("'hi'") as string; Currently s would be null because the dynamic cast to System.String fails. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Mar 4 01:39:21 2009 From: lists at ruby-forum.com (Rafael Rosa) Date: Wed, 4 Mar 2009 07:39:21 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> Hi, Yes, I tried to build from source, but had a lot of problems and then I found these builds. Calling igems gives the same error Ivan had reported, here a fresh result: ~/Projetos : igem list --debug ERROR: While executing gem ... (System::NullReferenceException) Object reference not set to an instance of an object IronRuby.Libraries:0:in `TryFlattenArray' :0:in `flatten!' mscorlib:0:in `CallSite.Target' gem_runner.rb:25:in `run' mscorlib:0:in `CallSite.Target' igem:0 If I try to call just "igem" it shows the help, no problem, but if I try to run "igem list" or "igem install any_gem" it shows the error above adding the --debug directive, and shows just the first two lines of the error if run without it. Hope it helps. Cheers, Rafael www.rafaelrosafu.com -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Mar 4 02:18:43 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 4 Mar 2009 08:18:43 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> Message-ID: You can get the same behaviour by requiring rubygems I believe. When I get back from work tonight I'll try to track down why this is happening. I had it on my to-do list for a while now. On Wed, Mar 4, 2009 at 7:39 AM, Rafael Rosa wrote: > Hi, > > Yes, I tried to build from source, but had a lot of problems and then I > found these builds. Calling igems gives the same error Ivan had > reported, here a fresh result: > > ~/Projetos : igem list --debug > ERROR: While executing gem ... (System::NullReferenceException) > Object reference not set to an instance of an object > IronRuby.Libraries:0:in `TryFlattenArray' > :0:in `flatten!' > mscorlib:0:in `CallSite.Target' > gem_runner.rb:25:in `run' > mscorlib:0:in `CallSite.Target' > igem:0 > > > If I try to call just "igem" it shows the help, no problem, but if I try > to run "igem list" or "igem install any_gem" it shows the error above > adding the --debug directive, and shows just the first two lines of the > error if run without it. > > Hope it helps. > > Cheers, > Rafael > www.rafaelrosafu.com > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Wed Mar 4 03:03:56 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 4 Mar 2009 00:03:56 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: Apart from being mutable they also carry an encoding along. Ruby string is basically a resizable byte array with an encoding. CLR strings are actually closer to Ruby symbols than to Ruby strings. So we have two options on the Ruby side: either to implement the same set of methods Symbol has or a subset of String methods that don't mutate the string. Since Ruby doesn't provide many useful methods on Symbol it might be better to choose the latter. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, March 03, 2009 10:09 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour (This is my understanding of the problem, so Tomas please correct me if it's wrong ... I wasn't involved in the initial decision). The "mutableness" of a string is the defining distinction, so we don't make CLR string act like a Ruby string in cases, because it won't allow mutation. This is the same reason we can't easily allow Ruby methods to operate on CLR strings, because mutating methods won't work (chomp!, etc). So rather than only supporting part of the Ruby methods on CLR strings, you have to explicitly ask for one or the other. In practice, I haven't felt much pain by this when hosting IronRuby. The hosting layer can make sure to convert any CLR string into a mutable string, and any strings pulled out of IronRuby code can be turned into CLR strings by the way Tomas showed below. ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Tuesday, March 03, 2009 4:25 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour Ok, the Execute is convenient enough. In my opinion the highlighted C# code represents a potential interoperability pitfall and will need to be documented well. On the ruby side, I think there are no technical limitations to achieve ruby's string behavior even if the underlying object is an immutable clr string. What do you think? -- henon On Wed, Mar 4, 2009 at 12:24 AM, Tomas Matousek > wrote: We don't plan to make the highlighted code work. However we are going to make this work: string s = engine.Execute("'hi'") and also this works: string s = engine.Execute("'hi'").ToString(), although in this case you need to take care of null. The difference is that unlike Execute, Execute invokes an explicit dynamic conversion on the resulting type. You can achieve the same using engine.ObjectOperations.ConvertTo(engine.Execute("'hi'")). Tomas [...] In addition to that, it would also be great to have automatic type conversion on the .NET side too. I'd expect to be able to assign a string pulled out from the interpreter to a C# string without the need to call ToString(). For example, string s = engine.Execute("'hi'") as string; Currently s would be null because the dynamic cast to System.String fails. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Wed Mar 4 03:54:07 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 09:54:07 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903040054l2c125deag3b62207031fe86eb@mail.gmail.com> Hi guys, thanks for the discussion. I really understand how tricky this can be from an infrastructure point of view. I raised this point because I pretty much believe the question is going to come over again and again from newcomers. My feeling (although I understand what's happening under the cover) is that it breaks the POLS a bit, and that people using IronRuby for the first time could find it somewhat "flaky" (aaah, it's an interop thingy, ok). Just my opinion - if it stays the same, a red bold entry in the FAQs will be useful :) In the code itself, I don't believe this kind of comparison will be so common, and a .to_s will not necessarily hurt. For people that write tests/specs though, it clutters the code quite a bit. So when running tests, I think my solution will be to patch System::String to avoid cluttering the specs with .to_s calls. I'll share it here if I come to something that works for me. cheers and thanks for the discussion, appreciated, -- Thibaut On Wed, Mar 4, 2009 at 9:03 AM, Tomas Matousek wrote: > Apart from being mutable they also carry an encoding along. Ruby string is > basically a resizable byte array with an encoding. > > > > CLR strings are actually closer to Ruby symbols than to Ruby strings. So we > have two options on the Ruby side: either to implement the same set of > methods Symbol has or a subset of String methods that don?t mutate the > string. Since Ruby doesn?t provide many useful methods on Symbol it might be > better to choose the latter. > > > > Tomas > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi > Sent: Tuesday, March 03, 2009 10:09 PM > > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > > > (This is my understanding of the problem, so Tomas please correct me if it?s > wrong ? I wasn?t involved in the initial decision). > > > > The ?mutableness? of a string is the defining distinction, so we don?t make > CLR string act like a Ruby string in cases, because it won?t allow mutation. > This is the same reason we can?t easily allow Ruby methods to operate on CLR > strings, because mutating methods won?t work (chomp!, etc). So rather than > only supporting part of the Ruby methods on CLR strings, you have to > explicitly ask for one or the other. > > > > In practice, I haven?t felt much pain by this when hosting IronRuby. The > hosting layer can make sure to convert any CLR string into a mutable string, > and any strings pulled out of IronRuby code can be turned into CLR strings > by the way Tomas showed below. > > > > ~js > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis > Sent: Tuesday, March 03, 2009 4:25 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > > > Ok, the Execute is convenient enough. In my opinion the highlighted C# > code represents a potential interoperability pitfall and will need to be > documented well. > > On the ruby side, I think there are no technical limitations to achieve > ruby's string behavior even if the underlying object is an immutable clr > string. What do you think? > > -- henon > > On Wed, Mar 4, 2009 at 12:24 AM, Tomas Matousek > wrote: > > We don?t plan to make the highlighted code work. However we are going to > make this work: > > > > string s = engine.Execute(??hi??) > > > > and also this works: > > > > string s = engine.Execute(??hi??).ToString(), > > > > although in this case you need to take care of null. > > > > The difference is that unlike Execute, Execute invokes an explicit > dynamic conversion on the resulting type. You can achieve the same using > engine.ObjectOperations.ConvertTo(engine.Execute(??hi??)). > > > > Tomas > > > > [...] > > In addition to that, it would also be great to have automatic type > conversion on the .NET side too. I'd expect to be able to assign a string > pulled out from the interpreter to a C# string without the need to call > ToString(). For example, > > string s = engine.Execute("'hi'") as string; > > Currently s would be null because the dynamic cast to System.String fails. > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From thibaut.barrere at gmail.com Wed Mar 4 04:00:06 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 10:00:06 +0100 Subject: [Ironruby-core] A tiny DSL to build Windows::Forms menus from IronRuby - review wanted In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB61C58C@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <4a68b8cf0902261425mc61eb57g6534c463b8f5cdf0@mail.gmail.com> <4a68b8cf0902271154n3a1fe830i8f6fc635cb977d85@mail.gmail.com> <4a68b8cf0902271445x128de271kf35f1c17b3037090@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB61C58C@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903040100lb80c51fq474ed6b628c734fb@mail.gmail.com> Hi Jimmy et al, >> Awesome stuff! If you make this into its own github project, I can add it to >> http://github.com/ironruby/ironruby-contrib as a submodule. That?ll force me >> to keep it updated =) > glad you like it! I'll definitely extract it to a separate github project later on - I'll ping you when I do so. not sure if my annoucement was clear - the separate project is now available. It's called Magic: http://github.com/thbar/magic/tree/master At the end I realize the syntax is totally shooesesque (http://shoooes.net/). I'm in the process of evolving it so that it works well with WPF and Silverlight (and QuickGraph, too). cheers, -- Thibaut > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re > Sent: Friday, February 27, 2009 2:46 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] A tiny DSL to build Windows::Forms menus from > IronRuby - review wanted > > > > After chatting with Ivan, I created some code to build Forms too: > > > > > > form = Magic.build do > > > > ??form(:text => "Hello") do > > > > ????flow_layout_panel(:dock => DockStyle.fill) do > > > > ??????button(:text => "Click me!", :click => lambda { > MessageBox.Show("Hello") }) > > > > ??????button(:text => "Quit", :click => lambda { Application.Exit }) > > > > ????end > > > > ??end > > > > end > > > > > > > > I use method_missing and transform the method name from flow_layout_panel to > FlowLayoutPanel class etc. > > > > After using these a bit, I'm pretty sure we'll end up with some community > project sharing that kind of stuff, at some point. > > > > Nb: I hope it's not OT for the core list - or is it time to create a user > group ? > > > > cheers, > > > > -- Thibaut > > > > On Fri, Feb 27, 2009 at 8:54 PM, Thibaut Barr?re > wrote: > > Hi, > > I think it looks very nice. It?s a shame that you have to resort to direct > lambda?s since you can?t pass two lambda?s in, but otherwise it?s a nice > visual representation of the menu, in code. > > thanks for the feedback, appreciated! > > > > I just realised that I can also use this (without modifying the > implementation): > > > > ?? ?item("&PowerBlade").click { MessageBox.Show("Powerblades are > amazing...") } > > > > instead of > > > > ?? ?item("&PowerBlade", lambda { MessageBox.Show("Powerblades are > amazing...") } > > > > same effect, slightly more readable though. > > > > cheers, and I shall move on to long running operations. > > > > -- Thibaut > > > > > > JD > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re > Sent: Thursday, February 26, 2009 2:26 PM > To: ironruby-core > Subject: [Ironruby-core] A tiny DSL to build Windows::Forms menus from > IronRuby - review wanted > > > > Hi, > > > > I started working on UI bits, both for Ivan book and because my customers > are interested (and well - because it's fun, too!). First topic is how to > build menus more easily (next one will be long running operations and how to > sugar them). > > > > I'd be interested to get your opinion on both the DSL syntax (below for > quick read or?here?on github) and the implementation. > > > > form.menu?=?MainMenu.build?do > ??item("&File")?{ > ?? ?item("&New")?{ > ?? ? ?item("Spreadsheet") > ?? ? ?item("Document") > ?? ?} > ?? ?item?"&Quit",?lambda?{?Application.Exit?} > ??} > ??item("&Tools")?{ > > ?item?"&PowerBlade",?lambda?{?MessageBox.Show("Powerblades?are?amazing...")?} > ?? ?item?"&Scissors" > ??} > end > > > > what do you think ? > > > > cheers, > > > > Thibaut Barr?re > > -- > LoGeek > [blog] http://evolvingworker.com - tools for a better day > [blog] http://blog.logeek.fr - about writing software > > > > _______________________________________________ > 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 > > From thibaut.barrere at gmail.com Wed Mar 4 04:36:46 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 10:36:46 +0100 Subject: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ? Message-ID: <4a68b8cf0903040136x5c6cb6c5rb2a62b0cc7f32d8b@mail.gmail.com> Hi, looking if I can use the internals better: is there a built-in IronRuby way to convert "flow_layout_panel" to "FlowLayoutPanel" ? As it's used all over the place when calling methods, I thought that maybe I could use it as well. I'm currently using this which works well: module Classifier def classify(string) string.gsub(/(^|_)(.)/) { $2.upcase } # simplified version of Rails inflector end end If I can remove some code though, I'm happy. Is the code to achieve this accessible ? -- Thibaut From ivan at flanders.co.nz Wed Mar 4 05:01:42 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 4 Mar 2009 11:01:42 +0100 Subject: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ? In-Reply-To: <4a68b8cf0903040136x5c6cb6c5rb2a62b0cc7f32d8b@mail.gmail.com> References: <4a68b8cf0903040136x5c6cb6c5rb2a62b0cc7f32d8b@mail.gmail.com> Message-ID: Well you can require activesupport Or you can look at Inflector.NET from Andrew Peters. He ported that inflection stuff from activesupport to .NET On Wed, Mar 4, 2009 at 10:36 AM, Thibaut Barr?re wrote: > Hi, > > looking if I can use the internals better: is there a built-in > IronRuby way to convert "flow_layout_panel" to "FlowLayoutPanel" ? As > it's used all over the place when calling methods, I thought that > maybe I could use it as well. > > I'm currently using this which works well: > > module Classifier > def classify(string) > string.gsub(/(^|_)(.)/) { $2.upcase } # simplified version of > Rails inflector > end > end > > If I can remove some code though, I'm happy. Is the code to achieve > this accessible ? > > -- Thibaut > _______________________________________________ > 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 jb at nurv.fr Wed Mar 4 05:07:28 2009 From: jb at nurv.fr (Jb Evain) Date: Wed, 4 Mar 2009 11:07:28 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> Message-ID: <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> Hey, On 3/4/09, Rafael Rosa wrote: > If I try to call just "igem" it shows the help, no problem, but if I try > to run "igem list" or "igem install any_gem" it shows the error above > adding the --debug directive, and shows just the first two lines of the > error if run without it. Which version of Mono are you using? It works fine on Mono HEAD and Mono 2.4. If you're interested in running IronRuby on Mono, I suggest you use a (very) recent Mono anyway, as the DLR and IronRuby sometimes kick Mono's tires hard. -- Jb Evain From thibaut.barrere at gmail.com Wed Mar 4 05:15:40 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 11:15:40 +0100 Subject: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ? In-Reply-To: References: <4a68b8cf0903040136x5c6cb6c5rb2a62b0cc7f32d8b@mail.gmail.com> Message-ID: <4a68b8cf0903040215y5f064d25se435ebb5f82fb253@mail.gmail.com> Hi Ivan, > Well you can require activesupport > Or you can look at Inflector.NET from Andrew Peters. He ported that > inflection stuff from activesupport to .NET The code I'm using is an extract from activesupport inflector. I didn't want to carry the whole dependency for the moment. thanks for the pointer (Inflector.NET), I'll have a look! -- Thibaut > > > On Wed, Mar 4, 2009 at 10:36 AM, Thibaut Barr?re > wrote: >> >> Hi, >> >> looking if I can use the internals better: is there a built-in >> IronRuby way to convert "flow_layout_panel" to "FlowLayoutPanel" ? As >> it's used all over the place when calling methods, I thought that >> maybe I could use it as well. >> >> I'm currently using this which works well: >> >> module Classifier >> ?def classify(string) >> ? ?string.gsub(/(^|_)(.)/) { $2.upcase } # simplified version of >> Rails inflector >> ?end >> end >> >> If I can remove some code though, I'm happy. Is the code to achieve >> this accessible ? >> >> -- Thibaut >> _______________________________________________ >> 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 > > From ivan at flanders.co.nz Wed Mar 4 05:54:41 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 4 Mar 2009 11:54:41 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> Message-ID: I'm using it with mono head.. I'll try when I've done my 8 hours of mercenary time. On Wed, Mar 4, 2009 at 11:07 AM, Jb Evain wrote: > Hey, > > On 3/4/09, Rafael Rosa wrote: > > If I try to call just "igem" it shows the help, no problem, but if I try > > to run "igem list" or "igem install any_gem" it shows the error above > > adding the --debug directive, and shows just the first two lines of the > > error if run without it. > > Which version of Mono are you using? It works fine on Mono HEAD and > Mono 2.4. If you're interested in running IronRuby on Mono, I suggest > you use a (very) recent Mono anyway, as the DLR and IronRuby sometimes > kick Mono's tires hard. > > -- > Jb Evain > _______________________________________________ > 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 ivan at flanders.co.nz Wed Mar 4 05:56:32 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 4 Mar 2009 11:56:32 +0100 Subject: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ? In-Reply-To: <4a68b8cf0903040215y5f064d25se435ebb5f82fb253@mail.gmail.com> References: <4a68b8cf0903040136x5c6cb6c5rb2a62b0cc7f32d8b@mail.gmail.com> <4a68b8cf0903040215y5f064d25se435ebb5f82fb253@mail.gmail.com> Message-ID: I've added the inflector stuff to IronRuby MVC too. The only thing I added to the library was to make it all extension methods. In IronNails I also pulled in the files from active support because I didn't want to take the dependency atm. On Wed, Mar 4, 2009 at 11:15 AM, Thibaut Barr?re wrote: > Hi Ivan, > > > Well you can require activesupport > > Or you can look at Inflector.NET from Andrew Peters. He ported that > > inflection stuff from activesupport to .NET > > The code I'm using is an extract from activesupport inflector. I > didn't want to carry the whole dependency for the moment. > > thanks for the pointer (Inflector.NET), I'll have a look! > > -- Thibaut > > > > > > > On Wed, Mar 4, 2009 at 10:36 AM, Thibaut Barr?re < > thibaut.barrere at gmail.com> > > wrote: > >> > >> Hi, > >> > >> looking if I can use the internals better: is there a built-in > >> IronRuby way to convert "flow_layout_panel" to "FlowLayoutPanel" ? As > >> it's used all over the place when calling methods, I thought that > >> maybe I could use it as well. > >> > >> I'm currently using this which works well: > >> > >> module Classifier > >> def classify(string) > >> string.gsub(/(^|_)(.)/) { $2.upcase } # simplified version of > >> Rails inflector > >> end > >> end > >> > >> If I can remove some code though, I'm happy. Is the code to achieve > >> this accessible ? > >> > >> -- Thibaut > >> _______________________________________________ > >> 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 > > > > > _______________________________________________ > 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 thibaut.barrere at gmail.com Wed Mar 4 06:37:22 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 12:37:22 +0100 Subject: [Ironruby-core] A few things about system and IO.popen - what's the current status ? Message-ID: <4a68b8cf0903040337u7f549672yfde3cd7070980772@mail.gmail.com> Hi, sorry if it's a know fact - I could not find the info easily. I hope this will be useful. On Windows, system() seems to work partially, is it normal ? The following works: >>> system("echo hello") hello => true the following doesn't seem to (although svn is in the path): >>> system("svn") => false >>> system("svn.exe") => false Still on Windows, it seems that IO.popen crashes (I had a quick look at IoOps.cs to see if it was implemented): >>> IO.popen("svn.exe") do |io| puts io.read end :0:in `popen': La r?f?rence d'objet n'est pas d?finie ? une instance d'un objet. (System::NullReferenceException) from :0:in `popen' from :0 I ran the same stuff on Mono and got: IronRuby 1.0.0.0 on Mono 2.4 Copyright (c) Microsoft Corporation. All rights reserved. >>> system("blah") IronRuby.Libraries:0:in `ExecuteProcessAndWait': No such file or directory (Errno::ENOENT) from IronRuby.Libraries:0:in `ExecuteCommandInShell' from :0:in `system' >>> system("svn") => nil >>> system("svn > svninfo.txt") => nil >>> exit Finally, running IO.popen on Mono gives the same output as Windows: IronRuby 1.0.0.0 on Mono 2.4 Copyright (c) Microsoft Corporation. All rights reserved. >>> IO.popen("svn.exe") { |io| puts io.read } :0:in `popen': Object reference not set to an instance of an object (System::NullReferenceException) from :0:in `popen' So my question is: what's the current status on system and IO.popen ? Is it supposed to work and is it a regression, or is it not fully implemented ? I may be able to help at some point here (either by providing patches or testing on Mono + Windows) if it's not your top priority :) Given that I use Ruby to glue things together quite a lot, that would be useful to me. cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at nurv.fr Wed Mar 4 07:02:20 2009 From: jb at nurv.fr (Jb Evain) Date: Wed, 4 Mar 2009 13:02:20 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> Message-ID: <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> On 3/4/09, Ivan Porto Carrero wrote: > I'm using it with mono head.. I'll try when I've done my 8 hours of > mercenary time. Then it's either a difference caused by gmcs or in the branch, as I'm still building origin with csc. -- Jb Evain From jb at nurv.fr Wed Mar 4 07:43:13 2009 From: jb at nurv.fr (Jb Evain) Date: Wed, 4 Mar 2009 13:43:13 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> Message-ID: <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> On 3/4/09, Jb Evain wrote: > On 3/4/09, Ivan Porto Carrero wrote: > > I'm using it with mono head.. I'll try when I've done my 8 hours of > > mercenary time. > > > Then it's either a difference caused by gmcs or in the branch, as I'm > still building origin with csc. It's indeed an issue with gmcs which miscompiles the using in TryFlattenArray. -- Jb Evain From lists at ruby-forum.com Wed Mar 4 09:21:04 2009 From: lists at ruby-forum.com (Rafael Rosa) Date: Wed, 4 Mar 2009 15:21:04 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> Message-ID: <181b27f7bb6a42fa512e095aaefdb44f@ruby-forum.com> I'm using Mono 2.2, I'll try to install the trunk version. I read somewhere that this version would work with 2,2. I'll inform you guys if it worked or not. Thanks -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Wed Mar 4 11:42:23 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 4 Mar 2009 08:42:23 -0800 Subject: [Ironruby-core] A few things about system and IO.popen - what's the current status ? In-Reply-To: <4a68b8cf0903040337u7f549672yfde3cd7070980772@mail.gmail.com> References: <4a68b8cf0903040337u7f549672yfde3cd7070980772@mail.gmail.com> Message-ID: Implementations of both "system" and "popen" are not solid. Any help here is very much appreciated! Feel free to submit patches and also new specs for these methods. Let us know if you need some changes in runtime (IronRuby.dll) since this assembly is not open to contributions just yet (but we might be able to factor some stuff out to libraries or provide the necessary functionality needed in core). BTW, our tag file for Kernel#system contains this suppressions: fails:Kernel#system can run basic things that exist fails:Kernel#system returns false when it can't fails:Kernel#system does not write to stderr when it can't find a command fails:Kernel#system uses /bin/sh if freaky shit is in the command fails:Kernel#system is a private method fails:Kernel#system expands shell variables when given a single string argument fails:Kernel#system does not expand shell variables when given multiples arguments Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, March 04, 2009 3:37 AM To: ironruby-core Subject: [Ironruby-core] A few things about system and IO.popen - what's the current status ? Hi, sorry if it's a know fact - I could not find the info easily. I hope this will be useful. On Windows, system() seems to work partially, is it normal ? The following works: >>> system("echo hello") hello => true the following doesn't seem to (although svn is in the path): >>> system("svn") => false >>> system("svn.exe") => false Still on Windows, it seems that IO.popen crashes (I had a quick look at IoOps.cs to see if it was implemented): >>> IO.popen("svn.exe") do |io| puts io.read end :0:in `popen': La r?f?rence d'objet n'est pas d?finie ? une instance d'un objet. (System::NullReferenceException) from :0:in `popen' from :0 I ran the same stuff on Mono and got: IronRuby 1.0.0.0 on Mono 2.4 Copyright (c) Microsoft Corporation. All rights reserved. >>> system("blah") IronRuby.Libraries:0:in `ExecuteProcessAndWait': No such file or directory (Errno::ENOENT) from IronRuby.Libraries:0:in `ExecuteCommandInShell' from :0:in `system' >>> system("svn") => nil >>> system("svn > svninfo.txt") => nil >>> exit Finally, running IO.popen on Mono gives the same output as Windows: IronRuby 1.0.0.0 on Mono 2.4 Copyright (c) Microsoft Corporation. All rights reserved. >>> IO.popen("svn.exe") { |io| puts io.read } :0:in `popen': Object reference not set to an instance of an object (System::NullReferenceException) from :0:in `popen' So my question is: what's the current status on system and IO.popen ? Is it supposed to work and is it a regression, or is it not fully implemented ? I may be able to help at some point here (either by providing patches or testing on Mono + Windows) if it's not your top priority :) Given that I use Ruby to glue things together quite a lot, that would be useful to me. cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Wed Mar 4 11:54:10 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Wed, 4 Mar 2009 08:54:10 -0800 Subject: [Ironruby-core] A few things about system and IO.popen - what's the current status ? In-Reply-To: References: <4a68b8cf0903040337u7f549672yfde3cd7070980772@mail.gmail.com> Message-ID: I don't know how the semantics differ from Ruby's, but someone interested in doing this could probably adapt the IronPython source code. These functions should be in "nt.cs". :) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Wednesday, March 04, 2009 8:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] A few things about system and IO.popen - what's the current status ? Implementations of both "system" and "popen" are not solid. Any help here is very much appreciated! Feel free to submit patches and also new specs for these methods. Let us know if you need some changes in runtime (IronRuby.dll) since this assembly is not open to contributions just yet (but we might be able to factor some stuff out to libraries or provide the necessary functionality needed in core). BTW, our tag file for Kernel#system contains this suppressions: fails:Kernel#system can run basic things that exist fails:Kernel#system returns false when it can't fails:Kernel#system does not write to stderr when it can't find a command fails:Kernel#system uses /bin/sh if freaky shit is in the command fails:Kernel#system is a private method fails:Kernel#system expands shell variables when given a single string argument fails:Kernel#system does not expand shell variables when given multiples arguments Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, March 04, 2009 3:37 AM To: ironruby-core Subject: [Ironruby-core] A few things about system and IO.popen - what's the current status ? Hi, sorry if it's a know fact - I could not find the info easily. I hope this will be useful. On Windows, system() seems to work partially, is it normal ? The following works: >>> system("echo hello") hello => true the following doesn't seem to (although svn is in the path): >>> system("svn") => false >>> system("svn.exe") => false Still on Windows, it seems that IO.popen crashes (I had a quick look at IoOps.cs to see if it was implemented): >>> IO.popen("svn.exe") do |io| puts io.read end :0:in `popen': La r?f?rence d'objet n'est pas d?finie ? une instance d'un objet. (System::NullReferenceException) from :0:in `popen' from :0 I ran the same stuff on Mono and got: IronRuby 1.0.0.0 on Mono 2.4 Copyright (c) Microsoft Corporation. All rights reserved. >>> system("blah") IronRuby.Libraries:0:in `ExecuteProcessAndWait': No such file or directory (Errno::ENOENT) from IronRuby.Libraries:0:in `ExecuteCommandInShell' from :0:in `system' >>> system("svn") => nil >>> system("svn > svninfo.txt") => nil >>> exit Finally, running IO.popen on Mono gives the same output as Windows: IronRuby 1.0.0.0 on Mono 2.4 Copyright (c) Microsoft Corporation. All rights reserved. >>> IO.popen("svn.exe") { |io| puts io.read } :0:in `popen': Object reference not set to an instance of an object (System::NullReferenceException) from :0:in `popen' So my question is: what's the current status on system and IO.popen ? Is it supposed to work and is it a regression, or is it not fully implemented ? I may be able to help at some point here (either by providing patches or testing on Mono + Windows) if it's not your top priority :) Given that I use Ruby to glue things together quite a lot, that would be useful to me. cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From meinrad.recheis at gmail.com Wed Mar 4 14:18:55 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Wed, 4 Mar 2009 20:18:55 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> On Wed, Mar 4, 2009 at 9:03 AM, Tomas Matousek wrote: > Apart from being mutable they also carry an encoding along. Ruby string > is basically a resizable byte array with an encoding. > > > > CLR strings are actually closer to Ruby symbols than to Ruby strings. So we > have two options on the Ruby side: either to implement the same set of > methods Symbol has or a subset of String methods that don?t mutate the > string. Since Ruby doesn?t provide many useful methods on Symbol it might be > better to choose the latter. > > > > Tomas > I was thinking the same direction ;). I know, the current design has already been decided and it'd be painful to change it. But I am curious if you thought about the option to actually use clr strings and copy them whenever any muting methods have been called. Would solve the compatibility problem but I guess this might have too bad performance impact on existing library code? The problem exists only where strings cross the language boundary (from Ruby to C# or vice versa). There would be the option to strictly convert strings into the expected format each time they cross the boundary. I guess this might also be too costly. Finally a thought about the consequences of the current string incompatibility: I can imagine situations where either clr_strings that "leak" from .Net into ruby library code or ruby strings that "leak" into .NET code might cause bugs which are hard to track down. I was once fooled by the debugger ... thought I got a System.String but it actually was a Mutable string because they exactly look alike. It took some time until I found out what was going on. -- henon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Mar 4 14:54:05 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 4 Mar 2009 11:54:05 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> Message-ID: We can differentiate #inspect on CLR string to print something like i"xxx" ("i" for immutable) or clr:"xxx" ... We can also implement some default conversions, like to_s where it makes sense. We can't use CLR strings and make copies since that don't preserve object identity and type (note that we need to also switch between Unicode char[] and byte[]). We also need to attach some information with the string (encoding, frozen and tainted flags), so it couldn't be just System.String anyways. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Wednesday, March 04, 2009 11:19 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour On Wed, Mar 4, 2009 at 9:03 AM, Tomas Matousek > wrote: Apart from being mutable they also carry an encoding along. Ruby string is basically a resizable byte array with an encoding. CLR strings are actually closer to Ruby symbols than to Ruby strings. So we have two options on the Ruby side: either to implement the same set of methods Symbol has or a subset of String methods that don't mutate the string. Since Ruby doesn't provide many useful methods on Symbol it might be better to choose the latter. Tomas I was thinking the same direction ;). I know, the current design has already been decided and it'd be painful to change it. But I am curious if you thought about the option to actually use clr strings and copy them whenever any muting methods have been called. Would solve the compatibility problem but I guess this might have too bad performance impact on existing library code? The problem exists only where strings cross the language boundary (from Ruby to C# or vice versa). There would be the option to strictly convert strings into the expected format each time they cross the boundary. I guess this might also be too costly. Finally a thought about the consequences of the current string incompatibility: I can imagine situations where either clr_strings that "leak" from .Net into ruby library code or ruby strings that "leak" into .NET code might cause bugs which are hard to track down. I was once fooled by the debugger ... thought I got a System.String but it actually was a Mutable string because they exactly look alike. It took some time until I found out what was going on. -- henon -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at nurv.fr Wed Mar 4 15:03:26 2009 From: jb at nurv.fr (Jb Evain) Date: Wed, 4 Mar 2009 21:03:26 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> Message-ID: <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> On 3/4/09, Jb Evain wrote: > It's indeed an issue with gmcs which miscompiles the using in TryFlattenArray. This issue is fixed in Mono' HEAD. The fix is not going to be backported to 2.4 though. Attached is a diff for the Mono branch which work arounds the particular problem. -- Jb Evain -------------- next part -------------- A non-text attachment was scrubbed... Name: workaround_usings.diff Type: text/x-patch Size: 5429 bytes Desc: not available URL: From Shri.Borde at microsoft.com Wed Mar 4 15:11:44 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 4 Mar 2009 12:11:44 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> I think System.String should support the non-mutating methods of Ruby String class (second option Tomas mentioned). We enhance other CLR types with the Ruby equivalent functionality (like System.Collections.IEnumerable to Enumerable, all CLR types support Ruby Object and Kernel methods like #class, etc). http://www.ironruby.net/About/Roadmap already mentions supporting to_s on all CLR types anyway. Why would we need to do anything special for System.String? Mutating operations will fail which could be surprising. We can address this by throwing good error messages indicating that the user has to explicitly convert it to a Ruby string. I like the idea of showing System.String as clr:"xxx". Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Wednesday, March 04, 2009 11:54 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour We can differentiate #inspect on CLR string to print something like i"xxx" ("i" for immutable) or clr:"xxx" ... We can also implement some default conversions, like to_s where it makes sense. We can't use CLR strings and make copies since that don't preserve object identity and type (note that we need to also switch between Unicode char[] and byte[]). We also need to attach some information with the string (encoding, frozen and tainted flags), so it couldn't be just System.String anyways. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Wednesday, March 04, 2009 11:19 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour On Wed, Mar 4, 2009 at 9:03 AM, Tomas Matousek > wrote: Apart from being mutable they also carry an encoding along. Ruby string is basically a resizable byte array with an encoding. CLR strings are actually closer to Ruby symbols than to Ruby strings. So we have two options on the Ruby side: either to implement the same set of methods Symbol has or a subset of String methods that don't mutate the string. Since Ruby doesn't provide many useful methods on Symbol it might be better to choose the latter. Tomas I was thinking the same direction ;). I know, the current design has already been decided and it'd be painful to change it. But I am curious if you thought about the option to actually use clr strings and copy them whenever any muting methods have been called. Would solve the compatibility problem but I guess this might have too bad performance impact on existing library code? The problem exists only where strings cross the language boundary (from Ruby to C# or vice versa). There would be the option to strictly convert strings into the expected format each time they cross the boundary. I guess this might also be too costly. Finally a thought about the consequences of the current string incompatibility: I can imagine situations where either clr_strings that "leak" from .Net into ruby library code or ruby strings that "leak" into .NET code might cause bugs which are hard to track down. I was once fooled by the debugger ... thought I got a System.String but it actually was a Mutable string because they exactly look alike. It took some time until I found out what was going on. -- henon -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Wed Mar 4 15:14:41 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 21:14:41 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> > I like the idea of showing System.String as clr:?xxx?. +1 for something like that - this way the failed assertions or people using stdout for debug would not be fooled. -- Thibaut From thibaut.barrere at gmail.com Wed Mar 4 15:48:31 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 4 Mar 2009 21:48:31 +0100 Subject: [Ironruby-core] A few things about system and IO.popen - what's the current status ? In-Reply-To: References: <4a68b8cf0903040337u7f549672yfde3cd7070980772@mail.gmail.com> Message-ID: <4a68b8cf0903041248m75dfe800j30545e1dd6cc61e3@mail.gmail.com> Hi, thanks for the pointers. I'll first have to learn how to compile and launch the specs on my machine. If I manage to get something useful, I'll report back. cheers, -- Thibaut On Wed, Mar 4, 2009 at 5:54 PM, Curt Hagenlocher wrote: > I don?t know how the semantics differ from Ruby?s, but someone interested in > doing this could probably adapt the IronPython source code.? These functions > should be in ?nt.cs?. J > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek > Sent: Wednesday, March 04, 2009 8:42 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] A few things about system and IO.popen - what's > the current status ? > > > > Implementations of both ?system? and ?popen? are not solid. Any help here is > very much appreciated! Feel free to submit patches and also new specs for > these methods. Let us know if you need some changes in runtime > (IronRuby.dll) since this assembly is not open to contributions just yet > (but we might be able to factor some stuff out to libraries or provide the > necessary functionality needed in core). > > > > BTW, our tag file for Kernel#system contains this suppressions: > > > > fails:Kernel#system can run basic things that exist > > fails:Kernel#system returns false when it can't > > fails:Kernel#system does not write to stderr when it can't find a command > > fails:Kernel#system uses /bin/sh if freaky shit is in the command > > fails:Kernel#system is a private method > > fails:Kernel#system expands shell variables when given a single string > argument > > fails:Kernel#system does not expand shell variables when given multiples > arguments > > > > Tomas > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re > Sent: Wednesday, March 04, 2009 3:37 AM > To: ironruby-core > Subject: [Ironruby-core] A few things about system and IO.popen - what's the > current status ? > > > > Hi, > > sorry if it's a know fact - I could not find the info easily. I hope this > will be useful. > > On Windows, system() seems to work partially, is it normal ? The following > works: > >>>> system("echo hello") > hello > => true > > the following doesn't seem to (although svn is in the path): > >>>> system("svn") > => false >>>> system("svn.exe") > => false > > Still on Windows, it seems that IO.popen crashes (I had a quick look at > IoOps.cs to see if it was implemented): > >>>> IO.popen("svn.exe") do |io| puts io.read end > :0:in `popen': La r?f?rence d'objet n'est pas d?finie ? une instance d'un > objet. (System::NullReferenceException) > ? ? ? ?from :0:in `popen' > ? ? ? ?from :0 > > > I ran the same stuff on Mono and got: > > IronRuby 1.0.0.0 on Mono 2.4 > Copyright (c) Microsoft Corporation. All rights reserved. > >>>> system("blah") > IronRuby.Libraries:0:in `ExecuteProcessAndWait': No such file or directory > (Errno::ENOENT) > from IronRuby.Libraries:0:in `ExecuteCommandInShell' > from :0:in `system' > >>>> system("svn") > => nil >>>> system("svn > svninfo.txt") > => nil >>>> exit > > Finally, running IO.popen on Mono gives the same output as Windows: > > > > IronRuby 1.0.0.0 on Mono 2.4 > > Copyright (c) Microsoft Corporation. All rights reserved. > > > >>>> IO.popen("svn.exe") { |io| puts io.read } > > :0:in `popen': Object reference not set to an instance of an object > (System::NullReferenceException) > > ???? from :0:in `popen' > > > > > > So my question is: what's the current status on system and IO.popen ? Is it > supposed to work and is it a regression, or is it not fully implemented ? > > > > I may be able to help at some point here (either by providing patches or > testing on Mono + Windows) if it's not your top priority :) > > > > Given that I use Ruby to glue things together quite a lot, that would be > useful to me. > > > > cheers, > > > > -- Thibaut > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From ivan at flanders.co.nz Wed Mar 4 15:58:07 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 4 Mar 2009 21:58:07 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> Message-ID: Great :D On Wed, Mar 4, 2009 at 9:03 PM, Jb Evain wrote: > On 3/4/09, Jb Evain wrote: > > It's indeed an issue with gmcs which miscompiles the using in > TryFlattenArray. > > This issue is fixed in Mono' HEAD. The fix is not going to be > backported to 2.4 though. Attached is a diff for the Mono branch which > work arounds the particular problem. > > -- > Jb Evain > > _______________________________________________ > 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 jdeville at microsoft.com Wed Mar 4 16:06:31 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 4 Mar 2009 13:06:31 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> Message-ID: Agreed. JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Thibaut Barr?re > Sent: Wednesday, March 04, 2009 12:15 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > > I like the idea of showing System.String as clr:"xxx". > > +1 for something like that - this way the failed assertions or people > using stdout for debug would not be fooled. > > -- Thibaut > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Wed Mar 4 17:10:25 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 4 Mar 2009 23:10:25 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <5c721c0f0420ddf0b95e72e98aac7eb5@ruby-forum.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> <4a68b8cf0903031353l3916afc0kc2b4f97e6deab28e@mail.gmail.com> <4a68b8cf0903031403v1ee7d2bco22bf35511cdc4f97@mail.gmail.com> <5c721c0f0420ddf0b95e72e98aac7eb5@ruby-forum.com> Message-ID: Hi Can you let me know which paths were giving you issues? Thanks On Wed, Mar 4, 2009 at 12:09 AM, Rafael Rosa wrote: > Hi, > > It worked, after some wrestling with the paths. Thanks. > > Cheers, > Rafael > www.rafaelrosafu.com > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 mail at tinco.nl Wed Mar 4 17:26:24 2009 From: mail at tinco.nl (Tinco Andringa) Date: Wed, 4 Mar 2009 23:26:24 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> Message-ID: <2fd035f00903041426y5a8965cat104ec2dcd3a4b37e@mail.gmail.com> >From what I get from this conversation, the ruby strings are strings with a few extra features (mutability, carrying encoding). Wouldn't it be logical for the ruby muteable strings to extend System.String? Are there methods that only work on .net strings and not on ruby strings? Forgive me if this is a stupid question, I'm not very well educated in how muteable strings work :) -- Tinco From ivan at flanders.co.nz Wed Mar 4 18:06:02 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 5 Mar 2009 00:06:02 +0100 Subject: [Ironruby-core] visibility of methods changed? Message-ID: Hi I just upgraded the binaries of IronRuby for IronRuby MVC and suddenly IronRuby doesn't know how to handle protected methods in an inherited class. when i changed visibility it worked again. The error message was clear: RubyController.View has no publicly visible members Is this supposed to happen? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Mar 4 18:24:48 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 5 Mar 2009 00:24:48 +0100 Subject: [Ironruby-core] gems and .gemrc Message-ID: It looks like ironruby isn't happy with a .gemrc file this happens both on windows and mono. +ivan at ivan-mbp:~/src/ironruby (linux)? igem list *** LOCAL GEMS *** +ivan at ivan-mbp:~/src/ironruby (linux)? igem install rake ERROR: While executing gem ... (URI::InvalidComponentError) bad component(expected absolute path component): latest_specs.4.8 +ivan at ivan-mbp:~/src/ironruby (linux)? ls ~/.ge* /Users/ivan/.gemrc /Users/ivan/.gem: jruby latest_source_cache ruby source_cache specs +ivan at ivan-mbp:~/src/ironruby (linux)? mv ~/.gemrc ~/.gemrc.old +ivan at ivan-mbp:~/src/ironruby (linux)? igem install rake Successfully installed rake-0.8.4 1 gem installed Installing ri documentation for rake-0.8.4... Installing RDoc documentation for rake-0.8.4... +ivan at ivan-mbp:~/src/ironruby (linux)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Mar 4 18:26:57 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 4 Mar 2009 15:26:57 -0800 Subject: [Ironruby-core] gems and .gemrc In-Reply-To: References: Message-ID: What is in your .gemrc? At one point IronRuby had problems with sources that didn?t have a trailing slash. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, March 04, 2009 3:25 PM To: ironruby-core Subject: [Ironruby-core] gems and .gemrc It looks like ironruby isn't happy with a .gemrc file this happens both on windows and mono. +ivan at ivan-mbp:~/src/ironruby (linux)? igem list *** LOCAL GEMS *** +ivan at ivan-mbp:~/src/ironruby (linux)? igem install rake ERROR: While executing gem ... (URI::InvalidComponentError) bad component(expected absolute path component): latest_specs.4.8 +ivan at ivan-mbp:~/src/ironruby (linux)? ls ~/.ge* /Users/ivan/.gemrc /Users/ivan/.gem: jruby latest_source_cache ruby source_cache specs +ivan at ivan-mbp:~/src/ironruby (linux)? mv ~/.gemrc ~/.gemrc.old +ivan at ivan-mbp:~/src/ironruby (linux)? igem install rake Successfully installed rake-0.8.4 1 gem installed Installing ri documentation for rake-0.8.4... Installing RDoc documentation for rake-0.8.4... +ivan at ivan-mbp:~/src/ironruby (linux)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Mar 4 18:33:26 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 4 Mar 2009 15:33:26 -0800 Subject: [Ironruby-core] visibility of methods changed? In-Reply-To: References: Message-ID: This is a temporary limitation. It will be fixed. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, March 04, 2009 3:06 PM To: ironruby-core Subject: [Ironruby-core] visibility of methods changed? Hi I just upgraded the binaries of IronRuby for IronRuby MVC and suddenly IronRuby doesn't know how to handle protected methods in an inherited class. when i changed visibility it worked again. The error message was clear: RubyController.View has no publicly visible members Is this supposed to happen? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Mar 4 23:54:21 2009 From: lists at ruby-forum.com (Rafael Rosa) Date: Thu, 5 Mar 2009 05:54:21 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903030810u7909d7b7q450f9afb61a7bc19@mail.gmail.com> <69f7d8470903031008s5920a794ybd1b15f1199263@mail.gmail.com> <4a68b8cf0903031238l55bd7f68y911676c923f32c4f@mail.gmail.com> <4a68b8cf0903031325h411abc07p670ced4a200e475b@mail.gmail.com> <4a68b8cf0903031353l3916afc0kc2b4f97e6deab28e@mail.gmail.com> <4a68b8cf0903031403v1ee7d2bco22bf35511cdc4f97@mail.gmail.com> <5c721c0f0420ddf0b95e72e98aac7eb5@ruby-forum.com> Message-ID: <900a6e46d469edf92226bf8e2bc3ca1a@ruby-forum.com> Hi, Nothing serious, the problem is that the "ir" script has a hardcoded path to "~/bin/ir" and already used that directory, so I had to ajust that, no big deal, but it might be nice to put a small notice on the README warning about that. Sorry for not specifing the problem before. Cheers -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 5 00:12:48 2009 From: lists at ruby-forum.com (Rafael Rosa) Date: Thu, 5 Mar 2009 06:12:48 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> Message-ID: <61f3ffdccaba8ea6e02131bffcdd5648@ruby-forum.com> I downloaded the the latest ironruby-mono-builds and the problem with TryFlattenArray is gone, now "igem list" works, but when I tried to install a gem I got the following error: ~ : igem install rspec --debug ERROR: While executing gem ... (URI::InvalidComponentError) bad component(expected absolute path component): latest_specs.4.8 mscorlib:0:in `CallSite.Target': undefined method `join' for nil:NilClass (NoMethodError) from gem_runner.rb:25:in `run' from mscorlib:0:in `CallSite.Target' from igem:0 And "iirb" isn't working: ~ : iirb --debug Microsoft.Scripting.Core:0:in `Reference': variable '$exception' of type 'System.Exception' referenced from scope '??;suspend_input_method;irb.rb;213;', but it is not defined (TypeError) from Microsoft.Scripting.Core:0:in `VisitParameter' from Microsoft.Scripting.Core:0:in `Accept' from Microsoft.Scripting.Core:0:in `Visit' from Microsoft.Scripting.Core:0:in `VisitBinary' from Microsoft.Scripting.Core:0:in `Accept' I'll try to build a latest Mono version and see what happens. Cheers. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Thu Mar 5 01:33:18 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 5 Mar 2009 07:33:18 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <61f3ffdccaba8ea6e02131bffcdd5648@ruby-forum.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> <61f3ffdccaba8ea6e02131bffcdd5648@ruby-forum.com> Message-ID: rename your .gemrc (hidden in your home folder) file and try again On Thu, Mar 5, 2009 at 6:12 AM, Rafael Rosa wrote: > I downloaded the the latest ironruby-mono-builds and the problem with > TryFlattenArray is gone, now "igem list" works, but when I tried to > install a gem I got the following error: > > ~ : igem install rspec --debug > ERROR: While executing gem ... (URI::InvalidComponentError) > bad component(expected absolute path component): latest_specs.4.8 > mscorlib:0:in `CallSite.Target': undefined method `join' for > nil:NilClass (NoMethodError) > from gem_runner.rb:25:in `run' > from mscorlib:0:in `CallSite.Target' > from igem:0 > > > And "iirb" isn't working: > > ~ : iirb --debug > Microsoft.Scripting.Core:0:in `Reference': variable '$exception' of type > 'System.Exception' referenced from scope > '??;suspend_input_method;irb.rb;213;', but it is not defined (TypeError) > from Microsoft.Scripting.Core:0:in `VisitParameter' > from Microsoft.Scripting.Core:0:in `Accept' > from Microsoft.Scripting.Core:0:in `Visit' > from Microsoft.Scripting.Core:0:in `VisitBinary' > from Microsoft.Scripting.Core:0:in `Accept' > > I'll try to build a latest Mono version and see what happens. > > Cheers. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 Thu Mar 5 08:18:22 2009 From: lists at ruby-forum.com (Rafael Rosa) Date: Thu, 5 Mar 2009 14:18:22 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> <61f3ffdccaba8ea6e02131bffcdd5648@ruby-forum.com> Message-ID: <06750ee39879df8b0bd3812b60909db4@ruby-forum.com> Thanks, I tought it was a related problem. More google, less complaining :) I'm taking a look at it now, I have .NET people meeting this weekend and I want to show them IronRuby. Cheers -- Posted via http://www.ruby-forum.com/. From jb at nurv.fr Thu Mar 5 08:31:24 2009 From: jb at nurv.fr (Jb Evain) Date: Thu, 5 Mar 2009 14:31:24 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <61f3ffdccaba8ea6e02131bffcdd5648@ruby-forum.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9AF@NA-EXMSG-C116.redmond.corp.microsoft.com> <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> <61f3ffdccaba8ea6e02131bffcdd5648@ruby-forum.com> Message-ID: <69f7d8470903050531h4b5633dv75d497fd6feeca7c@mail.gmail.com> Hey, On 3/5/09, Rafael Rosa wrote: > And "iirb" isn't working: I can reproduce that. It's another issue that is either in gmcs or in the branch. I'll investigate. -- Jb Evain From jb at nurv.fr Thu Mar 5 08:32:11 2009 From: jb at nurv.fr (Jb Evain) Date: Thu, 5 Mar 2009 14:32:11 +0100 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> Message-ID: <69f7d8470903050532vc8a5ebbxdd7287614bb7269b@mail.gmail.com> On 3/3/09, Jb Evain wrote: > I spent some time investigating why on Mono ir.exe (last git revision) > doesn't print the result of evaluations. > > The issue lies in the processing of new lines in > Microsoft.Scripting.Core.Hosting.Shell.CommandLine. > > The code is appending \n as terminating new lines, but checks for the > presence of Environment.NewLine inside the evaluated string. Obviously > it works only if Environment.NewLine is \r\n, and not \n. > > Attached is a suggested patch, addressing the issue. Microsoft folks, I know you can't take direct patches for the DLR, but do you plan to take this bug into consideration? -- Jb Evain From curth at microsoft.com Thu Mar 5 09:17:03 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 5 Mar 2009 06:17:03 -0800 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: <69f7d8470903050532vc8a5ebbxdd7287614bb7269b@mail.gmail.com> References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903050532vc8a5ebbxdd7287614bb7269b@mail.gmail.com> Message-ID: I recommend that you file this as a bug report against the DLR at http://www.codeplex.com/dlr -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jb Evain Sent: Thursday, March 05, 2009 5:32 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines On 3/3/09, Jb Evain wrote: > I spent some time investigating why on Mono ir.exe (last git revision) > doesn't print the result of evaluations. > > The issue lies in the processing of new lines in > Microsoft.Scripting.Core.Hosting.Shell.CommandLine. > > The code is appending \n as terminating new lines, but checks for the > presence of Environment.NewLine inside the evaluated string. Obviously > it works only if Environment.NewLine is \r\n, and not \n. > > Attached is a suggested patch, addressing the issue. Microsoft folks, I know you can't take direct patches for the DLR, but do you plan to take this bug into consideration? -- Jb Evain _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Thu Mar 5 11:54:51 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 5 Mar 2009 08:54:51 -0800 Subject: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ? In-Reply-To: References: <4a68b8cf0903040136x5c6cb6c5rb2a62b0cc7f32d8b@mail.gmail.com> <4a68b8cf0903040215y5f064d25se435ebb5f82fb253@mail.gmail.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FF0CC@NA-EXMSG-C116.redmond.corp.microsoft.com> IronRuby has RubyUtils.MangleName/TryUnmangleName in /Merlin/Main/Languages/Ruby/Ruby/Runtime/RubyUtils.cs. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, March 04, 2009 2:57 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ? I've added the inflector stuff to IronRuby MVC too. The only thing I added to the library was to make it all extension methods. In IronNails I also pulled in the files from active support because I didn't want to take the dependency atm. On Wed, Mar 4, 2009 at 11:15 AM, Thibaut Barr?re > wrote: Hi Ivan, > Well you can require activesupport > Or you can look at Inflector.NET from Andrew Peters. He ported that > inflection stuff from activesupport to .NET The code I'm using is an extract from activesupport inflector. I didn't want to carry the whole dependency for the moment. thanks for the pointer (Inflector.NET), I'll have a look! -- Thibaut > > > On Wed, Mar 4, 2009 at 10:36 AM, Thibaut Barr?re > > wrote: >> >> Hi, >> >> looking if I can use the internals better: is there a built-in >> IronRuby way to convert "flow_layout_panel" to "FlowLayoutPanel" ? As >> it's used all over the place when calling methods, I thought that >> maybe I could use it as well. >> >> I'm currently using this which works well: >> >> module Classifier >> def classify(string) >> string.gsub(/(^|_)(.)/) { $2.upcase } # simplified version of >> Rails inflector >> end >> end >> >> If I can remove some code though, I'm happy. Is the code to achieve >> this accessible ? >> >> -- Thibaut >> _______________________________________________ >> 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 > > _______________________________________________ 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 Shri.Borde at microsoft.com Thu Mar 5 12:42:43 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 5 Mar 2009 09:42:43 -0800 Subject: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines In-Reply-To: References: <69f7d8470903030446u7755f8c8g334a0b4e61067528@mail.gmail.com> <69f7d8470903050532vc8a5ebbxdd7287614bb7269b@mail.gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D176608@NA-EXMSG-C104.redmond.corp.microsoft.com> It sounds like an easy fix, so we will try to get it fixed in the next few days. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Thursday, March 05, 2009 6:17 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines I recommend that you file this as a bug report against the DLR at http://www.codeplex.com/dlr -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jb Evain Sent: Thursday, March 05, 2009 5:32 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] [patch] Issue in DLR.CommandLine with new lines On 3/3/09, Jb Evain wrote: > I spent some time investigating why on Mono ir.exe (last git revision) > doesn't print the result of evaluations. > > The issue lies in the processing of new lines in > Microsoft.Scripting.Core.Hosting.Shell.CommandLine. > > The code is appending \n as terminating new lines, but checks for the > presence of Environment.NewLine inside the evaluated string. Obviously > it works only if Environment.NewLine is \r\n, and not \n. > > Attached is a suggested patch, addressing the issue. Microsoft folks, I know you can't take direct patches for the DLR, but do you plan to take this bug into consideration? -- Jb Evain _______________________________________________ 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 From Tomas.Matousek at microsoft.com Thu Mar 5 16:03:18 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 5 Mar 2009 13:03:18 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> Message-ID: I'm going to use single quotes for formatting CLR strings via inspect. "clr:" prefix is too long and it gets in your way when working mostly with CLR strings. >>> "Some string" => "Some string" >>> "Some string".to_clr_string => 'Some string' Sounds good? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, March 04, 2009 12:15 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour > I like the idea of showing System.String as clr:"xxx". +1 for something like that - this way the failed assertions or people using stdout for debug would not be fooled. -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Thu Mar 5 16:21:11 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 5 Mar 2009 13:21:11 -0800 Subject: [Ironruby-core] Code Review: MiscFixes.2 Message-ID: tfpt review "/shelveset:MiscFixes.2;REDMOND\tomat" Comment : (MiscFixes.2) Fixes bugs: - Protocols.IsEqual should compare references first before calling == method. - Exception#initialize should reset backtrace to nil. - Exception#exception should not be special-cased for argument == self (filed Ruby bug http://redmine.ruby-lang.org/issues/show/1248) - Fixnum#<< handled overflow incorrectly. - System::String inspect uses single quotes instead of double quotes to differentiate from Ruby string. - Fixes L conversion in Array#unpack. Adds RubyMetaObject and RubyMetaObject to handle functionality common for Ruby meta-objects and derives Proc.Meta and Method.Meta from RMO (more refactoring will follow). Implements a conversion from Proc/Method to an arbitrary delegate. Slightly refactors meta-object builder. More changes will follow. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: MiscFixes.2.diff Type: application/octet-stream Size: 67904 bytes Desc: MiscFixes.2.diff URL: From bacondarwin at googlemail.com Thu Mar 5 16:21:54 2009 From: bacondarwin at googlemail.com (Pete Bacon Darwin) Date: Thu, 5 Mar 2009 21:21:54 -0000 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> Message-ID: <006201c99dd8$695cdc80$3c169580$@com> How about back ticks? `Some string`? Since ruby can have single quote string literals it might not be that obvious that 'Some string' it is not a normal Ruby string. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Thursday,05 March 05, 2009 21:03 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour I'm going to use single quotes for formatting CLR strings via inspect. "clr:" prefix is too long and it gets in your way when working mostly with CLR strings. >>> "Some string" => "Some string" >>> "Some string".to_clr_string => 'Some string' Sounds good? Tomas From meinrad.recheis at gmail.com Thu Mar 5 16:45:51 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Thu, 5 Mar 2009 22:45:51 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> Message-ID: <43d756720903051345x38d1a719p8df7c5a6e4118844@mail.gmail.com> On Thu, Mar 5, 2009 at 10:03 PM, Tomas Matousek < Tomas.Matousek at microsoft.com> wrote: > I'm going to use single quotes for formatting CLR strings via inspect. > "clr:" prefix is too long and it gets in your way when working mostly with > CLR strings. > > >>> "Some string" > => "Some string" > >>> "Some string".to_clr_string > => 'Some string' > > Sounds good? The obvious advantage is that this representation is a valid ruby expression. -- henon -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion.edwards at gmail.com Thu Mar 5 16:59:09 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Fri, 6 Mar 2009 10:59:09 +1300 Subject: [Ironruby-core] Typeof ?? Message-ID: <7c1b59c00903051359x54b798b6g59f5c26f171c034f@mail.gmail.com> Having another go at some WCF stuff again. I have a C# method that accepts a type. I want to pass it an interface. interface IMyInterface; public void DoStuff( Type t ); DoStuff( typeof(IMyInterface) ); >From the ruby side, I'm importing both IMyInterface and DoStuff from C#, I just want to call the method from ruby. When I do this: do_stuff( IMyInterface ); I get "can't convert Module into System::Type" If I try pass in a class, I get the similar "can't convert Class into System::Type" So, is there a way to get a .NET Type from a ruby object, particularly an interface/module? (it is a real .NET type as it's loaded from a C# dll) Any help is greatly appreciated. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion.edwards at gmail.com Thu Mar 5 17:00:36 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Fri, 6 Mar 2009 11:00:36 +1300 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <006201c99dd8$695cdc80$3c169580$@com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> Message-ID: <7c1b59c00903051400p3d494e7m71e577772532073a@mail.gmail.com> I like backticks more than single quotes, but ideally you'd just have the same quotes and make them red or something for clr strings. On Fri, Mar 6, 2009 at 10:21 AM, Pete Bacon Darwin < bacondarwin at googlemail.com> wrote: > How about back ticks? `Some string`? > > Since ruby can have single quote string literals it might not be that > obvious that 'Some string' it is not a normal Ruby string. > > Pete > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek > Sent: Thursday,05 March 05, 2009 21:03 > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > I'm going to use single quotes for formatting CLR strings via inspect. > "clr:" prefix is too long and it gets in your way when working mostly with > CLR strings. > > >>> "Some string" > => "Some string" > >>> "Some string".to_clr_string > => 'Some string' > > Sounds good? > > Tomas > > _______________________________________________ > 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 jb at nurv.fr Thu Mar 5 17:17:57 2009 From: jb at nurv.fr (Jb Evain) Date: Thu, 5 Mar 2009 23:17:57 +0100 Subject: [Ironruby-core] possible problem on mono In-Reply-To: <69f7d8470903050531h4b5633dv75d497fd6feeca7c@mail.gmail.com> References: <2997578f006fea5a0aaa3c0c4d72746c@ruby-forum.com> <69f7d8470903040207y4eefb0ffxeb312aac97be23b@mail.gmail.com> <69f7d8470903040402g6e10c51ehfe6473fe2ae010d4@mail.gmail.com> <69f7d8470903040443t53b877a5o509cc923468dd5c6@mail.gmail.com> <69f7d8470903041203l598c7c4et670b233b50c6876a@mail.gmail.com> <61f3ffdccaba8ea6e02131bffcdd5648@ruby-forum.com> <69f7d8470903050531h4b5633dv75d497fd6feeca7c@mail.gmail.com> Message-ID: <69f7d8470903051417o7bd5338bt545292ade8eabe1a@mail.gmail.com> On 3/5/09, Jb Evain wrote: > On 3/5/09, Rafael Rosa wrote: > > And "iirb" isn't working: > > > I can reproduce that. It's another issue that is either in gmcs or in > the branch. I'll investigate. That's an issue with the branch, as IronRuby compiled from origin with `rake compile mono=1` doesn't exhibit this behavior. -- Jb Evain From meinrad.recheis at gmail.com Thu Mar 5 17:37:14 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Thu, 5 Mar 2009 23:37:14 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <006201c99dd8$695cdc80$3c169580$@com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031624r68f52e51ye121f7ca53dbda8b@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> Message-ID: <43d756720903051437g1d8762c2x2ba7fcb04727ce46@mail.gmail.com> Back ticks have a different meaning in ruby. They denote code to be executed on the system shell. -- henon On Thu, Mar 5, 2009 at 10:21 PM, Pete Bacon Darwin < bacondarwin at googlemail.com> wrote: > How about back ticks? `Some string`? > > Since ruby can have single quote string literals it might not be that > obvious that 'Some string' it is not a normal Ruby string. > > Pete > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek > Sent: Thursday,05 March 05, 2009 21:03 > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > I'm going to use single quotes for formatting CLR strings via inspect. > "clr:" prefix is too long and it gets in your way when working mostly with > CLR strings. > > >>> "Some string" > => "Some string" > >>> "Some string".to_clr_string > => 'Some string' > > Sounds good? > > Tomas > > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Thu Mar 5 17:41:17 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 5 Mar 2009 14:41:17 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <006201c99dd8$695cdc80$3c169580$@com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> Message-ID: Ruby uses back-ticks for shell strings, so it doesn't seem to be more obvious that the value is CLR string. I agree it's not blatant. It's a small hint that should help you to distinguish the types. CLR strings will have most of the methods Ruby string have (except for mutable ones) so the difference is not so important in most scenarios. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Pete Bacon Darwin Sent: Thursday, March 05, 2009 1:22 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour How about back ticks? `Some string`? Since ruby can have single quote string literals it might not be that obvious that 'Some string' it is not a normal Ruby string. Pete -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Thursday,05 March 05, 2009 21:03 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour I'm going to use single quotes for formatting CLR strings via inspect. "clr:" prefix is too long and it gets in your way when working mostly with CLR strings. >>> "Some string" => "Some string" >>> "Some string".to_clr_string => 'Some string' Sounds good? Tomas _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Thu Mar 5 17:59:21 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 5 Mar 2009 14:59:21 -0800 Subject: [Ironruby-core] Typeof ?? In-Reply-To: <7c1b59c00903051359x54b798b6g59f5c26f171c034f@mail.gmail.com> References: <7c1b59c00903051359x54b798b6g59f5c26f171c034f@mail.gmail.com> Message-ID: IMyInterface.to_clr_type should work. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Thursday, March 05, 2009 1:59 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Typeof ?? Having another go at some WCF stuff again. I have a C# method that accepts a type. I want to pass it an interface. interface IMyInterface; public void DoStuff( Type t ); DoStuff( typeof(IMyInterface) ); >From the ruby side, I'm importing both IMyInterface and DoStuff from C#, I just want to call the method from ruby. When I do this: do_stuff( IMyInterface ); I get "can't convert Module into System::Type" If I try pass in a class, I get the similar "can't convert Class into System::Type" So, is there a way to get a .NET Type from a ruby object, particularly an interface/module? (it is a real .NET type as it's loaded from a C# dll) Any help is greatly appreciated. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Mar 5 18:19:52 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 6 Mar 2009 00:19:52 +0100 Subject: [Ironruby-core] Typeof ?? In-Reply-To: <7c1b59c00903051359x54b798b6g59f5c26f171c034f@mail.gmail.com> References: <7c1b59c00903051359x54b798b6g59f5c26f171c034f@mail.gmail.com> Message-ID: IMyInterface.to_clr_type --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim On Thu, Mar 5, 2009 at 10:59 PM, Orion Edwards wrote: > Having another go at some WCF stuff again. > I have a C# method that accepts a type. I want to pass it an interface. > > interface IMyInterface; > public void DoStuff( Type t ); > > DoStuff( typeof(IMyInterface) ); > > From the ruby side, I'm importing both IMyInterface and DoStuff from C#, I > just want to call the method from ruby. > > When I do this: > > do_stuff( IMyInterface ); > > I get "can't convert Module into System::Type" > > If I try pass in a class, I get the similar "can't convert Class into > System::Type" > > So, is there a way to get a .NET Type from a ruby object, particularly an > interface/module? (it is a real .NET type as it's loaded from a C# dll) > > Any help is greatly appreciated. Thanks. > > > _______________________________________________ > 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 mail at tinco.nl Thu Mar 5 21:26:27 2009 From: mail at tinco.nl (Tinco Andringa) Date: Fri, 6 Mar 2009 03:26:27 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <7c1b59c00903051400p3d494e7m71e577772532073a@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> <7c1b59c00903051400p3d494e7m71e577772532073a@mail.gmail.com> Message-ID: <2fd035f00903051826o68cb735am4cf65d4e178ea516@mail.gmail.com> Wouldn't using different syntax especially for clr just amount to creating a new language instead of implementing Ruby on the dlr? (Not to mention a language that's not very intuitive) On Thu, Mar 5, 2009 at 23:00, Orion Edwards wrote: > I like backticks more than single quotes, but ideally you'd just have the > same quotes and make them red or something for clr strings. > > On Fri, Mar 6, 2009 at 10:21 AM, Pete Bacon Darwin > wrote: >> >> How about back ticks? `Some string`? >> >> Since ruby can have single quote string literals it might not be that >> obvious that 'Some string' it is not a normal Ruby string. >> >> Pete >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek >> Sent: Thursday,05 March 05, 2009 21:03 >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a >> slightly surprising behaviour >> >> I'm going to use single quotes for formatting CLR strings via inspect. >> "clr:" prefix is too long and it gets in your way when working mostly with >> CLR strings. >> >> >>> "Some string" >> => "Some string" >> >>> "Some string".to_clr_string >> => 'Some string' >> >> Sounds good? >> >> Tomas >> >> _______________________________________________ >> 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 > > From Tomas.Matousek at microsoft.com Fri Mar 6 01:04:44 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 5 Mar 2009 22:04:44 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <2fd035f00903051826o68cb735am4cf65d4e178ea516@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FE9B5@NA-EXMSG-C116.redmond.corp.microsoft.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> <7c1b59c00903051400p3d494e7m71e577772532073a@mail.gmail.com> <2fd035f00903051826o68cb735am4cf65d4e178ea516@mail.gmail.com> Message-ID: This is not about syntax. This is just what System::String#inspect prints out. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tinco Andringa Sent: Thursday, March 05, 2009 6:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour Wouldn't using different syntax especially for clr just amount to creating a new language instead of implementing Ruby on the dlr? (Not to mention a language that's not very intuitive) On Thu, Mar 5, 2009 at 23:00, Orion Edwards wrote: > I like backticks more than single quotes, but ideally you'd just have the > same quotes and make them red or something for clr strings. > > On Fri, Mar 6, 2009 at 10:21 AM, Pete Bacon Darwin > wrote: >> >> How about back ticks? `Some string`? >> >> Since ruby can have single quote string literals it might not be that >> obvious that 'Some string' it is not a normal Ruby string. >> >> Pete >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek >> Sent: Thursday,05 March 05, 2009 21:03 >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a >> slightly surprising behaviour >> >> I'm going to use single quotes for formatting CLR strings via inspect. >> "clr:" prefix is too long and it gets in your way when working mostly with >> CLR strings. >> >> >>> "Some string" >> => "Some string" >> >>> "Some string".to_clr_string >> => 'Some string' >> >> Sounds good? >> >> Tomas >> >> _______________________________________________ >> 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 > > _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From meinrad.recheis at gmail.com Fri Mar 6 02:46:49 2009 From: meinrad.recheis at gmail.com (Meinrad Recheis) Date: Fri, 6 Mar 2009 08:46:49 +0100 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> <7c1b59c00903051400p3d494e7m71e577772532073a@mail.gmail.com> <2fd035f00903051826o68cb735am4cf65d4e178ea516@mail.gmail.com> Message-ID: <43d756720903052346y4d620b8fr2a1e1481bbf9b8d6@mail.gmail.com> Well, it slightly relates to syntax ... because basic ruby types (string, numeric, array, hash, range, etc.) use to print valid ruby syntax on inspect. This is very useful for reinterpreting values stored as strings by the use of inspect. -- henon On Fri, Mar 6, 2009 at 7:04 AM, Tomas Matousek wrote: > This is not about syntax. This is just what System::String#inspect prints > out. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Tinco Andringa > Sent: Thursday, March 05, 2009 6:26 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > Wouldn't using different syntax especially for clr just amount to > creating a new language instead of implementing Ruby on the dlr? (Not > to mention a language that's not very intuitive) > > On Thu, Mar 5, 2009 at 23:00, Orion Edwards > wrote: > > I like backticks more than single quotes, but ideally you'd just have the > > same quotes and make them red or something for clr strings. > > > > On Fri, Mar 6, 2009 at 10:21 AM, Pete Bacon Darwin > > wrote: > >> > >> How about back ticks? `Some string`? > >> > >> Since ruby can have single quote string literals it might not be that > >> obvious that 'Some string' it is not a normal Ruby string. > >> > >> Pete > >> > >> -----Original Message----- > >> From: ironruby-core-bounces at rubyforge.org > >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas > Matousek > >> Sent: Thursday,05 March 05, 2009 21:03 > >> To: ironruby-core at rubyforge.org > >> Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > >> slightly surprising behaviour > >> > >> I'm going to use single quotes for formatting CLR strings via inspect. > >> "clr:" prefix is too long and it gets in your way when working mostly > with > >> CLR strings. > >> > >> >>> "Some string" > >> => "Some string" > >> >>> "Some string".to_clr_string > >> => 'Some string' > >> > >> Sounds good? > >> > >> Tomas > >> > >> _______________________________________________ > >> 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 > > > > > _______________________________________________ > 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 ivan at flanders.co.nz Fri Mar 6 04:20:37 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 6 Mar 2009 10:20:37 +0100 Subject: [Ironruby-core] please test ironrubymvc Message-ID: Hi I'm going to take this weekend to add some more error checking to IronRuby MVC and to create a readme with a quick sample. But as things stand I think you should have a usable version of IronRuby MVC currently in my github repo (http://github.com/casualjim/ironrubymvc). I would love to see some bugs being found :) So if you're interested to help, please get the source and try to build an ASP.NET MVC application with ironruby or help me out by writing specs. There is something pretty annoying though. When you're in a C# project (like a library or an MVC project) and you create a text file. VS will help you out by adding a BOM to the file. Now IronRuby doesn't know how to handle files like that. I realise you can do File - Save as - Save with encoding but that didn't have the desired effect either. So in the end i created my ruby files with Notepad++ and added those to the IronRuby mvc project. This wasn't a problem earlier because I had created my own reader and script runner, and I just refactored to use StreamContentProviders from Microsoft.Scripting. As soon as I use the DLR infrastructure it starts complaining about the BOM's. (Invalid character ? found). I'd like to thank Jimmy for his advice. Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Fri Mar 6 05:26:55 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Fri, 6 Mar 2009 11:26:55 +0100 Subject: [Ironruby-core] please test ironrubymvc In-Reply-To: References: Message-ID: <4a68b8cf0903060226w1600733dpcd5f15fe10a10607@mail.gmail.com> Hi Ivan, I'll try to take some time to have a look at this. One question though: did you already try to use this on Mono ? Is it possible at all ? -- Thibaut On Fri, Mar 6, 2009 at 10:20 AM, Ivan Porto Carrero wrote: > Hi > I'm going to take this weekend to add some more error checking to IronRuby > MVC and to create a readme with a quick sample. > But as things stand I think you should have a usable version of IronRuby MVC > currently in my github repo (http://github.com/casualjim/ironrubymvc). > I would love to see some bugs being found :) > So if ?you're interested to help, please get the source and try to build an > ASP.NET MVC application with ironruby or help me out by writing specs. > There is something pretty annoying though. When you're in a C# project (like > a library or an MVC project) and you create a text file. VS will help you > out by adding a BOM to the file. Now IronRuby doesn't know how to handle > files like that. > I realise you can do File - Save as - Save with encoding but that didn't > have the desired effect either. So in the end i created my ruby files with > Notepad++ and added those to the IronRuby mvc project. > This wasn't a problem earlier because I had created my own reader and script > runner, and I just refactored to use StreamContentProviders from > Microsoft.Scripting. As soon as I use the DLR infrastructure it starts > complaining about the BOM's. > (Invalid character ? found). > I'd like to thank Jimmy for his advice. > Thanks > Ivan > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From ivan at flanders.co.nz Fri Mar 6 06:24:29 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 6 Mar 2009 12:24:29 +0100 Subject: [Ironruby-core] please test ironrubymvc In-Reply-To: <4a68b8cf0903060226w1600733dpcd5f15fe10a10607@mail.gmail.com> References: <4a68b8cf0903060226w1600733dpcd5f15fe10a10607@mail.gmail.com> Message-ID: The ASP.NET MVC license explicitly forbids this. The mono guys have to reinvent that as well. On Fri, Mar 6, 2009 at 11:26 AM, Thibaut Barr?re wrote: > Hi Ivan, > > I'll try to take some time to have a look at this. > > One question though: did you already try to use this on Mono ? Is it > possible at all ? > > -- Thibaut > > > On Fri, Mar 6, 2009 at 10:20 AM, Ivan Porto Carrero > wrote: > > Hi > > I'm going to take this weekend to add some more error checking to > IronRuby > > MVC and to create a readme with a quick sample. > > But as things stand I think you should have a usable version of IronRuby > MVC > > currently in my github repo (http://github.com/casualjim/ironrubymvc). > > I would love to see some bugs being found :) > > So if you're interested to help, please get the source and try to build > an > > ASP.NET MVC application with ironruby or help me out by writing specs. > > There is something pretty annoying though. When you're in a C# project > (like > > a library or an MVC project) and you create a text file. VS will help you > > out by adding a BOM to the file. Now IronRuby doesn't know how to handle > > files like that. > > I realise you can do File - Save as - Save with encoding but that didn't > > have the desired effect either. So in the end i created my ruby files > with > > Notepad++ and added those to the IronRuby mvc project. > > This wasn't a problem earlier because I had created my own reader and > script > > runner, and I just refactored to use StreamContentProviders from > > Microsoft.Scripting. As soon as I use the DLR infrastructure it starts > > complaining about the BOM's. > > (Invalid character ? found). > > I'd like to thank Jimmy for his advice. > > Thanks > > Ivan > > _______________________________________________ > > 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 Tomas.Matousek at microsoft.com Fri Mar 6 12:45:17 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 6 Mar 2009 09:45:17 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <43d756720903052346y4d620b8fr2a1e1481bbf9b8d6@mail.gmail.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> <7c1b59c00903051400p3d494e7m71e577772532073a@mail.gmail.com> <2fd035f00903051826o68cb735am4cf65d4e178ea516@mail.gmail.com> <43d756720903052346y4d620b8fr2a1e1481bbf9b8d6@mail.gmail.com> Message-ID: Syste::String is not a basic Ruby type. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis Sent: Thursday, March 05, 2009 11:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour Well, it slightly relates to syntax ... because basic ruby types (string, numeric, array, hash, range, etc.) use to print valid ruby syntax on inspect. This is very useful for reinterpreting values stored as strings by the use of inspect. -- henon On Fri, Mar 6, 2009 at 7:04 AM, Tomas Matousek > wrote: This is not about syntax. This is just what System::String#inspect prints out. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tinco Andringa Sent: Thursday, March 05, 2009 6:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour Wouldn't using different syntax especially for clr just amount to creating a new language instead of implementing Ruby on the dlr? (Not to mention a language that's not very intuitive) On Thu, Mar 5, 2009 at 23:00, Orion Edwards > wrote: > I like backticks more than single quotes, but ideally you'd just have the > same quotes and make them red or something for clr strings. > > On Fri, Mar 6, 2009 at 10:21 AM, Pete Bacon Darwin > > wrote: >> >> How about back ticks? `Some string`? >> >> Since ruby can have single quote string literals it might not be that >> obvious that 'Some string' it is not a normal Ruby string. >> >> Pete >> >> -----Original Message----- >> From: ironruby-core-bounces at rubyforge.org >> [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek >> Sent: Thursday,05 March 05, 2009 21:03 >> To: ironruby-core at rubyforge.org >> Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a >> slightly surprising behaviour >> >> I'm going to use single quotes for formatting CLR strings via inspect. >> "clr:" prefix is too long and it gets in your way when working mostly with >> CLR strings. >> >> >>> "Some string" >> => "Some string" >> >>> "Some string".to_clr_string >> => 'Some string' >> >> Sounds good? >> >> Tomas >> >> _______________________________________________ >> 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 > > _______________________________________________ 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 Jimmy.Schementi at microsoft.com Fri Mar 6 13:36:17 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 6 Mar 2009 10:36:17 -0800 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <006201c99dd8$695cdc80$3c169580$@com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB7C692F@NA-EXMSG-C116.redmond.corp.microsoft.com> >> "rm -Rf *".to_clr_string => `rm -Rf *` Copying and pasting that result would lead to bad things =P ... so I say no back ticks. Let's stick with single quotes ... it's not a difficult thing to change in the future. ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Pete Bacon Darwin > Sent: Thursday, March 05, 2009 1:22 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > How about back ticks? `Some string`? > > Since ruby can have single quote string literals it might not be that > obvious that 'Some string' it is not a normal Ruby string. > > Pete > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas > Matousek > Sent: Thursday,05 March 05, 2009 21:03 > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > I'm going to use single quotes for formatting CLR strings via inspect. > "clr:" prefix is too long and it gets in your way when working mostly > with > CLR strings. > > >>> "Some string" > => "Some string" > >>> "Some string".to_clr_string > => 'Some string' > > Sounds good? > > Tomas > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From bacondarwin at googlemail.com Fri Mar 6 14:29:04 2009 From: bacondarwin at googlemail.com (Pete Bacon Darwin) Date: Fri, 6 Mar 2009 19:29:04 -0000 Subject: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB7C692F@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <4a68b8cf0903031246r15c0f724meaf163643962aec3@mail.gmail.com> <43d756720903031411r13ec00aai44783e5599fe51b7@mail.gmail.com> <43d756720903031419w555d906cg7e3a047d5aed4636@mail.gmail.com> <43d756720903041118yf3ac366g54d39141a0eb6cb4@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D1761A1@NA-EXMSG-C104.redmond.corp.microsoft.com> <4a68b8cf0903041214k327e6924v721d0e8fc2096523@mail.gmail.com> <006201c99dd8$695cdc80$3c169580$@com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB7C692F@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <014201c99e91$d06227f0$712677d0$@com> Fair enough! -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Friday,06 March 06, 2009 18:36 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a slightly surprising behaviour >> "rm -Rf *".to_clr_string => `rm -Rf *` Copying and pasting that result would lead to bad things =P ... so I say no back ticks. Let's stick with single quotes ... it's not a difficult thing to change in the future. ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Pete Bacon Darwin > Sent: Thursday, March 05, 2009 1:22 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > How about back ticks? `Some string`? > > Since ruby can have single quote string literals it might not be that > obvious that 'Some string' it is not a normal Ruby string. > > Pete > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas > Matousek > Sent: Thursday,05 March 05, 2009 21:03 > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Comparing CLR strings and Ruby strings - a > slightly surprising behaviour > > I'm going to use single quotes for formatting CLR strings via inspect. > "clr:" prefix is too long and it gets in your way when working mostly > with > CLR strings. > > >>> "Some string" > => "Some string" > >>> "Some string".to_clr_string > => 'Some string' > > Sounds good? > > Tomas > > _______________________________________________ > 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 From Jimmy.Schementi at microsoft.com Fri Mar 6 14:59:59 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 6 Mar 2009 11:59:59 -0800 Subject: [Ironruby-core] please test ironrubymvc In-Reply-To: References: Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB7C69F3@NA-EXMSG-C116.redmond.corp.microsoft.com> Ivan, Thanks for doing this, it's really awesome that you've taken initiative in this project! There's a way to put VS in ASCII mode ... but I don't remember how. I felt that pain when getting the initial version of ironrubymvc set up. I'm working on a silverline port to ASP.NET MVC, so I'll be ramping up my work on this as well. ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, March 06, 2009 1:21 AM To: ironruby-core Subject: [Ironruby-core] please test ironrubymvc Hi I'm going to take this weekend to add some more error checking to IronRuby MVC and to create a readme with a quick sample. But as things stand I think you should have a usable version of IronRuby MVC currently in my github repo (http://github.com/casualjim/ironrubymvc). I would love to see some bugs being found :) So if you're interested to help, please get the source and try to build an ASP.NET MVC application with ironruby or help me out by writing specs. There is something pretty annoying though. When you're in a C# project (like a library or an MVC project) and you create a text file. VS will help you out by adding a BOM to the file. Now IronRuby doesn't know how to handle files like that. I realise you can do File - Save as - Save with encoding but that didn't have the desired effect either. So in the end i created my ruby files with Notepad++ and added those to the IronRuby mvc project. This wasn't a problem earlier because I had created my own reader and script runner, and I just refactored to use StreamContentProviders from Microsoft.Scripting. As soon as I use the DLR infrastructure it starts complaining about the BOM's. (Invalid character ? found). I'd like to thank Jimmy for his advice. Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Fri Mar 6 15:44:11 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Fri, 6 Mar 2009 21:44:11 +0100 Subject: [Ironruby-core] please test ironrubymvc In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB7C69F3@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB7C69F3@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: I figure I'm already passing a streamcontentprovider. I can just pass one that reads the file and is a little bit more forgiving :) I'd like to refactor now to a DLR implementation so that the guys from IronPython have an easier time plugging in their language. I looked at improving the error handling but atm there is not that much information to be gotten from the exceptions, so I took it out again. On Fri, Mar 6, 2009 at 8:59 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > Ivan, > > > > Thanks for doing this, it's really awesome that you've taken initiative in > this project! > > > > There's a way to put VS in ASCII mode ... but I don't remember how. I felt > that pain when getting the initial version of ironrubymvc set up. > > > > I'm working on a silverline port to ASP.NET MVC, so I'll be ramping up my > work on this as well. > > > > ~js > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Friday, March 06, 2009 1:21 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] please test ironrubymvc > > > > Hi > > > > I'm going to take this weekend to add some more error checking to IronRuby > MVC and to create a readme with a quick sample. > > But as things stand I think you should have a usable version of IronRuby > MVC currently in my github repo (http://github.com/casualjim/ironrubymvc > ). > > > > I would love to see some bugs being found :) > > > > So if you're interested to help, please get the source and try to build an > ASP.NET MVC application with ironruby or help me out by writing specs. > > > > There is something pretty annoying though. When you're in a C# project > (like a library or an MVC project) and you create a text file. VS will help > you out by adding a BOM to the file. Now IronRuby doesn't know how to handle > files like that. > > I realise you can do File - Save as - Save with encoding but that didn't > have the desired effect either. So in the end i created my ruby files with > Notepad++ and added those to the IronRuby mvc project. > > > > This wasn't a problem earlier because I had created my own reader and > script runner, and I just refactored to use StreamContentProviders from > Microsoft.Scripting. As soon as I use the DLR infrastructure it starts > complaining about the BOM's. > > (Invalid character ? found). > > > > I'd like to thank Jimmy for his advice. > > > > Thanks > > Ivan > > _______________________________________________ > 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 Jimmy.Schementi at microsoft.com Fri Mar 6 16:34:14 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 6 Mar 2009 13:34:14 -0800 Subject: [Ironruby-core] please test ironrubymvc In-Reply-To: References: <4a68b8cf0903060226w1600733dpcd5f15fe10a10607@mail.gmail.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB7C6AB6@NA-EXMSG-C116.redmond.corp.microsoft.com> Yeah, that?s pretty unfortunate. However, Mono needs to also reimplement System.Web.Routing, which is in .NET 3.5, and System.Web.Mvc depends on. So even if MVC was Ms-Pl, they?d still have work to do. Let?s hope (at-least) MVC changes their license. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Friday, March 06, 2009 3:24 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] please test ironrubymvc The ASP.NET MVC license explicitly forbids this. The mono guys have to reinvent that as well. On Fri, Mar 6, 2009 at 11:26 AM, Thibaut Barr?re > wrote: Hi Ivan, I'll try to take some time to have a look at this. One question though: did you already try to use this on Mono ? Is it possible at all ? -- Thibaut On Fri, Mar 6, 2009 at 10:20 AM, Ivan Porto Carrero > wrote: > Hi > I'm going to take this weekend to add some more error checking to IronRuby > MVC and to create a readme with a quick sample. > But as things stand I think you should have a usable version of IronRuby MVC > currently in my github repo (http://github.com/casualjim/ironrubymvc). > I would love to see some bugs being found :) > So if you're interested to help, please get the source and try to build an > ASP.NET MVC application with ironruby or help me out by writing specs. > There is something pretty annoying though. When you're in a C# project (like > a library or an MVC project) and you create a text file. VS will help you > out by adding a BOM to the file. Now IronRuby doesn't know how to handle > files like that. > I realise you can do File - Save as - Save with encoding but that didn't > have the desired effect either. So in the end i created my ruby files with > Notepad++ and added those to the IronRuby mvc project. > This wasn't a problem earlier because I had created my own reader and script > runner, and I just refactored to use StreamContentProviders from > Microsoft.Scripting. As soon as I use the DLR infrastructure it starts > complaining about the BOM's. > (Invalid character ? found). > I'd like to thank Jimmy for his advice. > Thanks > Ivan > _______________________________________________ > 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 jdeville at microsoft.com Fri Mar 6 18:17:48 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 6 Mar 2009 15:17:48 -0800 Subject: [Ironruby-core] Code Review: interop3 Message-ID: tfpt review "/shelveset:interop3;REDMOND\jdeville" Comment : Rearrange .NET tests according to the new test structure Add the csc method to inline C# fixtures into the Ruby code +++++++++++++++++++++++++++++++++++ Initial pass at the new .NET interop test structure. I'd like you guys to look at the organization vs the structure of the tests, and the use of csc in Ruby. * For structure, I am using /concept/action/modifier * For csc, I am going to make it pass the binding and use the binding to encode comments in the C# source file. I can split it into multiple assemblies based on this at a later date. * I am going to do the work to get this running in SNAP as well. -------------- next part -------------- A non-text attachment was scrubbed... Name: interop3.diff Type: application/octet-stream Size: 68361 bytes Desc: interop3.diff URL: From jdeville at microsoft.com Fri Mar 6 21:00:42 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 6 Mar 2009 18:00:42 -0800 Subject: [Ironruby-core] Git push Message-ID: Sorry about missing yesterday. I was out sick. JD -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Mar 7 02:12:46 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 6 Mar 2009 23:12:46 -0800 Subject: [Ironruby-core] Code Review: interop3 Message-ID: tfpt review "/shelveset:interop3;REDMOND\jdeville" Comment : * Rearrange .NET tests according to the new test structure * Add the csc method to inline C# fixtures into the Ruby code ** Should csc.bat be in a path'd scripts directory? Or is it okay having to specifiy a path to it? * Modify both dev.bats to add Merlin\External\Languages\IronRuby\mspec\mspec\bin to %PATH% * Modify IronRuby's dev.bat to setup ~/.mspecrc if ~/.mspecrc doesn't exist. ** Should this modification be in both? If so, why not have one Dev.bat that conditionally loads internal alias's? * Make the default.mspec, which becomes ~/.mspecrc, simply load our default configuration file from Merlin\External\Languages\IronRuby\mspec\default.mspec -------------- next part -------------- A non-text attachment was scrubbed... Name: interop3.diff Type: application/octet-stream Size: 75354 bytes Desc: interop3.diff URL: From thibaut.barrere at gmail.com Sat Mar 7 14:59:39 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sat, 7 Mar 2009 20:59:39 +0100 Subject: [Ironruby-core] Is there a built-in way to convert from snake_case to CamelCase ? In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FF0CC@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <4a68b8cf0903040136x5c6cb6c5rb2a62b0cc7f32d8b@mail.gmail.com> <4a68b8cf0903040215y5f064d25se435ebb5f82fb253@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284BEB6FF0CC@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903071159g43157ad8xcd664c453c078110@mail.gmail.com> Hi Jimmy, > IronRuby has RubyUtils.MangleName/TryUnmangleName in > /Merlin/Main/Languages/Ruby/Ruby/Runtime/RubyUtils.cs. thanks for the hint. -- Thibaut > > > > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero > Sent: Wednesday, March 04, 2009 2:57 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Is there a built-in way to convert from > snake_case to CamelCase ? > > > > I've added the inflector stuff to IronRuby MVC too. The only thing I added > to the library was to make it all extension methods. > > In IronNails I also pulled in the files from active support because I didn't > want to take the dependency atm. > > On Wed, Mar 4, 2009 at 11:15 AM, Thibaut Barr?re > wrote: > > Hi Ivan, > >> Well you can require activesupport >> Or you can look at Inflector.NET from Andrew Peters. He ported that >> inflection stuff from activesupport to .NET > > The code I'm using is an extract from activesupport inflector. I > didn't want to carry the whole dependency for the moment. > > thanks for the pointer (Inflector.NET), I'll have a look! > > -- Thibaut > >> >> >> On Wed, Mar 4, 2009 at 10:36 AM, Thibaut Barr?re >> >> wrote: >>> >>> Hi, >>> >>> looking if I can use the internals better: is there a built-in >>> IronRuby way to convert "flow_layout_panel" to "FlowLayoutPanel" ? As >>> it's used all over the place when calling methods, I thought that >>> maybe I could use it as well. >>> >>> I'm currently using this which works well: >>> >>> module Classifier >>> ?def classify(string) >>> ? ?string.gsub(/(^|_)(.)/) { $2.upcase } # simplified version of >>> Rails inflector >>> ?end >>> end >>> >>> If I can remove some code though, I'm happy. Is the code to achieve >>> this accessible ? >>> >>> -- Thibaut >>> _______________________________________________ >>> 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 >> >> > _______________________________________________ > 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 > > From grant.archibald at gmail.com Sun Mar 8 03:44:33 2009 From: grant.archibald at gmail.com (Grant Archibald) Date: Sun, 8 Mar 2009 20:44:33 +1300 Subject: [Ironruby-core] Maruku within IronRuby using rexml/document Message-ID: Hi, I look to make use of Maruku within IronRuby and it has a dependency rexml/document. Has anyone successfully used rexml/document under IronRuby? Thanks - Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.dobrev at gmail.com Sun Mar 8 17:52:46 2009 From: stefan.dobrev at gmail.com (Stefan Dobrev) Date: Sun, 8 Mar 2009 23:52:46 +0200 Subject: [Ironruby-core] Support for generic types of interfaces Message-ID: <928de89c0903081452q120d0ad1jdbf13b0de01464d1@mail.gmail.com> Hi I have found out that there is a problem if you tried to create a generic type of some interface. Here is an example: >> require 'System' >> include System >> include System::Collections::Generic >> List.of(ICloneable).new Looking at the stack trace and debugging with VS I was able to implement a quick patch that is attached. Regards, Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Fixing-support-for-generic-types-of-interfaces.patch Type: application/octet-stream Size: 1029 bytes Desc: not available URL: From Tomas.Matousek at microsoft.com Mon Mar 9 02:17:47 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 8 Mar 2009 23:17:47 -0700 Subject: [Ironruby-core] Support for generic types of interfaces In-Reply-To: <928de89c0903081452q120d0ad1jdbf13b0de01464d1@mail.gmail.com> References: <928de89c0903081452q120d0ad1jdbf13b0de01464d1@mail.gmail.com> Message-ID: RubyModule should rather implement GetUnderlyingSystemType for interfaces. I have the change almost ready (along with other fixes). Thanks for the patch anyways! Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan Dobrev Sent: Sunday, March 08, 2009 2:53 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Support for generic types of interfaces Hi I have found out that there is a problem if you tried to create a generic type of some interface. Here is an example: >> require 'System' >> include System >> include System::Collections::Generic >> List.of(ICloneable).new Looking at the stack trace and debugging with VS I was able to implement a quick patch that is attached. Regards, Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Mon Mar 9 12:57:03 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 9 Mar 2009 09:57:03 -0700 Subject: [Ironruby-core] Code review: Implements Zlib::GzipWriter using System.IO.Compression.GZipStream. Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D297F57@NA-EXMSG-C104.redmond.corp.microsoft.com> http://github.com/shri/ironruby/commit/7ca740304457ce90320e80379cc49d3551fc6147 Implements Zlib::GzipWriter using System.IO.Compression.GZipStream. - GzipWriter.new ignores the level and strategy arguments for now. - The arguments are not marked with DefaultProtocol as it does not look like you can pass an arbitrary object responding to to_s - Most of the work was for the Ruby library API. We can change the details of the compression later if we want to. Removed Zlib::GZipReader.Create overloads which took RubyIO since they would not handle the case of File being monkey-patched. This also allowed some code to be factored out into the base GZipFile class. Implemented Zlib::GzipFile.wrap and added tests for it Changed App.config to only include valid paths to the Ruby libs that are included in GIT Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.dobrev at gmail.com Mon Mar 9 19:57:18 2009 From: stefan.dobrev at gmail.com (Stefan Dobrev) Date: Tue, 10 Mar 2009 01:57:18 +0200 Subject: [Ironruby-core] Problem with generic method resolution Message-ID: <928de89c0903091657n1d6f836mfadb0d386e25b31f@mail.gmail.com> Hi, I have found out the following problem: >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' => true >>> include System => Object >>> include System::Linq::Expressions >>> Expression.Call :0: wrong number of arguments (2 for 4) (ArgumentError) >>> Expression.Parameter :0: undefined method `Parameter' for TypeGroup of Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError) Obviously the Call method was recognized but the Parameter one not. Should I file a bug or this is known and will be fixed? Regards, Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Mon Mar 9 20:07:39 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 9 Mar 2009 17:07:39 -0700 Subject: [Ironruby-core] Code Review: interop3 In-Reply-To: References: Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D298369@NA-EXMSG-C104.redmond.corp.microsoft.com> Looks good. About organization, I gave F2F feedback. Small comments about the nitty gritty... In assembly/access/dependencies1, can A.dll and B.dll also be generated using some overloaded version of csc which takes an assembly name? Not a big deal for now since there are only two assemblies checked in, but if you are going to need more, you might as well use the csc infrastructure which you are building up anyway. There is Tests\interop\assembly.cs as well as Tests\interop\assembly folder. Would be nice if the former was called Fixtures.cs or something like that to disambiguate the two. Could you add a comment to the file saying it is generated by a script, or name it as foo.Generated.cs so it obvious that you should not edit it by hand? Thanks, Shri -----Original Message----- From: Jim Deville Sent: Friday, March 06, 2009 11:13 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: interop3 tfpt review "/shelveset:interop3;REDMOND\jdeville" Comment : * Rearrange .NET tests according to the new test structure * Add the csc method to inline C# fixtures into the Ruby code ** Should csc.bat be in a path'd scripts directory? Or is it okay having to specifiy a path to it? * Modify both dev.bats to add Merlin\External\Languages\IronRuby\mspec\mspec\bin to %PATH% * Modify IronRuby's dev.bat to setup ~/.mspecrc if ~/.mspecrc doesn't exist. ** Should this modification be in both? If so, why not have one Dev.bat that conditionally loads internal alias's? * Make the default.mspec, which becomes ~/.mspecrc, simply load our default configuration file from Merlin\External\Languages\IronRuby\mspec\default.mspec From Shri.Borde at microsoft.com Tue Mar 10 12:45:16 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 10 Mar 2009 09:45:16 -0700 Subject: [Ironruby-core] Code Review: scripts Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D2985D4@NA-EXMSG-C104.redmond.corp.microsoft.com> tfpt review "/shelveset:scripts;REDMOND\sborde" Comment : Code change: Small fix in Shell\CommandLine.cs to deal with newlines consistently (user-reported issue). Scripts: Moves RunRSpec.cmd and irtests.bat from Merlin\Main\Scripts to Merlin\Languages\Ruby\Scripts so that they are available in GIT. Also changed them so that they do not rely on Merlin\Main\test\scripts\ir.cmd which does not exist in GIT and is needed only when Snap runs various modes like with/without interpretation, etc. -------------- next part -------------- A non-text attachment was scrubbed... Name: scripts.diff Type: application/octet-stream Size: 6648 bytes Desc: scripts.diff URL: From jdeville at microsoft.com Tue Mar 10 19:15:27 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 10 Mar 2009 16:15:27 -0700 Subject: [Ironruby-core] Code Review: scripts In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D2985D4@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E0D2985D4@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Ruby Dev.bat: Can the RUBY19_EXE check for its existence first (so I can override it, for example). I'd also like to not differentiate between GIT and non-GIT, with my comment below, we don't need the GIT env. Variable. Common.rb: I would say get rid of the nested if on line 42. If ROWAN_BIN, use .cmd, otherwise, use.exe. Otherwise looks good. JD > -----Original Message----- > From: Shri Borde > Sent: Tuesday, March 10, 2009 9:45 AM > To: IronRuby External Code Reviewers; Rowan Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: Code Review: scripts > > tfpt review "/shelveset:scripts;REDMOND\sborde" > > Comment : > Code change: > Small fix in Shell\CommandLine.cs to deal with newlines consistently > (user-reported issue). > > Scripts: > Moves RunRSpec.cmd and irtests.bat from Merlin\Main\Scripts to > Merlin\Languages\Ruby\Scripts so that they are available in GIT. > Also changed them so that they do not rely on > Merlin\Main\test\scripts\ir.cmd which does not exist in GIT and is > needed only when Snap runs various modes like with/without > interpretation, etc. > From jdeville at microsoft.com Wed Mar 11 16:50:00 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 11 Mar 2009 13:50:00 -0700 Subject: [Ironruby-core] Code Review: interop3 In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D298369@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E0D298369@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: FYI review: Modified csc.rb to generate arbitrary assemblies and renamed the main generated code to fixtures.generated.cs. JD tfpt review "/shelveset:interop4;REDMOND\jdeville" Comment : * Rearrange .NET tests according to the new test structure * Add the csc and assembly methods to inline C# fixtures into the Ruby code * Modify both dev.bats to add Merlin\External\Languages\IronRuby\mspec\mspec\bin to %PATH% * Modify IronRuby's dev.bat to setup ~/.mspecrc if ~/.mspecrc doesn't exist. ** Should this modification be in both? If so, why not have one Dev.bat that conditionally loads internal alias's? * Make the default.mspec, which becomes ~/.mspecrc, simply load our default configuration file from Merlin\External\Languages\IronRuby\mspec\default.mspec > -----Original Message----- > From: Shri Borde > Sent: Monday, March 09, 2009 5:08 PM > To: Jim Deville; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: Code Review: interop3 > > Looks good. About organization, I gave F2F feedback. Small comments > about the nitty gritty... > > In assembly/access/dependencies1, can A.dll and B.dll also be generated > using some overloaded version of csc which takes an assembly name? Not > a big deal for now since there are only two assemblies checked in, but > if you are going to need more, you might as well use the csc > infrastructure which you are building up anyway. > > There is Tests\interop\assembly.cs as well as Tests\interop\assembly > folder. Would be nice if the former was called Fixtures.cs or something > like that to disambiguate the two. > > Could you add a comment to the file saying it is generated by a script, > or name it as foo.Generated.cs so it obvious that you should not edit > it by hand? > > Thanks, > Shri > > > -----Original Message----- > From: Jim Deville > Sent: Friday, March 06, 2009 11:13 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: Code Review: interop3 > > tfpt review "/shelveset:interop3;REDMOND\jdeville" > Comment : > * Rearrange .NET tests according to the new test structure > * Add the csc method to inline C# fixtures into the Ruby code > ** Should csc.bat be in a path'd scripts directory? Or is it okay > having to specifiy a path to it? > * Modify both dev.bats to add > Merlin\External\Languages\IronRuby\mspec\mspec\bin to %PATH% > * Modify IronRuby's dev.bat to setup ~/.mspecrc if ~/.mspecrc doesn't > exist. > ** Should this modification be in both? If so, why not have one > Dev.bat that conditionally loads internal alias's? > * Make the default.mspec, which becomes ~/.mspecrc, simply load our > default configuration file from > Merlin\External\Languages\IronRuby\mspec\default.mspec > > -------------- next part -------------- A non-text attachment was scrubbed... Name: interop4.diff Type: application/octet-stream Size: 73778 bytes Desc: interop4.diff URL: From Shri.Borde at microsoft.com Wed Mar 11 17:14:06 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 11 Mar 2009 14:14:06 -0700 Subject: [Ironruby-core] Code Review: interop3 In-Reply-To: References: <710DF26F214D2B4BB94287123FFE980A2E0D298369@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D35EE89@NA-EXMSG-C104.redmond.corp.microsoft.com> Yup, you should update both copies of dev.bat since we do want mspec easily (and similarly) usable with TFS as well. You could combine the two copies if you want. You will have to conditionalize other things like setting of RUBY18_EXE etc as well. You can diff the two copies to see everything that would need to be conditionalized. When I cloned it, it was simpler to clone it since it's a small file anyway, and my thinking was that I can go back and refactor it if needed once things settles down. -----Original Message----- From: Jim Deville Sent: Wednesday, March 11, 2009 1:50 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: interop3 FYI review: Modified csc.rb to generate arbitrary assemblies and renamed the main generated code to fixtures.generated.cs. JD tfpt review "/shelveset:interop4;REDMOND\jdeville" Comment : * Rearrange .NET tests according to the new test structure * Add the csc and assembly methods to inline C# fixtures into the Ruby code * Modify both dev.bats to add Merlin\External\Languages\IronRuby\mspec\mspec\bin to %PATH% * Modify IronRuby's dev.bat to setup ~/.mspecrc if ~/.mspecrc doesn't exist. ** Should this modification be in both? If so, why not have one Dev.bat that conditionally loads internal alias's? * Make the default.mspec, which becomes ~/.mspecrc, simply load our default configuration file from Merlin\External\Languages\IronRuby\mspec\default.mspec > -----Original Message----- > From: Shri Borde > Sent: Monday, March 09, 2009 5:08 PM > To: Jim Deville; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: Code Review: interop3 > > Looks good. About organization, I gave F2F feedback. Small comments > about the nitty gritty... > > In assembly/access/dependencies1, can A.dll and B.dll also be generated > using some overloaded version of csc which takes an assembly name? Not > a big deal for now since there are only two assemblies checked in, but > if you are going to need more, you might as well use the csc > infrastructure which you are building up anyway. > > There is Tests\interop\assembly.cs as well as Tests\interop\assembly > folder. Would be nice if the former was called Fixtures.cs or something > like that to disambiguate the two. > > Could you add a comment to the file saying it is generated by a script, > or name it as foo.Generated.cs so it obvious that you should not edit > it by hand? > > Thanks, > Shri > > > -----Original Message----- > From: Jim Deville > Sent: Friday, March 06, 2009 11:13 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: Code Review: interop3 > > tfpt review "/shelveset:interop3;REDMOND\jdeville" > Comment : > * Rearrange .NET tests according to the new test structure > * Add the csc method to inline C# fixtures into the Ruby code > ** Should csc.bat be in a path'd scripts directory? Or is it okay > having to specifiy a path to it? > * Modify both dev.bats to add > Merlin\External\Languages\IronRuby\mspec\mspec\bin to %PATH% > * Modify IronRuby's dev.bat to setup ~/.mspecrc if ~/.mspecrc doesn't > exist. > ** Should this modification be in both? If so, why not have one > Dev.bat that conditionally loads internal alias's? > * Make the default.mspec, which becomes ~/.mspecrc, simply load our > default configuration file from > Merlin\External\Languages\IronRuby\mspec\default.mspec > > From orion.edwards at gmail.com Wed Mar 11 19:43:58 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Thu, 12 Mar 2009 12:43:58 +1300 Subject: [Ironruby-core] More WCF fail Message-ID: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Had time to get back to the WCF stuff: Here's the latest class MyService include IWcfContract def ping(x) x end end uri = Uri.new "http://localhost:8700/MyService" binding = WSHttpBinding.new host = ServiceHost.new MyService host.add_service_endpoint(IWcfContract.to_clr_type, binding, uri); => Now raises the following error (new and different from last time, exciting!): *The contract name 'IWcfContract' could not be found in the list of contracts implemented by the service 'IronRuby.Builtins.RubyClass'.* * * I also tried creating an abstract C# class as follows: public abstract class WcfContractClass : IWcfContract { public abstract string Ping(string input); } and then having the ruby class do this: class MyService < WcfContractClass however the same error occurs. Still running the dlr nightly v12211 build... Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Mar 11 21:17:37 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 12 Mar 2009 02:17:37 +0100 Subject: [Ironruby-core] More WCF fail In-Reply-To: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Message-ID: Let me know if you''re still having problems on saturday...because WCF cannot be _that_ hard Alternatively contact me off list.. to do some remote "pair" programming... this email address is my gtalk account or ask Hayley she's got my contact details as does almost anybody else that is involved in the NZ .NET user groups. For everybody else on the list.. I respond best to IM or twitter (casualjim) ;) On Thu, Mar 12, 2009 at 12:43 AM, Orion Edwards wrote: > Had time to get back to the WCF stuff: Here's the latest > class MyService > include IWcfContract > > def ping(x) > x > end > end > > uri = Uri.new "http://localhost:8700/MyService" > binding = WSHttpBinding.new > host = ServiceHost.new MyService > host.add_service_endpoint(IWcfContract.to_clr_type, binding, uri); > > > => Now raises the following error (new and different from last time, > exciting!): > > *The contract name 'IWcfContract' could not be found in the list of > contracts implemented by the service 'IronRuby.Builtins.RubyClass'.* > * > * > I also tried creating an abstract C# class as follows: > > public abstract class WcfContractClass : IWcfContract > { > public abstract string Ping(string input); > } > > and then having the ruby class do this: > > class MyService < WcfContractClass > > however the same error occurs. Still running the dlr nightly v12211 > build... > > Any ideas? > > _______________________________________________ > 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 orion.edwards at gmail.com Wed Mar 11 22:37:04 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Thu, 12 Mar 2009 15:37:04 +1300 Subject: [Ironruby-core] More WCF fail In-Reply-To: References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Message-ID: <7c1b59c00903111937h2001d558v65879fff9db4e2e3@mail.gmail.com> > Let me know if you''re still having problems on saturday...because WCF > cannot be _that_ hard WCF isn't hard... in C#. Thus far IronRuby's lack of support for attributes seems to be killing it though. > Alternatively contact me off list.. to do some remote "pair" > programming... > this email address is my gtalk account or ask Hayley she's got my contact > details as does almost anybody else that is involved in the NZ .NET user > groups. > I'll have a go in the weekend if I get time and let you know. Cheers. For everybody else on the list.. I respond best to IM or twitter > (casualjim) ;) > Consider yourself followed! -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Thu Mar 12 13:15:48 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 12 Mar 2009 10:15:48 -0700 Subject: [Ironruby-core] More WCF fail In-Reply-To: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Message-ID: There's no CLR Type object that can fully represent your Ruby class, so you can't meaningfully pass the type to any API that wants to be able to create an object from it. This is still an area of active investigation and thought for us. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Wednesday, March 11, 2009 4:44 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] More WCF fail Had time to get back to the WCF stuff: Here's the latest class MyService include IWcfContract def ping(x) x end end uri = Uri.new "http://localhost:8700/MyService" binding = WSHttpBinding.new host = ServiceHost.new MyService host.add_service_endpoint(IWcfContract.to_clr_type, binding, uri); => Now raises the following error (new and different from last time, exciting!): The contract name 'IWcfContract' could not be found in the list of contracts implemented by the service 'IronRuby.Builtins.RubyClass'. I also tried creating an abstract C# class as follows: public abstract class WcfContractClass : IWcfContract { public abstract string Ping(string input); } and then having the ruby class do this: class MyService < WcfContractClass however the same error occurs. Still running the dlr nightly v12211 build... Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Mar 12 14:54:21 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 12 Mar 2009 19:54:21 +0100 Subject: [Ironruby-core] More WCF fail In-Reply-To: References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Message-ID: But in the case of WCF this doesn't have to be the case right? You can create a different behavior where you tell WCF how to create instances and you can create a service host that also knows how to handle dynamic objects. After all if you can get an IoC container to provide the instances, surely you can hook IronRuby in there too. Wouldn't creating a servicehostfactory, servicehost and behavior solve the problem? I wasn't expecting to use the plain vanilla WCF stuff but rather with a slightly customized infrastructure. On Thu, Mar 12, 2009 at 6:15 PM, Curt Hagenlocher wrote: > There?s no CLR Type object that can fully represent your Ruby class, so > you can?t meaningfully pass the type to any API that wants to be able to > create an object from it. This is still an area of active investigation and > thought for us. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Orion Edwards > *Sent:* Wednesday, March 11, 2009 4:44 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] More WCF fail > > > > Had time to get back to the WCF stuff: Here's the latest > > > > class MyService > > include IWcfContract > > > > def ping(x) > > x > > end > > end > > > > uri = Uri.new "http://localhost:8700/MyService" > > binding = WSHttpBinding.new > > host = ServiceHost.new MyService > > host.add_service_endpoint(IWcfContract.to_clr_type, binding, uri); > > > > > > => Now raises the following error (new and different from last time, > exciting!): > > > > *The contract name 'IWcfContract' could not be found in the list of > contracts implemented by the service 'IronRuby.Builtins.RubyClass'.* > > > > I also tried creating an abstract C# class as follows: > > > > public abstract class WcfContractClass : IWcfContract > > { > > public abstract string Ping(string input); > > } > > > > and then having the ruby class do this: > > > > class MyService < WcfContractClass > > > > however the same error occurs. Still running the dlr nightly v12211 > build... > > > > Any ideas? > > _______________________________________________ > 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 orion.edwards at gmail.com Thu Mar 12 15:42:23 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Fri, 13 Mar 2009 08:42:23 +1300 Subject: [Ironruby-core] More WCF fail In-Reply-To: References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Message-ID: <7c1b59c00903121242y6c2d449bv7ba1e21b0a2f4ef0@mail.gmail.com> > > Wouldn't creating a servicehostfactory, servicehost and behavior solve the > problem? > I wasn't expecting to use the plain vanilla WCF stuff but rather with a > slightly customized infrastructure. > I don't have a particularly deep knowledge of WCF... I had been trying to search for how to do it with a non-standard servicehost, but hadn't found anything amongst all the mess of people asking simple questions :-( Will try look for WCF -> IOC container related stuff and see if that helps -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Thu Mar 12 15:46:14 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 12 Mar 2009 12:46:14 -0700 Subject: [Ironruby-core] More WCF fail In-Reply-To: References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Message-ID: You are correct. There?s no general problem with WCF; it?s just this particular API that Orion is using that?s problematic. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 12, 2009 11:54 AM To: ironruby-core Subject: Re: [Ironruby-core] More WCF fail But in the case of WCF this doesn't have to be the case right? You can create a different behavior where you tell WCF how to create instances and you can create a service host that also knows how to handle dynamic objects. After all if you can get an IoC container to provide the instances, surely you can hook IronRuby in there too. Wouldn't creating a servicehostfactory, servicehost and behavior solve the problem? I wasn't expecting to use the plain vanilla WCF stuff but rather with a slightly customized infrastructure. On Thu, Mar 12, 2009 at 6:15 PM, Curt Hagenlocher > wrote: There?s no CLR Type object that can fully represent your Ruby class, so you can?t meaningfully pass the type to any API that wants to be able to create an object from it. This is still an area of active investigation and thought for us. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Wednesday, March 11, 2009 4:44 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] More WCF fail Had time to get back to the WCF stuff: Here's the latest class MyService include IWcfContract def ping(x) x end end uri = Uri.new "http://localhost:8700/MyService" binding = WSHttpBinding.new host = ServiceHost.new MyService host.add_service_endpoint(IWcfContract.to_clr_type, binding, uri); => Now raises the following error (new and different from last time, exciting!): The contract name 'IWcfContract' could not be found in the list of contracts implemented by the service 'IronRuby.Builtins.RubyClass'. I also tried creating an abstract C# class as follows: public abstract class WcfContractClass : IWcfContract { public abstract string Ping(string input); } and then having the ruby class do this: class MyService < WcfContractClass however the same error occurs. Still running the dlr nightly v12211 build... Any ideas? _______________________________________________ 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 ivan at flanders.co.nz Thu Mar 12 17:04:44 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 12 Mar 2009 22:04:44 +0100 Subject: [Ironruby-core] More WCF fail In-Reply-To: <7c1b59c00903121242y6c2d449bv7ba1e21b0a2f4ef0@mail.gmail.com> References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> <7c1b59c00903121242y6c2d449bv7ba1e21b0a2f4ef0@mail.gmail.com> Message-ID: Look at how they do it in Autofac and Ninject that code is easier to follow than the code from the castle project 2009/3/12 Orion Edwards > Wouldn't creating a servicehostfactory, servicehost and behavior solve the >> problem? >> I wasn't expecting to use the plain vanilla WCF stuff but rather with a >> slightly customized infrastructure. >> > > I don't have a particularly deep knowledge of WCF... I had been trying to > search for how to do it with a non-standard servicehost, but hadn't found > anything amongst all the mess of people asking simple questions :-( > > Will try look for WCF -> IOC container related stuff and see if that helps > > _______________________________________________ > 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 ivan at flanders.co.nz Thu Mar 12 17:18:39 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 12 Mar 2009 22:18:39 +0100 Subject: [Ironruby-core] More WCF fail In-Reply-To: References: <7c1b59c00903111643t24dfbb5dt1f77dd62813aa7f3@mail.gmail.com> Message-ID: Hi Orion, http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/07/29/integrating-structuremap-with-wcf.aspx http://code.google.com/p/autofac/source/browse/trunk/src/Source/Autofac.Integration.Wcf/AutofacDependencyInjectionServiceBehavior.cs cheers Ivan 2009/3/12 Curt Hagenlocher > You are correct. There?s no general problem with WCF; it?s just this > particular API that Orion is using that?s problematic. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, March 12, 2009 11:54 AM > *To:* ironruby-core > *Subject:* Re: [Ironruby-core] More WCF fail > > > > But in the case of WCF this doesn't have to be the case right? > You can create a different behavior where you tell WCF how to create > instances and you can create a service host that also knows how to handle > dynamic objects. After all if you can get an IoC container to provide the > instances, surely you can hook IronRuby in there too. > > Wouldn't creating a servicehostfactory, servicehost and behavior solve the > problem? > I wasn't expecting to use the plain vanilla WCF stuff but rather with a > slightly customized infrastructure. > > On Thu, Mar 12, 2009 at 6:15 PM, Curt Hagenlocher > wrote: > > There?s no CLR Type object that can fully represent your Ruby class, so you > can?t meaningfully pass the type to any API that wants to be able to create > an object from it. This is still an area of active investigation and > thought for us. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Orion Edwards > *Sent:* Wednesday, March 11, 2009 4:44 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] More WCF fail > > > > Had time to get back to the WCF stuff: Here's the latest > > > > class MyService > > include IWcfContract > > > > def ping(x) > > x > > end > > end > > > > uri = Uri.new "http://localhost:8700/MyService" > > binding = WSHttpBinding.new > > host = ServiceHost.new MyService > > host.add_service_endpoint(IWcfContract.to_clr_type, binding, uri); > > > > > > => Now raises the following error (new and different from last time, > exciting!): > > > > *The contract name 'IWcfContract' could not be found in the list of > contracts implemented by the service 'IronRuby.Builtins.RubyClass'.* > > > > I also tried creating an abstract C# class as follows: > > > > public abstract class WcfContractClass : IWcfContract > > { > > public abstract string Ping(string input); > > } > > > > and then having the ruby class do this: > > > > class MyService < WcfContractClass > > > > however the same error occurs. Still running the dlr nightly v12211 > build... > > > > Any ideas? > > > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Fri Mar 13 14:16:30 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 13 Mar 2009 11:16:30 -0700 Subject: [Ironruby-core] Code Review: EncodingsFinal Message-ID: tfpt review "/shelveset:EncodingsFinal;REDMOND\tomat" Outer DLR: - Adds Invariant, Ensures, Result, Parameter and Out stubs to ContractUtils mimicking Dev10 contracts. These allow us to specify post-conditions and object invariants in code rather than comments. Ruby: - Implements infrastructure for $KCODE variable. There are only 3 encodings settable to KCODE (UTF8, SJIS, EUC). These encodings are implemented as special encodings (aka "k-codings", RubyEncoding.KCode* singletons) and need to be special cased. For example, String#size on a string containing a single UTF8 2-byte character returns 1 if its encoding is UTF8, but 2 if it is KCodeUTF8. This emulates MRI 1.8 where strings have no associated encoding. - $KCODE is in general considered obsolete and is not available in Silverlight build. - Replaces List and StringBuilder MutableString representations with byte[] and char[]. Reimplements basic char/byte/string buffer operations and moves them to Utils.cs. - Improves implementation of MutableString.GetHashCode - the hashcode is now cached on the string until the string is modified. The hash code calculation includes encoding if there are any non-ASCII characters in the string. Otherwise the encoding is not part of the hash. - Adds support for multi-byte identifiers in source code if the file has non-binary encoding or k-coding. Any non-ASCII character is considered a lower case letter for the purpose of identifier classification (constant, global var, instance var, class var, local, method name). - Fixes \xXX escapes in encoded strings - subsequent escaped bytes can form a single character or part if a character. In both cases the string's representation is switched to binary so that no information is lost. StringContentBuilder takes care of construction such strings. At runtime a string with an incomplete character suffix can be concatenated with a string with the missing part of the character and together these bytes might form a valid character. - Adds bunch of unit tests for MutableString and encodings. - Reimplements String#dump and String#inspect to handle encoded strings correctly. Moves the implementation to MutableString so that we can use it as a debug view for MutableString as well. - Fixes specs - KCODE was set to UTF8 by one spec and not restored, which affected subsequent specs. Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: EncodingsFinal.diff Type: application/octet-stream Size: 316782 bytes Desc: EncodingsFinal.diff URL: From cjac at colliertech.org Fri Mar 13 15:34:26 2009 From: cjac at colliertech.org (C.J. Adams-Collier) Date: Fri, 13 Mar 2009 12:34:26 -0700 Subject: [Ironruby-core] IronRuby Mono CI build box back online Message-ID: <20090313193426.GC20515@colliertech.org> Hey all, I moved the servers the CI was running on into my basement last weekend. They're back online, and you can follow the logs here: http://ironruby.colliertech.org/integrity/ironruby Michael Letterle is the one responsible for doing all of the real work. I just feed and care for the servers. Cheers, C.J. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: From bpierson at connexatools.com Fri Mar 13 18:10:55 2009 From: bpierson at connexatools.com (Bruce Pierson) Date: Fri, 13 Mar 2009 16:10:55 -0600 Subject: [Ironruby-core] Microsoft.Scripting dll versions Message-ID: <005501c9a428$a1b1f010$e515d030$@com> I have an application that allows the user to choose between Ruby and Python scripting. In order to make this work, I had to rebuild IronRuby with all the Microsoft.Scripting.* assemblies renamed, because the versions are different for the current versions of IronPython and IronRuby. What are the plans for making these projects reference the same Microsoft.Scripting.* dlls, so that I don't have to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Mar 13 18:32:02 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 13 Mar 2009 15:32:02 -0700 Subject: [Ironruby-core] Microsoft.Scripting dll versions In-Reply-To: <005501c9a428$a1b1f010$e515d030$@com> References: <005501c9a428$a1b1f010$e515d030$@com> Message-ID: <1326F439-1E80-4488-8F17-B0695E804294@microsoft.com> You can build python out of github today. It lives is merlin\main \languages\ironpython. Then you can share the same DLR assemblies. ~Jimmy Sent from my phone On Mar 13, 2009, at 6:27 PM, "Bruce Pierson" wrote: > I have an application that allows the user to choose between Ruby > and Python scripting. In order to make this work, I had to rebuild > IronRuby with all the Microsoft.Scripting.* assemblies renamed, > because the versions are different for the current versions of > IronPython and IronRuby. > > > > What are the plans for making these projects reference the same > Microsoft.Scripting.* dlls, so that I don?t have to do this? > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Fri Mar 13 18:41:04 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 13 Mar 2009 15:41:04 -0700 Subject: [Ironruby-core] FYI review: YAML improvements Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D35FB38@NA-EXMSG-C104.redmond.corp.microsoft.com> http://github.com/shri/ironruby/commit/a5d2d23b5c97546c478189d20b4d2c1b240e7159 Tomas has reviewed this. Added support to YAML.quick_emit to be called on nested objects where the same emitter needs to be flowed through Array.pack("a") was not dealing with nil input yaml.rb should to "require stringio" like MRI does Deleted a second copy of yaml.rb from the IronRuby.Libraries.Yaml folder Added MutableString.Dump property to be able to inspect large strings in VS. ir.exe -X:ExceptionDetail was not working in interactive mode because ir.exe catches the exception and does not call RubyExceptionData.SetCompiledTrace like a rescue block in Ruby code would do. Fixed this Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Fri Mar 13 18:42:08 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 13 Mar 2009 15:42:08 -0700 Subject: [Ironruby-core] Microsoft.Scripting dll versions In-Reply-To: <005501c9a428$a1b1f010$e515d030$@com> References: <005501c9a428$a1b1f010$e515d030$@com> Message-ID: You can get the latest builds from http://nightlybuilds.cloudapp.net/Project.aspx?project=dlr or build both languages from GIT or CodePlex source code (see my blog http://blog.tomasm.net/2009/02/20/multilingual-repl). Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Bruce Pierson Sent: Friday, March 13, 2009 3:11 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Microsoft.Scripting dll versions I have an application that allows the user to choose between Ruby and Python scripting. In order to make this work, I had to rebuild IronRuby with all the Microsoft.Scripting.* assemblies renamed, because the versions are different for the current versions of IronPython and IronRuby. What are the plans for making these projects reference the same Microsoft.Scripting.* dlls, so that I don't have to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpierson at connexatools.com Sat Mar 14 00:53:31 2009 From: bpierson at connexatools.com (Bruce Pierson) Date: Fri, 13 Mar 2009 22:53:31 -0600 Subject: [Ironruby-core] Microsoft.Scripting dll versions In-Reply-To: References: <005501c9a428$a1b1f010$e515d030$@com> Message-ID: <007101c9a460$d307f6e0$7917e4a0$@com> Thanks, that did the trick. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Friday, March 13, 2009 4:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Microsoft.Scripting dll versions You can get the latest builds from http://nightlybuilds.cloudapp.net/Project.aspx?project=dlr or build both languages from GIT or CodePlex source code (see my blog http://blog.tomasm.net/2009/02/20/multilingual-repl). Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Bruce Pierson Sent: Friday, March 13, 2009 3:11 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Microsoft.Scripting dll versions I have an application that allows the user to choose between Ruby and Python scripting. In order to make this work, I had to rebuild IronRuby with all the Microsoft.Scripting.* assemblies renamed, because the versions are different for the current versions of IronPython and IronRuby. What are the plans for making these projects reference the same Microsoft.Scripting.* dlls, so that I don't have to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Mar 14 02:09:46 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 13 Mar 2009 23:09:46 -0700 Subject: [Ironruby-core] FYI review: YAML improvements In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D35FB38@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E0D35FB38@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: This is a review on both this and the Gzip commit: * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\fixtures\class.rb o Please use parenthesis for declaring methods for consistency * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\each_node_spec.rb o Please use += instead of i = i + 1 o Have we checked that not being a subclass of YAML::Syck::Map is ok? I suspect it is an implementation detail, but I want to check. If it is implementation detail, then we probably don't need to spec that one. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\emitter_spec.rb o Don't spec method lists. For one, a implementation may choose a superset (so == is wrong), for two, RubySpec doesn't spec method lists. o Same question about the subclass, which makes me wonder if that 1st spec is needed. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\quick_emit_spec.rb o Subclass spec o Don't spec exception messages, only exception types. o I would add a ScratchPad.clear to a before(:each) * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\to_yaml_spec.rb o Don't spec method lists. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\fixtures\common.rb o Get rid of EmitterMethods and OutMethods o Line 54 and 68, no need to do != nil. If the object is nil it will be false. Also, get rid of the "then"s * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\gzipreader\wrap_spec.rb o You're using ScratchPad when there is no reason. 22, 29, put your should in the Zlib blocks. o 38 is fine o 56: don't spec the exception message * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\zlib\gzipwriter\flush_spec.rb o Don't spec error messages * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubysync\library\zlib\gzipwriter\wrap_spec.rb o 28: should in the block o 34 1. Zlib::GzipWriter.wrap(@io) do |gz| From: Shri Borde Sent: Friday, March 13, 2009 3:41 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: FYI review: YAML improvements http://github.com/shri/ironruby/commit/a5d2d23b5c97546c478189d20b4d2c1b240e7159 Tomas has reviewed this. Added support to YAML.quick_emit to be called on nested objects where the same emitter needs to be flowed through Array.pack("a") was not dealing with nil input yaml.rb should to "require stringio" like MRI does Deleted a second copy of yaml.rb from the IronRuby.Libraries.Yaml folder Added MutableString.Dump property to be able to inspect large strings in VS. ir.exe -X:ExceptionDetail was not working in interactive mode because ir.exe catches the exception and does not call RubyExceptionData.SetCompiledTrace like a rescue block in Ruby code would do. Fixed this Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Sat Mar 14 02:13:05 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 13 Mar 2009 23:13:05 -0700 Subject: [Ironruby-core] FYI review: YAML improvements In-Reply-To: References: <710DF26F214D2B4BB94287123FFE980A2E0D35FB38@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Hit ctl-enter instead of shift-enter: * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubysync\library\zlib\gzipwriter\wrap_spec.rb o 28: should in the block o 34 1. Zlib::GzipWriter.wrap(@io) do |gz| :end_of_block end.should == :end_of_block o 64: error messages JD From: Jim Deville Sent: Friday, March 13, 2009 11:10 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: FYI review: YAML improvements This is a review on both this and the Gzip commit: * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\fixtures\class.rb o Please use parenthesis for declaring methods for consistency * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\each_node_spec.rb o Please use += instead of i = i + 1 o Have we checked that not being a subclass of YAML::Syck::Map is ok? I suspect it is an implementation detail, but I want to check. If it is implementation detail, then we probably don't need to spec that one. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\emitter_spec.rb o Don't spec method lists. For one, a implementation may choose a superset (so == is wrong), for two, RubySpec doesn't spec method lists. o Same question about the subclass, which makes me wonder if that 1st spec is needed. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\quick_emit_spec.rb o Subclass spec o Don't spec exception messages, only exception types. o I would add a ScratchPad.clear to a before(:each) * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\to_yaml_spec.rb o Don't spec method lists. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\fixtures\common.rb o Get rid of EmitterMethods and OutMethods o Line 54 and 68, no need to do != nil. If the object is nil it will be false. Also, get rid of the "then"s * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\gzipreader\wrap_spec.rb o You're using ScratchPad when there is no reason. 22, 29, put your should in the Zlib blocks. o 38 is fine o 56: don't spec the exception message * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\zlib\gzipwriter\flush_spec.rb o Don't spec error messages * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubysync\library\zlib\gzipwriter\wrap_spec.rb o 28: should in the block o 34 1. Zlib::GzipWriter.wrap(@io) do |gz| From: Shri Borde Sent: Friday, March 13, 2009 3:41 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: FYI review: YAML improvements http://github.com/shri/ironruby/commit/a5d2d23b5c97546c478189d20b4d2c1b240e7159 Tomas has reviewed this. Added support to YAML.quick_emit to be called on nested objects where the same emitter needs to be flowed through Array.pack("a") was not dealing with nil input yaml.rb should to "require stringio" like MRI does Deleted a second copy of yaml.rb from the IronRuby.Libraries.Yaml folder Added MutableString.Dump property to be able to inspect large strings in VS. ir.exe -X:ExceptionDetail was not working in interactive mode because ir.exe catches the exception and does not call RubyExceptionData.SetCompiledTrace like a rescue block in Ruby code would do. Fixed this Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Sun Mar 15 19:06:25 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 15 Mar 2009 16:06:25 -0700 Subject: [Ironruby-core] Recommendations for (IronRuby) gem packaging ? In-Reply-To: <3bf20550902280334n708ae3f7pa279abb1172d74d3@mail.gmail.com> References: <4a68b8cf0902280229v51dbb1e9u2f2db964658c3430@mail.gmail.com> <3bf20550902280334n708ae3f7pa279abb1172d74d3@mail.gmail.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284CB926B988@NA-EXMSG-C116.redmond.corp.microsoft.com> Isn't "platform" used to identify a gem as a JRuby gem? Granted, it's not perfect, but having IronRuby gems set the platform to "ironruby" would seem to make sense with the current state of rubygems. Is there a reason not to do this, and (other than waiting for changes to rubygems) is there a better way to accomplish this? > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Daniele Alessandri > Sent: Saturday, February 28, 2009 6:34 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Recommendations for (IronRuby) gem > packaging ? > > Hi Thibaut, > > AFAIK there is no way (yet) to enforce the compatibility of a gem with > one or more ruby implementations, e.g. mri, jruby, ironruby, etc. If > I'm not going wrong there was a discussion a while back on ruby-talk > about the necessity of extending the current gemspec with a new > attribute to meet this kind of requirement as the existing "platform" > attribute was not intended for something like this and, in fact, it is > not quite the same. > > I was thinking of packaging my ironruby-hpricot as a gem for ironruby > (btw the source is hosted on github, see > http://github.com/nrk/ironruby-hpricot/ ... never had the chance to > announce it :-)) but I guess it is too early as ironruby's internals > seem to be still a "moving target" (I had to push a few fixes last > week due to changes). > > > On Sat, Feb 28, 2009 at 11:29, Thibaut Barr?re > wrote: > > > Hi, > > I'm thinking about packaging some gems from github. > > So I'm wondering if it already possible to package a gem so that: > > 1 - it is marked as compatible *only* with IronRuby ? > > 2 - it is marked as compatible also with IronRuby (as well as other > > platforms) ? > > What would be the platform indication ? > > I'm also looking for any other useful information from people who > tried to > > package an IronRuby gem. > > cheers and thanks for any feedback, > > -- Thibaut > > > -- > Daniele Alessandri > http://www.clorophilla.net/blog/ > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Mon Mar 16 02:16:35 2009 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 15 Mar 2009 23:16:35 -0700 Subject: [Ironruby-core] Code Review: shrigitpull Message-ID: tfpt review "/shelveset:shrigitpull;REDMOND\jdeville" Comment : This shelveset is an external contribution from Shri. Tests have been modified by me. Added support to YAML.quick_emit to be called on nested objects where the same emitter needs to be flowed through Array.pack("a") was not dealing with nil input yaml.rb should to "require stringio" like MRI does Deleted a second copy of yaml.rb from the IronRuby.Libraries.Yaml folder Added MutableString.Dump property to be able to inspect large strings in VS. ir.exe -X:ExceptionDetail was not working in interactive mode because ir.exe catches the exception and does not call RubyExceptionData.SetCompiledTrace like a rescue block in Ruby code would do. Fixed this -------------- next part -------------- A non-text attachment was scrubbed... Name: shrigitpull.diff Type: application/octet-stream Size: 107612 bytes Desc: shrigitpull.diff URL: From Shri.Borde at microsoft.com Mon Mar 16 02:22:31 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Sun, 15 Mar 2009 23:22:31 -0700 Subject: [Ironruby-core] Code Review: shrigitpull In-Reply-To: References: Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D35FCCC@NA-EXMSG-C104.redmond.corp.microsoft.com> Looks good ofcourse :) -----Original Message----- From: Jim Deville Sent: Sunday, March 15, 2009 11:17 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: shrigitpull tfpt review "/shelveset:shrigitpull;REDMOND\jdeville" Comment : This shelveset is an external contribution from Shri. Tests have been modified by me. Added support to YAML.quick_emit to be called on nested objects where the same emitter needs to be flowed through Array.pack("a") was not dealing with nil input yaml.rb should to "require stringio" like MRI does Deleted a second copy of yaml.rb from the IronRuby.Libraries.Yaml folder Added MutableString.Dump property to be able to inspect large strings in VS. ir.exe -X:ExceptionDetail was not working in interactive mode because ir.exe catches the exception and does not call RubyExceptionData.SetCompiledTrace like a rescue block in Ruby code would do. Fixed this From jdeville at microsoft.com Mon Mar 16 02:24:20 2009 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 15 Mar 2009 23:24:20 -0700 Subject: [Ironruby-core] FYI review: YAML improvements In-Reply-To: References: <710DF26F214D2B4BB94287123FFE980A2E0D35FB38@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: FYI: After talking with Brian from RubySpec, I have pulled the specs that check for be_kind_of(YAML::Syck::*). We have decided that it is implementation detail, and since IronRuby and RbYaml don't support it, it isn't something that should be specced. JD From: Jim Deville Sent: Friday, March 13, 2009 11:13 PM To: Jim Deville; Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: FYI review: YAML improvements Hit ctl-enter instead of shift-enter: * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubysync\library\zlib\gzipwriter\wrap_spec.rb o 28: should in the block o 34 1. Zlib::GzipWriter.wrap(@io) do |gz| :end_of_block end.should == :end_of_block o 64: error messages JD From: Jim Deville Sent: Friday, March 13, 2009 11:10 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: FYI review: YAML improvements This is a review on both this and the Gzip commit: * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\fixtures\class.rb o Please use parenthesis for declaring methods for consistency * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\each_node_spec.rb o Please use += instead of i = i + 1 o Have we checked that not being a subclass of YAML::Syck::Map is ok? I suspect it is an implementation detail, but I want to check. If it is implementation detail, then we probably don't need to spec that one. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\emitter_spec.rb o Don't spec method lists. For one, a implementation may choose a superset (so == is wrong), for two, RubySpec doesn't spec method lists. o Same question about the subclass, which makes me wonder if that 1st spec is needed. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\quick_emit_spec.rb o Subclass spec o Don't spec exception messages, only exception types. o I would add a ScratchPad.clear to a before(:each) * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\to_yaml_spec.rb o Don't spec method lists. * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\yaml\fixtures\common.rb o Get rid of EmitterMethods and OutMethods o Line 54 and 68, no need to do != nil. If the object is nil it will be false. Also, get rid of the "then"s * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\gzipreader\wrap_spec.rb o You're using ScratchPad when there is no reason. 22, 29, put your should in the Zlib blocks. o 38 is fine o 56: don't spec the exception message * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubyspec\library\zlib\gzipwriter\flush_spec.rb o Don't spec error messages * C:\vsl\rubysync\Merlin\External\Languages\IronRuby\mspec\rubysync\library\zlib\gzipwriter\wrap_spec.rb o 28: should in the block o 34 1. Zlib::GzipWriter.wrap(@io) do |gz| From: Shri Borde Sent: Friday, March 13, 2009 3:41 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: FYI review: YAML improvements http://github.com/shri/ironruby/commit/a5d2d23b5c97546c478189d20b4d2c1b240e7159 Tomas has reviewed this. Added support to YAML.quick_emit to be called on nested objects where the same emitter needs to be flowed through Array.pack("a") was not dealing with nil input yaml.rb should to "require stringio" like MRI does Deleted a second copy of yaml.rb from the IronRuby.Libraries.Yaml folder Added MutableString.Dump property to be able to inspect large strings in VS. ir.exe -X:ExceptionDetail was not working in interactive mode because ir.exe catches the exception and does not call RubyExceptionData.SetCompiledTrace like a rescue block in Ruby code would do. Fixed this Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Mon Mar 16 06:08:27 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Mon, 16 Mar 2009 11:08:27 +0100 Subject: [Ironruby-core] Recommendations for (IronRuby) gem packaging ? In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284CB926B988@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <4a68b8cf0902280229v51dbb1e9u2f2db964658c3430@mail.gmail.com> <3bf20550902280334n708ae3f7pa279abb1172d74d3@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284CB926B988@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903160308r3d89debbn85e72d1930fedf1e@mail.gmail.com> > > Isn't "platform" used to identify a gem as a JRuby gem? Granted, it's not > perfect, but having IronRuby gems set the platform to "ironruby" would seem > to make sense with the current state of rubygems. Is there a reason not to > do this, and (other than waiting for changes to rubygems) is there a better > way to accomplish this? I think it is - although I'm no expert here. As well, I'm not sure what setting the "platform" actually implies. For instance, I have developed gems that target the MRI. I'm thinking about adding native support for IronRuby. One example is diacritics_fu ( http://github.com/thbar/diacritics_fu/tree/master) that removes accents from strings. Under .Net, I can achieve that natively using encoding stuff. So basically this gem would become usable under both MRI and IronRuby, it just doesn't use the same underlying stuff depending on who is using it. I anticipate that more and more gems could face this situation. I'm not sure how to define the platform in these cases. raw thoughts... -- Thibaut > > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Daniele Alessandri > > Sent: Saturday, February 28, 2009 6:34 AM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] Recommendations for (IronRuby) gem > > packaging ? > > > > Hi Thibaut, > > > > AFAIK there is no way (yet) to enforce the compatibility of a gem with > > one or more ruby implementations, e.g. mri, jruby, ironruby, etc. If > > I'm not going wrong there was a discussion a while back on ruby-talk > > about the necessity of extending the current gemspec with a new > > attribute to meet this kind of requirement as the existing "platform" > > attribute was not intended for something like this and, in fact, it is > > not quite the same. > > > > I was thinking of packaging my ironruby-hpricot as a gem for ironruby > > (btw the source is hosted on github, see > > http://github.com/nrk/ironruby-hpricot/ ... never had the chance to > > announce it :-)) but I guess it is too early as ironruby's internals > > seem to be still a "moving target" (I had to push a few fixes last > > week due to changes). > > > > > > On Sat, Feb 28, 2009 at 11:29, Thibaut Barr?re > > wrote: > > > > > Hi, > > > I'm thinking about packaging some gems from github. > > > So I'm wondering if it already possible to package a gem so that: > > > 1 - it is marked as compatible *only* with IronRuby ? > > > 2 - it is marked as compatible also with IronRuby (as well as other > > > platforms) ? > > > What would be the platform indication ? > > > I'm also looking for any other useful information from people who > > tried to > > > package an IronRuby gem. > > > cheers and thanks for any feedback, > > > -- Thibaut > > > > > > -- > > Daniele Alessandri > > http://www.clorophilla.net/blog/ > > _______________________________________________ > > 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 Mon Mar 16 06:51:00 2009 From: lists at ruby-forum.com (Paul Cowan) Date: Mon, 16 Mar 2009 11:51:00 +0100 Subject: [Ironruby-core] Accessing the return value from a Dsl Message-ID: <279a6ff2b02a065683fd899fe027a89d@ruby-forum.com> Hi, I am trying to create a Dsl which will have instances that live in individual Dsl .rb files and then run them from the CLR. I want to create and set the values of the Clr object in IronRuby and then somehow have access to the CLR object after the .rb Dsl instance file has run. Here is my Clr object which is very simple at the moment: namespace Horn.Core.Dsl { public class BuildMetaData : IBuildMetaData { public string Description { get; set; } } } I have the following module which I am using to specify my Dsl and which will create an instance of the BuildMetaData specified above: module MetaBuilder module Dsl module Main attr_accessor :metadata def install(name, &block) @metadata = Horn::Core::Dsl::BuildMetaData.new yield self if block_given? end def description(desc) @metadata.Description = desc end def get_metadata @metadata end end end end include MetaBuilder::Dsl::Main I somehow want to be able to get the @metadata property from the Clr code after an instance of the Dsl has ran. An instance of the Dsl looks like this currently: install :horn do description "A .NET build and dependency manager" end My C# code looks like this currently: var engine = Ruby.CreateEngine(); engine.Runtime.LoadAssembly(typeof(BuildMetaData).Assembly); engine.ExecuteFile(buildFile); var klass = engine.Runtime.Globals.GetVariable("get_metadata"); Is there anyway I can get at the @metadata property without having to pollute the Dsl instance? For that matter is my approach reasonable or is there perhaps a better way? Thanks in advance Paul -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Mon Mar 16 15:20:16 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 16 Mar 2009 12:20:16 -0700 Subject: [Ironruby-core] Code Review: irtestfix Message-ID: tfpt review "/shelveset:irtestfix;REDMOND\jdeville" Comment : * Removes RunRspec * Path correction in Dev.bat to point to ruby-1.9.1p0 instead of 1.9.0-0 * Fixes irtests.bat to work with new mspec setup * Fixes bug/suggestion from JB Evain to print the current runtime as part of the banner for ir.exe -------------- next part -------------- A non-text attachment was scrubbed... Name: irtestfix.diff Type: application/octet-stream Size: 4570 bytes Desc: irtestfix.diff URL: From Tomas.Matousek at microsoft.com Mon Mar 16 16:11:08 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 16 Mar 2009 13:11:08 -0700 Subject: [Ironruby-core] Code Review: irtestfix In-Reply-To: References: Message-ID: Looks good. Tomas -----Original Message----- From: Jim Deville Sent: Monday, March 16, 2009 12:20 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: irtestfix tfpt review "/shelveset:irtestfix;REDMOND\jdeville" Comment : * Removes RunRspec * Path correction in Dev.bat to point to ruby-1.9.1p0 instead of 1.9.0-0 * Fixes irtests.bat to work with new mspec setup * Fixes bug/suggestion from JB Evain to print the current runtime as part of the banner for ir.exe From suppakilla at gmail.com Mon Mar 16 16:51:22 2009 From: suppakilla at gmail.com (Daniele Alessandri) Date: Mon, 16 Mar 2009 21:51:22 +0100 Subject: [Ironruby-core] Recommendations for (IronRuby) gem packaging ? In-Reply-To: <4a68b8cf0903160308r3d89debbn85e72d1930fedf1e@mail.gmail.com> References: <4a68b8cf0902280229v51dbb1e9u2f2db964658c3430@mail.gmail.com> <3bf20550902280334n708ae3f7pa279abb1172d74d3@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284CB926B988@NA-EXMSG-C116.redmond.corp.microsoft.com> <4a68b8cf0903160308r3d89debbn85e72d1930fedf1e@mail.gmail.com> Message-ID: <3bf20550903161351x287d4307l4d7ee75c4b96be13@mail.gmail.com> 2009/3/16 Thibaut Barr?re : >> Isn't "platform" used to identify a gem as a JRuby gem? Granted, it's not >> perfect, but having IronRuby gems set the platform to "ironruby" would seem >> to make sense with the current state of rubygems. Is there a reason not to >> do this, and (other than waiting for changes to rubygems) is there a better >> way to accomplish this? > > I think it is - although I'm no expert here. Well it makes sense if we are speaking about a mere reminder that a gem targets ironruby (it is not really that good, but there is no other way to do that), but right now it is not possible to *enforce* the compatibility with a specific ruby implementation and/or platform (and this is what I was referring to). By the way... yes, a few gems just use spec.platform to identify themselves as jruby gems: hpricot-0.6.164.gem hpricot-0.6.164-mswin32.gem hpricot-0.6.164-jruby.gem Honestly, the fact that spec.platform was intended for different purposes does not imply that we should not follow what seems the de-facto way to overcome the current limits of gemspecs :-) > As well, I'm not sure what setting the "platform" actually implies. http://rubygems.org/read/chapter/20#platform "If this attribute is set to a non-default value, it will be included in the filename of the gem when it is built, e.g. fxruby-1.2.0-win32.gem.". See also "gem help platforms" > For instance, I have developed gems that target the MRI. I'm thinking about > adding native support for IronRuby. One example is diacritics_fu > (http://github.com/thbar/diacritics_fu/tree/master) that removes accents > from strings. Under .Net, I can achieve that natively using encoding > stuff. So basically this gem would become usable under both MRI and > IronRuby, it just doesn't use the same underlying stuff depending on who is > using it. In this case I would simply opt for two separate gems: diacritics_fu (pure ruby) and diacritics_fu-ironruby. I don't think that MRI guys are actually interested in having .NET assemblies in their installed gems :-) -- Daniele Alessandri http://www.clorophilla.net/blog/ http://twitter.com/JoL1hAHN From lists at ruby-forum.com Mon Mar 16 19:40:20 2009 From: lists at ruby-forum.com (Paul Cowan) Date: Tue, 17 Mar 2009 00:40:20 +0100 Subject: [Ironruby-core] Accessing the return value from a Dsl In-Reply-To: <279a6ff2b02a065683fd899fe027a89d@ruby-forum.com> References: <279a6ff2b02a065683fd899fe027a89d@ruby-forum.com> Message-ID: <00fca386a19be4be31614804923432f9@ruby-forum.com> Hi, For anyone who is interested, I managed to solve this by creating a singleton to house an instance of the BuildMetaData class. My Ruby code ended up looking like this: module MetaBuilder module Dsl module Main def install(name, &block) yield self if block_given? end def get_from(name, url) puts name puts url end def description(desc) meta.metadata.Description = desc end class MetaDataAccessor attr_accessor :metadata private def initialize @metadata = Horn::Core::Dsl::BuildMetaData.new end public def self.instance @@instance ||= new end def self.get_metadata @metadata end end end end end def meta MetaBuilder::Dsl::Main::MetaDataAccessor.instance end class ClrAccessor def get_build_metadata meta.metadata end end include MetaBuilder::Dsl::Main I created the MetaDataAccessor to keep a singleton BuildMetaData instance. I could not work out the C# code to access a fully qualified class that is nested in between modules so I created the ClrAccessor class to provide access from the Clr. My C# code ended up looking like this: var engine = Ruby.CreateEngine(); engine.Runtime.LoadAssembly(typeof(BuildMetaData).Assembly); engine.ExecuteFile(buildFile); var klass = engine.Runtime.Globals.GetVariable("ClrAccessor"); var instance = engine.Operations.CreateInstance(klass); buildMetaData = (BuildMetaData)engine.Operations.InvokeMember(instance, "get_build_metadata"); I am fairly sure there is an easier way but for me it is progress. Any input into this "round the houses" approach would be appreciated. Cheers Paul Paul Cowan wrote: > Hi, > > I am trying to create a Dsl which will have instances that live in > individual Dsl .rb files and then run them from the CLR. > > I want to create and set the values of the Clr object in IronRuby and > then somehow have access to the CLR object after the .rb Dsl instance > file has run. > > Here is my Clr object which is very simple at the moment: > > namespace Horn.Core.Dsl > { > public class BuildMetaData : IBuildMetaData > { > public string Description { get; set; } > } > } > > I have the following module which I am using to specify my Dsl and which > will create an instance of the BuildMetaData specified above: > > module MetaBuilder > module Dsl > module Main > attr_accessor :metadata > def install(name, &block) > @metadata = Horn::Core::Dsl::BuildMetaData.new > yield self if block_given? > end > > def description(desc) > @metadata.Description = desc > end > > def get_metadata > @metadata > end > > end > end > end > > include MetaBuilder::Dsl::Main > > I somehow want to be able to get the @metadata property from the Clr > code after an instance of the Dsl has ran. > > An instance of the Dsl looks like this currently: > > install :horn do > description "A .NET build and dependency manager" > end > > My C# code looks like this currently: > > var engine = Ruby.CreateEngine(); > engine.Runtime.LoadAssembly(typeof(BuildMetaData).Assembly); > engine.ExecuteFile(buildFile); > var klass = engine.Runtime.Globals.GetVariable("get_metadata"); > > Is there anyway I can get at the @metadata property without having to > pollute the Dsl instance? > > For that matter is my approach reasonable or is there perhaps a better > way? > > Thanks in advance > > Paul -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Mon Mar 16 19:50:24 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 16 Mar 2009 16:50:24 -0700 Subject: [Ironruby-core] Review : Zlib::Deflate fix Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D4675AA@NA-EXMSG-C104.redmond.corp.microsoft.com> http://github.com/shri/ironruby/commit/ce7438b4c038dc8937f59758f33c387e139aea6a Tomas, if you sync to git at github.com:shri/ironruby.git and run Languages\Scripts\bat\dev.bat, you should be able to run this command to get a much better diffing experience. For this change, the URL above is simpler though as there is only one .cs file with changes. gitdiff bc39b55623db150ba7b58b95787f2f61d8f5840b ce7438b4c038dc8937f59758f33c387e139aea6a Fixed Zlib::Deflate algorithm to use the right header and footer around System.IO.Compression.DeflateStream Added GitDiff.bat to use windiff for diffing, and to be able to get of files to diff from rather than having to go serially through all the files one by one Adds a trivial README - github.com will automatically show the contents inline if anyone browses the repo. Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Mar 16 21:38:20 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 16 Mar 2009 18:38:20 -0700 Subject: [Ironruby-core] Code Review: DMO1 Message-ID: tfpt review "/shelveset:DMO1;REDMOND\tomat" Comment : - Checks for an invalid number of arguments is passed to an attribute setter/getter or struct field setter/getter. - Implements correct splatting of arguments to Delegate constructor and enables previously failing tests. - Refactors RubyMethodGroupBase in preparation for obsolete API usage removal. - Fixes a comment and adds OBSOLETE comments to obsolete API of MethodBinder and BindingTarget classes. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: DMO1.diff Type: application/octet-stream Size: 32188 bytes Desc: DMO1.diff URL: From Shri.Borde at microsoft.com Tue Mar 17 02:10:19 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 16 Mar 2009 23:10:19 -0700 Subject: [Ironruby-core] Status of rubygems unit tests Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D46769E@NA-EXMSG-C104.redmond.corp.microsoft.com> I have been working on making the rubygem unit tests (from git://github.com/vvs/rubygems.git) pass with IronRuby. When I started, the results looked like this. 707 tests, 1170 assertions, 9 failures, 352 errors, 1 skips Half the tests (9+352/707) were failing (or half were passing depending on how you want to look at it). The main culprits were Zlib::GzipWriter, YAML.quick_emit and Zlib::Deflate. After fixing these issues, the results look like this: 707 tests, 1881 assertions, 40 failures, 53 errors, 4 skips It's a good improvement. Errors (where the tests cannot even run properly) account for 8% (53/707), and failures (functionality defects) can now show through - in 5% (40/707) of the tests, for a pass rate of 87%. The errors are because of the following exceptions in descending order of occurrence. The number at the start is the count of how often the error happened. 9: dump format error(9) 8: ERROR: Failed to build gem native extension. 5: dump format error(8) 5: marshal data too short 4: uninitialized constant OpenSSL::X509 2: uninitialized constant OpenSSL::PKey 2: trying to seek on a non-existent stream? 2: ERROR: Failed to build gem native extension. 2: SSL is not installed on this system 2: SocketError: An established connection was aborted by the software in your host machine I will keep pushing on the tests. The failures will be a bit more work to narrow down as some expectation fails, possibly much after a bug introduced a bad result in the system. If anyone wants to help dig into the failures, let me know, and I can help you get set up. Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From jirapong.nanta at gmail.com Tue Mar 17 03:12:31 2009 From: jirapong.nanta at gmail.com (jirapong.nanta at gmail.com) Date: Tue, 17 Mar 2009 14:12:31 +0700 Subject: [Ironruby-core] Status of rubygems unit tests In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D46769E@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E0D46769E@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <967AFDF3-E277-403C-8943-5D124B7D3892@gmail.com> Hello Shri, I would like to help on this. please include my email/IM: + msn: jirapong at msn.com + Skype: jirapong.nanta Thank you, -Jirapong On Mar 17, 2009, at 1:10 PM, Shri Borde wrote: > I have been working on making the rubygem unit tests (from git:// > github.com/vvs/rubygems.git) pass with IronRuby. When I started, the > results looked like this. > > 707 tests, 1170 assertions, 9 failures, 352 errors, 1 skips > > Half the tests (9+352/707) were failing (or half were passing > depending on how you want to look at it). The main culprits were > Zlib::GzipWriter, YAML.quick_emit and Zlib::Deflate. After fixing > these issues, the results look like this: > > 707 tests, 1881 assertions, 40 failures, 53 errors, 4 skips > > It?s a good improvement. Errors (where the tests cannot even run > properly) account for 8% (53/707), and failures (functionality > defects) can now show through ? in 5% (40/707) of the tests, for a > pass rate of 87%. The errors are because of the following exceptions > in descending order of occurrence. The number at the start is the > count of how often the error happened. > > 9: dump format error(9) > 8: ERROR: Failed to build gem native extension. > 5: dump format error(8) > 5: marshal data too short > 4: uninitialized constant OpenSSL::X509 > 2: uninitialized constant OpenSSL::PKey > 2: trying to seek on a non-existent stream? > 2: ERROR: Failed to build gem native extension. > 2: SSL is not installed on this system > 2: SocketError: An established connection was aborted by the > software in your host machine > > I will keep pushing on the tests. The failures will be a bit more > work to narrow down as some expectation fails, possibly much after a > bug introduced a bad result in the system. If anyone wants to help > dig into the failures, let me know, and I can help you get set up. > > Thanks, > Shri > > _______________________________________________ > 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 ivan at flanders.co.nz Tue Mar 17 11:05:16 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 17 Mar 2009 16:05:16 +0100 Subject: [Ironruby-core] is this really impossible? Message-ID: Hi, I'm trying to teach Ninject some new tricks by introducing it to the DLR. So far I've got a config DSL in a working state and now I'm looking at making it work with types implemented in a DLR language. I've only looked at this part as a concept. In an ideal case you would be able to just inject a dynamic type by its class or module name. I don't know how far the C# 4 dynamic keyword will take me. In my ideal case the compiler will start complaining because none of the methods exist at compile-time. Is there a way for me to suss the compiler so that it doesn't care whether or not its an existing method in C# 3. AFAIK it isn't possible, and I realise that I want to sideline the compiler then. Failing that there are several other approaches that I can take to do make it work none of which come close to my ideal case. I can create a dynamic object container where I can call methods through a string, or I can just treat dynamic objects as if they were dictionaries that group methods. Or the user of Ninject needs to define an interface and make the dynamic object implement that interface. That way you keep compile time checking and the compiler will actually be happy without having to hack it too much. The downside is that you would again have to do a small amount of work in C#. On the other hand if you're using Ninject you're probably already using a statically compiled language. Any thoughts? -------------- next part -------------- An HTML attachment was scrubbed... URL: From curth at microsoft.com Tue Mar 17 12:14:11 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Tue, 17 Mar 2009 09:14:11 -0700 Subject: [Ironruby-core] Code Review: DMO1 In-Reply-To: References: Message-ID: In RubyClass.cs, there's an incorrect parameter passed to SetWrongNumber: var actualArgs = RubyMethodGroupBase.NormalizeArguments(metaBuilder, args, SelfCallConvention.NoSelf, false, false); if (actualArgs.Length == 1) { ... } else { metaBuilder.SetWrongNumberOfArgumentsError(actualArgs.Length, 0); <-- should be "1". } Looks good otherwise. -----Original Message----- From: Tomas Matousek Sent: Monday, March 16, 2009 6:38 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: DMO1 tfpt review "/shelveset:DMO1;REDMOND\tomat" Comment : - Checks for an invalid number of arguments is passed to an attribute setter/getter or struct field setter/getter. - Implements correct splatting of arguments to Delegate constructor and enables previously failing tests. - Refactors RubyMethodGroupBase in preparation for obsolete API usage removal. - Fixes a comment and adds OBSOLETE comments to obsolete API of MethodBinder and BindingTarget classes. Tomas From Tomas.Matousek at microsoft.com Tue Mar 17 12:46:35 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 17 Mar 2009 09:46:35 -0700 Subject: [Ironruby-core] Accessing the return value from a Dsl In-Reply-To: <00fca386a19be4be31614804923432f9@ruby-forum.com> References: <279a6ff2b02a065683fd899fe027a89d@ruby-forum.com> <00fca386a19be4be31614804923432f9@ruby-forum.com> Message-ID: What scope you would like the instance of BuildMetaData to appear in? There are basically 2 possibilities: 1) global Any global Ruby constants will appear in Runtime.Globals dictionary. So you can just assign the instance into a constant: MyInstance = Horn::Core::Dsl::BuildMetaData.new and get it back in C# via Globals.GetVariable("MyInstance") 2) in a DLR execution scope This is a little bit more tricky since Ruby doesn't have a concept of execution scopes (unlike Python that has modules). IronRuby has a hook in method definition that publishes a method defined on a "main" object into the DLR scope. The "main" object is a singleton of Object class that Ruby creates for top-level scope self: > ruby -e 'p self' main In IronRuby you can do this: foo.rb: def self.my_method 123 end C#: var scope = engine.ExecuteFile("foo.rb"); var my_method = scope.GetVariable>("my_method") Console.WriteLine(my_method()); I'm still looking for improvements to DLR scope interop, so this might actually change in future. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Paul Cowan Sent: Monday, March 16, 2009 4:40 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Accessing the return value from a Dsl Hi, For anyone who is interested, I managed to solve this by creating a singleton to house an instance of the BuildMetaData class. My Ruby code ended up looking like this: module MetaBuilder module Dsl module Main def install(name, &block) yield self if block_given? end def get_from(name, url) puts name puts url end def description(desc) meta.metadata.Description = desc end class MetaDataAccessor attr_accessor :metadata private def initialize @metadata = Horn::Core::Dsl::BuildMetaData.new end public def self.instance @@instance ||= new end def self.get_metadata @metadata end end end end end def meta MetaBuilder::Dsl::Main::MetaDataAccessor.instance end class ClrAccessor def get_build_metadata meta.metadata end end include MetaBuilder::Dsl::Main I created the MetaDataAccessor to keep a singleton BuildMetaData instance. I could not work out the C# code to access a fully qualified class that is nested in between modules so I created the ClrAccessor class to provide access from the Clr. My C# code ended up looking like this: var engine = Ruby.CreateEngine(); engine.Runtime.LoadAssembly(typeof(BuildMetaData).Assembly); engine.ExecuteFile(buildFile); var klass = engine.Runtime.Globals.GetVariable("ClrAccessor"); var instance = engine.Operations.CreateInstance(klass); buildMetaData = (BuildMetaData)engine.Operations.InvokeMember(instance, "get_build_metadata"); I am fairly sure there is an easier way but for me it is progress. Any input into this "round the houses" approach would be appreciated. Cheers Paul Paul Cowan wrote: > Hi, > > I am trying to create a Dsl which will have instances that live in > individual Dsl .rb files and then run them from the CLR. > > I want to create and set the values of the Clr object in IronRuby and > then somehow have access to the CLR object after the .rb Dsl instance > file has run. > > Here is my Clr object which is very simple at the moment: > > namespace Horn.Core.Dsl > { > public class BuildMetaData : IBuildMetaData > { > public string Description { get; set; } > } > } > > I have the following module which I am using to specify my Dsl and which > will create an instance of the BuildMetaData specified above: > > module MetaBuilder > module Dsl > module Main > attr_accessor :metadata > def install(name, &block) > @metadata = Horn::Core::Dsl::BuildMetaData.new > yield self if block_given? > end > > def description(desc) > @metadata.Description = desc > end > > def get_metadata > @metadata > end > > end > end > end > > include MetaBuilder::Dsl::Main > > I somehow want to be able to get the @metadata property from the Clr > code after an instance of the Dsl has ran. > > An instance of the Dsl looks like this currently: > > install :horn do > description "A .NET build and dependency manager" > end > > My C# code looks like this currently: > > var engine = Ruby.CreateEngine(); > engine.Runtime.LoadAssembly(typeof(BuildMetaData).Assembly); > engine.ExecuteFile(buildFile); > var klass = engine.Runtime.Globals.GetVariable("get_metadata"); > > Is there anyway I can get at the @metadata property without having to > pollute the Dsl instance? > > For that matter is my approach reasonable or is there perhaps a better > way? > > Thanks in advance > > Paul -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Tue Mar 17 13:26:45 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 17 Mar 2009 10:26:45 -0700 Subject: [Ironruby-core] Code Review: DMO1 In-Reply-To: References: Message-ID: Good catch. Will fix it in the next changeset. Tomas -----Original Message----- From: Curt Hagenlocher Sent: Tuesday, March 17, 2009 9:14 AM To: Tomas Matousek; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: DMO1 In RubyClass.cs, there's an incorrect parameter passed to SetWrongNumber: var actualArgs = RubyMethodGroupBase.NormalizeArguments(metaBuilder, args, SelfCallConvention.NoSelf, false, false); if (actualArgs.Length == 1) { ... } else { metaBuilder.SetWrongNumberOfArgumentsError(actualArgs.Length, 0); <-- should be "1". } Looks good otherwise. -----Original Message----- From: Tomas Matousek Sent: Monday, March 16, 2009 6:38 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: DMO1 tfpt review "/shelveset:DMO1;REDMOND\tomat" Comment : - Checks for an invalid number of arguments is passed to an attribute setter/getter or struct field setter/getter. - Implements correct splatting of arguments to Delegate constructor and enables previously failing tests. - Refactors RubyMethodGroupBase in preparation for obsolete API usage removal. - Fixes a comment and adds OBSOLETE comments to obsolete API of MethodBinder and BindingTarget classes. Tomas From Jimmy.Schementi at microsoft.com Tue Mar 17 14:12:31 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 17 Mar 2009 11:12:31 -0700 Subject: [Ironruby-core] Maruku within IronRuby using rexml/document In-Reply-To: References: Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284CB970D4F7@NA-EXMSG-C116.redmond.corp.microsoft.com> I guess no one has =P REXML is part of the Ruby standard library, and it is pure-Ruby (no C code or anything needed), so it should work, unless we don't support a library that it depends on (which I doubt). Have you tried to run it? ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Grant Archibald Sent: Sunday, March 08, 2009 3:45 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Maruku within IronRuby using rexml/document Hi, I look to make use of Maruku within IronRuby and it has a dependency rexml/document. Has anyone successfully used rexml/document under IronRuby? Thanks - Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Mar 17 14:13:26 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 17 Mar 2009 11:13:26 -0700 Subject: [Ironruby-core] Problem with generic method resolution In-Reply-To: <928de89c0903091657n1d6f836mfadb0d386e25b31f@mail.gmail.com> References: <928de89c0903091657n1d6f836mfadb0d386e25b31f@mail.gmail.com> Message-ID: <5283CA0A4168DF4FBBD71AE9ECA5A3284CB970D4FA@NA-EXMSG-C116.redmond.corp.microsoft.com> Did anyone reply to you? If you haven't submitted a bug on RubyForge, please do. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan Dobrev Sent: Monday, March 09, 2009 7:57 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Problem with generic method resolution Hi, I have found out the following problem: >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' => true >>> include System => Object >>> include System::Linq::Expressions >>> Expression.Call :0: wrong number of arguments (2 for 4) (ArgumentError) >>> Expression.Parameter :0: undefined method `Parameter' for TypeGroup of Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError) Obviously the Call method was recognized but the Parameter one not. Should I file a bug or this is known and will be fixed? Regards, Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Mar 18 01:53:49 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 17 Mar 2009 22:53:49 -0700 Subject: [Ironruby-core] Git Push Message-ID: Today's git push includes the last set of changes to make things easier for everyone developing from Git. It reintroduces MERLIN_ROOT, but MERLIN_ROOT now comes with benefits. We recommend you start your developing by running C:\path\to\Merlin\Main\Languages\Ruby\Scripts\Dev.bat. This script sets MERLIN_ROOT, based on its location in the tree and sets up a VS cmd prompt. It also sets the following items in your path: * Merlin\Main\Languages\Ruby\Scripts: o Contains irtests.bat which starts up multiple command prompts with MSpec and other tests in parallel * Merlin\Main\Languages\Ruby\Scripts\bin: o Contains the iscripts. Igem, irake, iirb, etc. * Merlin\External\Languages\IronRuby\mspec\mspec\bin o Contains the mspec scripts: mspec, mspec-ci, mspec-run, mspec-tag Next this script sets up ~/.mspecrc, which just loads Merlin\External\Languages\IronRuby\mspec\default.mspec to set IR as the default implementation, and creates the following targets: * :core * :lang * :lib * :cli * :interop All of these can now be run via mspec ci -fs :core (for example), see RubySpec's wiki at http://rubyspec.org, or email me to learn more about how to run it. This script also uses doskey to setup Merlin\Main\Scripts\Bat\Alias.txt which contains various aliases to make building and navigating the folder structure easier. We hope these changes make things easier when working on IronRuby from the Git repository. I'm going to try to clean up my Powershell scripts to allow Powershell to be used with these changes too. Until then, you can run dev.bat, and then run powershell to get a Powershell prompt with all of the env setups in place. We would also love to have someone create a bash version of these scripts for those running in *nix land :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Mar 18 02:04:08 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 17 Mar 2009 23:04:08 -0700 Subject: [Ironruby-core] Status of rubygems unit tests In-Reply-To: <967AFDF3-E277-403C-8943-5D124B7D3892@gmail.com> References: <710DF26F214D2B4BB94287123FFE980A2E0D46769E@NA-EXMSG-C104.redmond.corp.microsoft.com> <967AFDF3-E277-403C-8943-5D124B7D3892@gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D467C9B@NA-EXMSG-C104.redmond.corp.microsoft.com> Hi Jirapong, It will be great to pair up with you to push on getting RubyGems tests working with IronRuby. I have written up the instructions for running the tests at http://www.ironruby.net/index.php?title=Documentation/How_do_I_install_additional_gems%3F. Can you build IronRuby (http://wiki.github.com/ironruby/ironruby has instructions, and we are trying to improve it, so do let us know if there are any rough edges), and then walk through the steps to get to the same number of failures. Once both of us have the same setup, we can split up the failures for investigation. Let me know if you run into problems and I can help you through it. Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of jirapong.nanta at gmail.com Sent: Tuesday, March 17, 2009 12:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Status of rubygems unit tests Hello Shri, I would like to help on this. please include my email/IM: + msn: jirapong at msn.com + Skype: jirapong.nanta Thank you, -Jirapong On Mar 17, 2009, at 1:10 PM, Shri Borde wrote: I have been working on making the rubygem unit tests (from git://github.com/vvs/rubygems.git) pass with IronRuby. When I started, the results looked like this. 707 tests, 1170 assertions, 9 failures, 352 errors, 1 skips Half the tests (9+352/707) were failing (or half were passing depending on how you want to look at it). The main culprits were Zlib::GzipWriter, YAML.quick_emit and Zlib::Deflate. After fixing these issues, the results look like this: 707 tests, 1881 assertions, 40 failures, 53 errors, 4 skips It's a good improvement. Errors (where the tests cannot even run properly) account for 8% (53/707), and failures (functionality defects) can now show through - in 5% (40/707) of the tests, for a pass rate of 87%. The errors are because of the following exceptions in descending order of occurrence. The number at the start is the count of how often the error happened. 9: dump format error(9) 8: ERROR: Failed to build gem native extension. 5: dump format error(8) 5: marshal data too short 4: uninitialized constant OpenSSL::X509 2: uninitialized constant OpenSSL::PKey 2: trying to seek on a non-existent stream? 2: ERROR: Failed to build gem native extension. 2: SSL is not installed on this system 2: SocketError: An established connection was aborted by the software in your host machine I will keep pushing on the tests. The failures will be a bit more work to narrow down as some expectation fails, possibly much after a bug introduced a bad result in the system. If anyone wants to help dig into the failures, let me know, and I can help you get set up. Thanks, Shri _______________________________________________ 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 jdeville at microsoft.com Wed Mar 18 03:15:33 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 18 Mar 2009 00:15:33 -0700 Subject: [Ironruby-core] Git Push In-Reply-To: References: Message-ID: I have also updated the Github wiki with this information, and a detailed description of how to run the specs. The spec documentation can be found at http://wiki.github.com/ironruby/ironruby/rubyspec JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Tuesday, March 17, 2009 10:54 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Git Push Today's git push includes the last set of changes to make things easier for everyone developing from Git. It reintroduces MERLIN_ROOT, but MERLIN_ROOT now comes with benefits. We recommend you start your developing by running C:\path\to\Merlin\Main\Languages\Ruby\Scripts\Dev.bat. This script sets MERLIN_ROOT, based on its location in the tree and sets up a VS cmd prompt. It also sets the following items in your path: * Merlin\Main\Languages\Ruby\Scripts: o Contains irtests.bat which starts up multiple command prompts with MSpec and other tests in parallel * Merlin\Main\Languages\Ruby\Scripts\bin: o Contains the iscripts. Igem, irake, iirb, etc. * Merlin\External\Languages\IronRuby\mspec\mspec\bin o Contains the mspec scripts: mspec, mspec-ci, mspec-run, mspec-tag Next this script sets up ~/.mspecrc, which just loads Merlin\External\Languages\IronRuby\mspec\default.mspec to set IR as the default implementation, and creates the following targets: * :core * :lang * :lib * :cli * :interop All of these can now be run via mspec ci -fs :core (for example), see RubySpec's wiki at http://rubyspec.org, or email me to learn more about how to run it. This script also uses doskey to setup Merlin\Main\Scripts\Bat\Alias.txt which contains various aliases to make building and navigating the folder structure easier. We hope these changes make things easier when working on IronRuby from the Git repository. I'm going to try to clean up my Powershell scripts to allow Powershell to be used with these changes too. Until then, you can run dev.bat, and then run powershell to get a Powershell prompt with all of the env setups in place. We would also love to have someone create a bash version of these scripts for those running in *nix land :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From nrstott at gmail.com Wed Mar 18 11:33:00 2009 From: nrstott at gmail.com (Nathan Stott) Date: Wed, 18 Mar 2009 10:33:00 -0500 Subject: [Ironruby-core] problem Message-ID: Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel I assume this has something to do with the fact that newing up an object in IronRuby isn't the same thing as newing it up in C#. Any suggestions or guidance would be appreciated. Here is the important IronRuby code: require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end -------------- next part -------------- An HTML attachment was scrubbed... URL: From jirapong.nanta at gmail.com Wed Mar 18 13:48:35 2009 From: jirapong.nanta at gmail.com (jirapong.nanta at gmail.com) Date: Thu, 19 Mar 2009 00:48:35 +0700 Subject: [Ironruby-core] Status of rubygems unit tests In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D467C9B@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E0D46769E@NA-EXMSG-C104.redmond.corp.microsoft.com> <967AFDF3-E277-403C-8943-5D124B7D3892@gmail.com> <710DF26F214D2B4BB94287123FFE980A2E0D467C9B@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Hello Shri, Following is a result from my laptop. 1. Getting latest source and build with rake successfully (I did clone) 2. try first test with MRI C:\rubygems>ruby.exe c:\rubygems\test\test_gem.rb Loaded suite c:/rubygems/test/test_gem Started ................................................... Finished in 15.828000 seconds. 51 tests, 79 assertions, 0 failures, 0 errors, 0 skips 3. I have to change c: to C: in gem_test.rb because error c:/ruby/lib/ruby/1.8/pathname.rb:709:in `relative_path_from': different prefix: "c:/" and "C:/" (ArgumentError) from c:/ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/ minitest/unit.rb:17 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in `gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in `require' from C:/rubygems/gem_tests.rb:3 4. run ruby c:\rubygems\gem_tests.rb get result: 728 tests, 1714 assertions, 13 failures, 229 errors, 4 skips 5. SET GEM_PATH=C:\ruby\lib\ruby\gems\1.8 6. edit unit.rb line 47 and location e method 7. run ir.exe gem_tests.rb result: 728 tests, 1130 assertions, 4 failures, 415 errors, 4 skips my gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.1 - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8 - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe - EXECUTABLE DIRECTORY: c:/ruby/bin - RUBYGEMS PLATFORMS: - ruby - x86-mswin32-60 - GEM PATHS: - c:/ruby/lib/ruby/gems/1.8 - C:/ruby/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/ Thank you, -Jirapong On Mar 18, 2009, at 1:04 PM, Shri Borde wrote: > Hi Jirapong, It will be great to pair up with you to push on getting > RubyGems tests working with IronRuby. I have written up the > instructions for running the tests at http://www.ironruby.net/index.php?title=Documentation/How_do_I_install_additional_gems%3F > . Can you build IronRuby (http://wiki.github.com/ironruby/ironruby > has instructions, and we are trying to improve it, so do let us know > if there are any rough edges), and then walk through the steps to > get to the same number of failures. Once both of us have the same > setup, we can split up the failures for investigation. Let me know > if you run into problems and I can help you through it. > > Thanks, > Shri > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org > ] On Behalf Of jirapong.nanta at gmail.com > Sent: Tuesday, March 17, 2009 12:13 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Status of rubygems unit tests > > Hello Shri, > I would like to help on this. > > please include my email/IM: > + msn: jirapong at msn.com > + Skype: jirapong.nanta > > Thank you, > -Jirapong > > On Mar 17, 2009, at 1:10 PM, Shri Borde wrote: > > > I have been working on making the rubygem unit tests (from git:// > github.com/vvs/rubygems.git) pass with IronRuby. When I started, the > results looked like this. > > 707 tests, 1170 assertions, 9 failures, 352 errors, 1 skips > > Half the tests (9+352/707) were failing (or half were passing > depending on how you want to look at it). The main culprits were > Zlib::GzipWriter, YAML.quick_emit and Zlib::Deflate. After fixing > these issues, the results look like this: > > 707 tests, 1881 assertions, 40 failures, 53 errors, 4 skips > > It?s a good improvement. Errors (where the tests cannot even run > properly) account for 8% (53/707), and failures (functionality > defects) can now show through ? in 5% (40/707) of the tests, for a > pass rate of 87%. The errors are because of the following exceptions > in descending order of occurrence. The number at the start is the > count of how often the error happened. > > 9: dump format error(9) > 8: ERROR: Failed to build gem native extension. > 5: dump format error(8) > 5: marshal data too short > 4: uninitialized constant OpenSSL::X509 > 2: uninitialized constant OpenSSL::PKey > 2: trying to seek on a non-existent stream? > 2: ERROR: Failed to build gem native extension. > 2: SSL is not installed on this system > 2: SocketError: An established connection was aborted by the > software in your host machine > > I will keep pushing on the tests. The failures will be a bit more > work to narrow down as some expectation fails, possibly much after a > bug introduced a bad result in the system. If anyone wants to help > dig into the failures, let me know, and I can help you get set up. > > Thanks, > Shri > > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Wed Mar 18 13:52:55 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 18 Mar 2009 10:52:55 -0700 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: How do you run this script? From command line (ir.exe script.rb) or do you use hosting API? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stott Sent: Wednesday, March 18, 2009 8:33 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problem Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel I assume this has something to do with the fact that newing up an object in IronRuby isn't the same thing as newing it up in C#. Any suggestions or guidance would be appreciated. Here is the important IronRuby code: require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end -------------- next part -------------- An HTML attachment was scrubbed... URL: From nrstott at gmail.com Wed Mar 18 13:57:54 2009 From: nrstott at gmail.com (Nathan Stott) Date: Wed, 18 Mar 2009 12:57:54 -0500 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: I'm using the hosting API. This is the entire method: public void Load(IWindsorContainer container, TextReader reader) { var runtime = Ruby.CreateRuntime(); ScriptEngine engine = Ruby.GetEngine(runtime); var ctx = Ruby.GetExecutionContext(runtime); ctx.DefineReadOnlyGlobalVariable("container", container); string header = @"require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end"; ScriptSource headerSource = engine.CreateScriptSourceFromString(header); headerSource.Execute(); string containerScript = reader.ReadToEnd(); ScriptSource source = engine.CreateScriptSourceFromString(containerScript); source.Execute(); } } 2009/3/18 Tomas Matousek > How do you run this script? From command line (ir.exe script.rb) or do > you use hosting API? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott > *Sent:* Wednesday, March 18, 2009 8:33 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problem > > > > Hi all. I have a question that probably belongs on a users mailing list > but I could not find one. > > > > I get the following error when trying to use my IronRuby windsor > registration script: > > * > System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel > * > > > > I assume this has something to do with the fact that newing up an object in > IronRuby isn't the same thing as newing it up in C#. > > > > Any suggestions or guidance would be appreciated. > > > > Here is the important IronRuby code: > > > > require 'Castle.Windsor' > > require 'Castle.MicroKernel' > > require 'Castle.Core' > > > > ComponentRegistration = > Castle::MicroKernel::Registration::ComponentRegistration > > ComponentModel = Castle::Core::ComponentModel > > Parameter = Castle::MicroKernel::Registration::Parameter > > Component = Castle::MicroKernel::Registration::Component > > > > def component(options) > > throw :classIsRequired if !options.has_key?(:class) > > > > klass = options[:class].to_clr_type > > > > if options.has_key?(:service) > > service = options[:service].to_clr_type > > else > > service = klass > > end > > > > if options.has_key?(:name) > > name = options[:name] > > else > > name = klass.class.name.underscore.lowercase > > end > > > > model = ComponentModel.new(name, service, klass) > > > > if options.has_key?(:parameters) > > parameters = options[:parameters] > > parameters.each do |p| > > model.Parameters.Add(p.key, p.value) > > end > > end > > > > $container.Register(ComponentRegistration.new(model)) > > end > > > > > > _______________________________________________ > 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 ivan at flanders.co.nz Wed Mar 18 14:50:26 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 18 Mar 2009 19:50:26 +0100 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: You can try using the LoadAssembly method on the runtime object runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); that should require the assembly a little nicer I think you can also use load_assembly 'Castle.Windsor' http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 2009/3/18 Nathan Stott > I'm using the hosting API. > This is the entire method: > public void Load(IWindsorContainer container, TextReader reader) > { > var runtime = Ruby.CreateRuntime(); > ScriptEngine engine = Ruby.GetEngine(runtime); > var ctx = Ruby.GetExecutionContext(runtime); > ctx.DefineReadOnlyGlobalVariable("container", container); > > string header = > @"require 'Castle.Windsor' > require 'Castle.MicroKernel' > require 'Castle.Core' > > ComponentRegistration = > Castle::MicroKernel::Registration::ComponentRegistration > ComponentModel = Castle::Core::ComponentModel > Parameter = Castle::MicroKernel::Registration::Parameter > Component = Castle::MicroKernel::Registration::Component > > def component(options) > throw :classIsRequired if !options.has_key?(:class) > klass = options[:class].to_clr_type > if options.has_key?(:service) > service = options[:service].to_clr_type > else > service = klass > end > if options.has_key?(:name) > name = options[:name] > else > name = klass.class.name.underscore.lowercase > end > model = ComponentModel.new(name, service, klass) > if options.has_key?(:parameters) > parameters = options[:parameters] > parameters.each do |p| > model.Parameters.Add(p.key, p.value) > end > end > $container.Register(ComponentRegistration.new(model)) > end"; > > ScriptSource headerSource = engine.CreateScriptSourceFromString(header); > headerSource.Execute(); > > string containerScript = reader.ReadToEnd(); > ScriptSource source = > engine.CreateScriptSourceFromString(containerScript); > source.Execute(); > } > } > > 2009/3/18 Tomas Matousek > >> How do you run this script? From command line (ir.exe script.rb) or do >> you use hosting API? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >> *Sent:* Wednesday, March 18, 2009 8:33 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* [Ironruby-core] problem >> >> >> >> Hi all. I have a question that probably belongs on a users mailing list >> but I could not find one. >> >> >> >> I get the following error when trying to use my IronRuby windsor >> registration script: >> >> * >> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >> * >> >> >> >> I assume this has something to do with the fact that newing up an object >> in IronRuby isn't the same thing as newing it up in C#. >> >> >> >> Any suggestions or guidance would be appreciated. >> >> >> >> Here is the important IronRuby code: >> >> >> >> require 'Castle.Windsor' >> >> require 'Castle.MicroKernel' >> >> require 'Castle.Core' >> >> >> >> ComponentRegistration = >> Castle::MicroKernel::Registration::ComponentRegistration >> >> ComponentModel = Castle::Core::ComponentModel >> >> Parameter = Castle::MicroKernel::Registration::Parameter >> >> Component = Castle::MicroKernel::Registration::Component >> >> >> >> def component(options) >> >> throw :classIsRequired if !options.has_key?(:class) >> >> >> >> klass = options[:class].to_clr_type >> >> >> >> if options.has_key?(:service) >> >> service = options[:service].to_clr_type >> >> else >> >> service = klass >> >> end >> >> >> >> if options.has_key?(:name) >> >> name = options[:name] >> >> else >> >> name = klass.class.name.underscore.lowercase >> >> end >> >> >> >> model = ComponentModel.new(name, service, klass) >> >> >> >> if options.has_key?(:parameters) >> >> parameters = options[:parameters] >> >> parameters.each do |p| >> >> model.Parameters.Add(p.key, p.value) >> >> end >> >> end >> >> >> >> $container.Register(ComponentRegistration.new(model)) >> >> end >> >> >> >> >> >> _______________________________________________ >> 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 nrstott at gmail.com Wed Mar 18 14:55:15 2009 From: nrstott at gmail.com (Nathan Stott) Date: Wed, 18 Mar 2009 13:55:15 -0500 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: I tried that and no luck. It doesn't seem that the assembly is not being loaded properly. I'm able to use methods on the objects fine in the script. However, it is that last call to the $container.Register(ComponentRegistration.new(model)) where for some reason it won't work. ComponentRegistration.new() takes a ComponentModel. The error seems to indicate that it is receiving a ComponentModel even with the same namespace prefixes but somehow it's not able to use it. 2009/3/18 Ivan Porto Carrero > You can try using the LoadAssembly method on the runtime object > > runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); > > that should require the assembly a little nicer > > I think you can also use load_assembly 'Castle.Windsor' > > > http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 > > http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 > > http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 > > > > 2009/3/18 Nathan Stott > > I'm using the hosting API. >> This is the entire method: >> public void Load(IWindsorContainer container, TextReader reader) >> { >> var runtime = Ruby.CreateRuntime(); >> ScriptEngine engine = Ruby.GetEngine(runtime); >> var ctx = Ruby.GetExecutionContext(runtime); >> ctx.DefineReadOnlyGlobalVariable("container", container); >> >> string header = >> @"require 'Castle.Windsor' >> require 'Castle.MicroKernel' >> require 'Castle.Core' >> >> ComponentRegistration = >> Castle::MicroKernel::Registration::ComponentRegistration >> ComponentModel = Castle::Core::ComponentModel >> Parameter = Castle::MicroKernel::Registration::Parameter >> Component = Castle::MicroKernel::Registration::Component >> >> def component(options) >> throw :classIsRequired if !options.has_key?(:class) >> klass = options[:class].to_clr_type >> if options.has_key?(:service) >> service = options[:service].to_clr_type >> else >> service = klass >> end >> if options.has_key?(:name) >> name = options[:name] >> else >> name = klass.class.name.underscore.lowercase >> end >> model = ComponentModel.new(name, service, klass) >> if options.has_key?(:parameters) >> parameters = options[:parameters] >> parameters.each do |p| >> model.Parameters.Add(p.key, p.value) >> end >> end >> $container.Register(ComponentRegistration.new(model)) >> end"; >> >> ScriptSource headerSource = engine.CreateScriptSourceFromString(header); >> headerSource.Execute(); >> >> string containerScript = reader.ReadToEnd(); >> ScriptSource source = >> engine.CreateScriptSourceFromString(containerScript); >> source.Execute(); >> } >> } >> >> 2009/3/18 Tomas Matousek >> >>> How do you run this script? From command line (ir.exe script.rb) or do >>> you use hosting API? >>> >>> >>> >>> Tomas >>> >>> >>> >>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >>> *Sent:* Wednesday, March 18, 2009 8:33 AM >>> *To:* ironruby-core at rubyforge.org >>> *Subject:* [Ironruby-core] problem >>> >>> >>> >>> Hi all. I have a question that probably belongs on a users mailing list >>> but I could not find one. >>> >>> >>> >>> I get the following error when trying to use my IronRuby windsor >>> registration script: >>> >>> * >>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>> * >>> >>> >>> >>> I assume this has something to do with the fact that newing up an object >>> in IronRuby isn't the same thing as newing it up in C#. >>> >>> >>> >>> Any suggestions or guidance would be appreciated. >>> >>> >>> >>> Here is the important IronRuby code: >>> >>> >>> >>> require 'Castle.Windsor' >>> >>> require 'Castle.MicroKernel' >>> >>> require 'Castle.Core' >>> >>> >>> >>> ComponentRegistration = >>> Castle::MicroKernel::Registration::ComponentRegistration >>> >>> ComponentModel = Castle::Core::ComponentModel >>> >>> Parameter = Castle::MicroKernel::Registration::Parameter >>> >>> Component = Castle::MicroKernel::Registration::Component >>> >>> >>> >>> def component(options) >>> >>> throw :classIsRequired if !options.has_key?(:class) >>> >>> >>> >>> klass = options[:class].to_clr_type >>> >>> >>> >>> if options.has_key?(:service) >>> >>> service = options[:service].to_clr_type >>> >>> else >>> >>> service = klass >>> >>> end >>> >>> >>> >>> if options.has_key?(:name) >>> >>> name = options[:name] >>> >>> else >>> >>> name = klass.class.name.underscore.lowercase >>> >>> end >>> >>> >>> >>> model = ComponentModel.new(name, service, klass) >>> >>> >>> >>> if options.has_key?(:parameters) >>> >>> parameters = options[:parameters] >>> >>> parameters.each do |p| >>> >>> model.Parameters.Add(p.key, p.value) >>> >>> end >>> >>> end >>> >>> >>> >>> $container.Register(ComponentRegistration.new(model)) >>> >>> end >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >> >> > > _______________________________________________ > 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 nrstott at gmail.com Wed Mar 18 14:57:12 2009 From: nrstott at gmail.com (Nathan Stott) Date: Wed, 18 Mar 2009 13:57:12 -0500 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: I dont know if this helps, but this is the full output of the test: ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : Failed CT_INIT: Object UPDATED: Object CreateInstanceSingleton affected=1 rules=0 UPDATED: Object CreateInstanceSingleton affected=1 rules=0 CT_INIT: File::Constants CT_INIT: IO CT_INIT: File UPDATED: Object CreateInstanceSingleton affected=1 rules=0 MT_INIT: Kernel MT_INIT: Object MT_INIT: MT_INIT: Module MT_INIT: Class MT_INIT: UPDATED: Object CreateInstanceSingleton affected=5 rules=1 MT_INIT: LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' MT_INIT: Symbol MT_INIT: Enumerable MT_INIT: Hash MT_INIT: Microsoft::Scripting::Actions::TypeTracker MT_INIT: Microsoft::Scripting::Actions::TypeGroup System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;component;;10;(Closure , Object , Proc , Object ) at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;#;;0;(Closure , Scope , LanguageContext ) at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 at Microsoft.Scripting.SourceUnit.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 at Microsoft.Scripting.Hosting.ScriptSource.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer container, TextReader reader) in ComponentLoader.cs: line 64 at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext .ShouldRegisterComponent() in ComponentLoaderRegisteringComponentContext.cs: line 26 On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott wrote: > I tried that and no luck. > It doesn't seem that the assembly is not being loaded properly. I'm able > to use methods on the objects fine in the script. However, it is that last > call to the $container.Register(ComponentRegistration.new(model)) where > for some reason it won't work. > > ComponentRegistration.new() takes a ComponentModel. The error seems to > indicate that it is receiving a ComponentModel even with the same namespace > prefixes but somehow it's not able to use it. > > 2009/3/18 Ivan Porto Carrero > > You can try using the LoadAssembly method on the runtime object >> >> runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); >> >> that should require the assembly a little nicer >> >> I think you can also use load_assembly 'Castle.Windsor' >> >> >> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 >> >> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 >> >> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 >> >> >> >> 2009/3/18 Nathan Stott >> >> I'm using the hosting API. >>> This is the entire method: >>> public void Load(IWindsorContainer container, TextReader reader) >>> { >>> var runtime = Ruby.CreateRuntime(); >>> ScriptEngine engine = Ruby.GetEngine(runtime); >>> var ctx = Ruby.GetExecutionContext(runtime); >>> ctx.DefineReadOnlyGlobalVariable("container", container); >>> >>> string header = >>> @"require 'Castle.Windsor' >>> require 'Castle.MicroKernel' >>> require 'Castle.Core' >>> >>> ComponentRegistration = >>> Castle::MicroKernel::Registration::ComponentRegistration >>> ComponentModel = Castle::Core::ComponentModel >>> Parameter = Castle::MicroKernel::Registration::Parameter >>> Component = Castle::MicroKernel::Registration::Component >>> >>> def component(options) >>> throw :classIsRequired if !options.has_key?(:class) >>> klass = options[:class].to_clr_type >>> if options.has_key?(:service) >>> service = options[:service].to_clr_type >>> else >>> service = klass >>> end >>> if options.has_key?(:name) >>> name = options[:name] >>> else >>> name = klass.class.name.underscore.lowercase >>> end >>> model = ComponentModel.new(name, service, klass) >>> if options.has_key?(:parameters) >>> parameters = options[:parameters] >>> parameters.each do |p| >>> model.Parameters.Add(p.key, p.value) >>> end >>> end >>> $container.Register(ComponentRegistration.new(model)) >>> end"; >>> >>> ScriptSource headerSource = engine.CreateScriptSourceFromString(header); >>> headerSource.Execute(); >>> >>> string containerScript = reader.ReadToEnd(); >>> ScriptSource source = >>> engine.CreateScriptSourceFromString(containerScript); >>> source.Execute(); >>> } >>> } >>> >>> 2009/3/18 Tomas Matousek >>> >>>> How do you run this script? From command line (ir.exe script.rb) or do >>>> you use hosting API? >>>> >>>> >>>> >>>> Tomas >>>> >>>> >>>> >>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >>>> *Sent:* Wednesday, March 18, 2009 8:33 AM >>>> *To:* ironruby-core at rubyforge.org >>>> *Subject:* [Ironruby-core] problem >>>> >>>> >>>> >>>> Hi all. I have a question that probably belongs on a users mailing list >>>> but I could not find one. >>>> >>>> >>>> >>>> I get the following error when trying to use my IronRuby windsor >>>> registration script: >>>> >>>> * >>>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>>> * >>>> >>>> >>>> >>>> I assume this has something to do with the fact that newing up an object >>>> in IronRuby isn't the same thing as newing it up in C#. >>>> >>>> >>>> >>>> Any suggestions or guidance would be appreciated. >>>> >>>> >>>> >>>> Here is the important IronRuby code: >>>> >>>> >>>> >>>> require 'Castle.Windsor' >>>> >>>> require 'Castle.MicroKernel' >>>> >>>> require 'Castle.Core' >>>> >>>> >>>> >>>> ComponentRegistration = >>>> Castle::MicroKernel::Registration::ComponentRegistration >>>> >>>> ComponentModel = Castle::Core::ComponentModel >>>> >>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>> >>>> Component = Castle::MicroKernel::Registration::Component >>>> >>>> >>>> >>>> def component(options) >>>> >>>> throw :classIsRequired if !options.has_key?(:class) >>>> >>>> >>>> >>>> klass = options[:class].to_clr_type >>>> >>>> >>>> >>>> if options.has_key?(:service) >>>> >>>> service = options[:service].to_clr_type >>>> >>>> else >>>> >>>> service = klass >>>> >>>> end >>>> >>>> >>>> >>>> if options.has_key?(:name) >>>> >>>> name = options[:name] >>>> >>>> else >>>> >>>> name = klass.class.name.underscore.lowercase >>>> >>>> end >>>> >>>> >>>> >>>> model = ComponentModel.new(name, service, klass) >>>> >>>> >>>> >>>> if options.has_key?(:parameters) >>>> >>>> parameters = options[:parameters] >>>> >>>> parameters.each do |p| >>>> >>>> model.Parameters.Add(p.key, >>>> p.value) >>>> >>>> end >>>> >>>> end >>>> >>>> >>>> >>>> $container.Register(ComponentRegistration.new(model)) >>>> >>>> end >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >> >> _______________________________________________ >> 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 jdeville at microsoft.com Wed Mar 18 15:11:56 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 18 Mar 2009 12:11:56 -0700 Subject: [Ironruby-core] Code Review: version03 Message-ID: tfpt review "/shelveset:version03;REDMOND\jdeville" Comment : Updates IronRuby version to 0.3 (to be more accurate) and fixes a broken test in File.expand_path -------------- next part -------------- A non-text attachment was scrubbed... Name: version03.diff Type: application/octet-stream Size: 3754 bytes Desc: version03.diff URL: From ivan at flanders.co.nz Wed Mar 18 15:22:30 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 18 Mar 2009 20:22:30 +0100 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: Are you using resharper for your unit tests? 2009/3/18 Nathan Stott > I dont know if this helps, but this is the full output of the test: > > ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : Failed > CT_INIT: Object > > UPDATED: Object CreateInstanceSingleton affected=1 rules=0 > > UPDATED: Object CreateInstanceSingleton affected=1 rules=0 > CT_INIT: File::Constants > CT_INIT: IO > CT_INIT: File > > UPDATED: Object CreateInstanceSingleton affected=1 rules=0 > MT_INIT: Kernel > MT_INIT: Object > MT_INIT: > MT_INIT: Module > MT_INIT: Class > MT_INIT: > > UPDATED: Object CreateInstanceSingleton affected=5 rules=1 > MT_INIT: > > LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' > MT_INIT: Symbol > MT_INIT: Enumerable > MT_INIT: Hash > MT_INIT: Microsoft::Scripting::Actions::TypeTracker > MT_INIT: Microsoft::Scripting::Actions::TypeGroup > > System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel > at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object ) > at System.Dynamic.UpdateDelegates.UpdateAndExecute3( > CallSite site, T0 arg0, T1 arg1, T2 arg2) in > C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 > at ??;component;;10;(Closure , Object , Proc , Object ) > at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) > at System.Dynamic.UpdateDelegates.UpdateAndExecute3( > CallSite site, T0 arg0, T1 arg1, T2 arg2) in > C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 > at ??;#;;0;(Closure , Scope , LanguageContext ) > at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in > C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 > at Microsoft.Scripting.SourceUnit.Execute() in > C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 > at Microsoft.Scripting.Hosting.ScriptSource.Execute() in > C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 > at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer > container, TextReader reader) in ComponentLoader.cs: line 64 > at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext > .ShouldRegisterComponent() in > ComponentLoaderRegisteringComponentContext.cs: line 26 > > On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott wrote: > >> I tried that and no luck. >> It doesn't seem that the assembly is not being loaded properly. I'm able >> to use methods on the objects fine in the script. However, it is that last >> call to the $container.Register(ComponentRegistration.new(model)) where >> for some reason it won't work. >> >> ComponentRegistration.new() takes a ComponentModel. The error seems to >> indicate that it is receiving a ComponentModel even with the same namespace >> prefixes but somehow it's not able to use it. >> >> 2009/3/18 Ivan Porto Carrero >> >> You can try using the LoadAssembly method on the runtime object >>> >>> runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); >>> >>> that should require the assembly a little nicer >>> >>> I think you can also use load_assembly 'Castle.Windsor' >>> >>> >>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 >>> >>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 >>> >>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 >>> >>> >>> >>> 2009/3/18 Nathan Stott >>> >>> I'm using the hosting API. >>>> This is the entire method: >>>> public void Load(IWindsorContainer container, TextReader reader) >>>> { >>>> var runtime = Ruby.CreateRuntime(); >>>> ScriptEngine engine = Ruby.GetEngine(runtime); >>>> var ctx = Ruby.GetExecutionContext(runtime); >>>> ctx.DefineReadOnlyGlobalVariable("container", container); >>>> >>>> string header = >>>> @"require 'Castle.Windsor' >>>> require 'Castle.MicroKernel' >>>> require 'Castle.Core' >>>> >>>> ComponentRegistration = >>>> Castle::MicroKernel::Registration::ComponentRegistration >>>> ComponentModel = Castle::Core::ComponentModel >>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>> Component = Castle::MicroKernel::Registration::Component >>>> >>>> def component(options) >>>> throw :classIsRequired if !options.has_key?(:class) >>>> klass = options[:class].to_clr_type >>>> if options.has_key?(:service) >>>> service = options[:service].to_clr_type >>>> else >>>> service = klass >>>> end >>>> if options.has_key?(:name) >>>> name = options[:name] >>>> else >>>> name = klass.class.name.underscore.lowercase >>>> end >>>> model = ComponentModel.new(name, service, klass) >>>> if options.has_key?(:parameters) >>>> parameters = options[:parameters] >>>> parameters.each do |p| >>>> model.Parameters.Add(p.key, p.value) >>>> end >>>> end >>>> $container.Register(ComponentRegistration.new(model)) >>>> end"; >>>> >>>> ScriptSource headerSource = engine.CreateScriptSourceFromString(header); >>>> headerSource.Execute(); >>>> >>>> string containerScript = reader.ReadToEnd(); >>>> ScriptSource source = >>>> engine.CreateScriptSourceFromString(containerScript); >>>> source.Execute(); >>>> } >>>> } >>>> >>>> 2009/3/18 Tomas Matousek >>>> >>>>> How do you run this script? From command line (ir.exe script.rb) or >>>>> do you use hosting API? >>>>> >>>>> >>>>> >>>>> Tomas >>>>> >>>>> >>>>> >>>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >>>>> *Sent:* Wednesday, March 18, 2009 8:33 AM >>>>> *To:* ironruby-core at rubyforge.org >>>>> *Subject:* [Ironruby-core] problem >>>>> >>>>> >>>>> >>>>> Hi all. I have a question that probably belongs on a users mailing >>>>> list but I could not find one. >>>>> >>>>> >>>>> >>>>> I get the following error when trying to use my IronRuby windsor >>>>> registration script: >>>>> >>>>> * >>>>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>>>> * >>>>> >>>>> >>>>> >>>>> I assume this has something to do with the fact that newing up an >>>>> object in IronRuby isn't the same thing as newing it up in C#. >>>>> >>>>> >>>>> >>>>> Any suggestions or guidance would be appreciated. >>>>> >>>>> >>>>> >>>>> Here is the important IronRuby code: >>>>> >>>>> >>>>> >>>>> require 'Castle.Windsor' >>>>> >>>>> require 'Castle.MicroKernel' >>>>> >>>>> require 'Castle.Core' >>>>> >>>>> >>>>> >>>>> ComponentRegistration = >>>>> Castle::MicroKernel::Registration::ComponentRegistration >>>>> >>>>> ComponentModel = Castle::Core::ComponentModel >>>>> >>>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>>> >>>>> Component = Castle::MicroKernel::Registration::Component >>>>> >>>>> >>>>> >>>>> def component(options) >>>>> >>>>> throw :classIsRequired if !options.has_key?(:class) >>>>> >>>>> >>>>> >>>>> klass = options[:class].to_clr_type >>>>> >>>>> >>>>> >>>>> if options.has_key?(:service) >>>>> >>>>> service = options[:service].to_clr_type >>>>> >>>>> else >>>>> >>>>> service = klass >>>>> >>>>> end >>>>> >>>>> >>>>> >>>>> if options.has_key?(:name) >>>>> >>>>> name = options[:name] >>>>> >>>>> else >>>>> >>>>> name = klass.class.name.underscore.lowercase >>>>> >>>>> end >>>>> >>>>> >>>>> >>>>> model = ComponentModel.new(name, service, klass) >>>>> >>>>> >>>>> >>>>> if options.has_key?(:parameters) >>>>> >>>>> parameters = options[:parameters] >>>>> >>>>> parameters.each do |p| >>>>> >>>>> model.Parameters.Add(p.key, >>>>> p.value) >>>>> >>>>> end >>>>> >>>>> end >>>>> >>>>> >>>>> >>>>> $container.Register(ComponentRegistration.new(model)) >>>>> >>>>> end >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>> >>> _______________________________________________ >>> 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 ivan at flanders.co.nz Wed Mar 18 15:23:02 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 18 Mar 2009 20:23:02 +0100 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: If so turn off shadow copy assemblies under Resharper -> options -> unit testing On Wed, Mar 18, 2009 at 8:22 PM, Ivan Porto Carrero wrote: > Are you using resharper for your unit tests? > > > > 2009/3/18 Nathan Stott > >> I dont know if this helps, but this is the full output of the test: >> >> ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : >> Failed CT_INIT: Object >> >> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >> >> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >> CT_INIT: File::Constants >> CT_INIT: IO >> CT_INIT: File >> >> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >> MT_INIT: Kernel >> MT_INIT: Object >> MT_INIT: >> MT_INIT: Module >> MT_INIT: Class >> MT_INIT: >> >> UPDATED: Object CreateInstanceSingleton affected=5 rules=1 >> MT_INIT: >> >> LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' >> MT_INIT: Symbol >> MT_INIT: Enumerable >> MT_INIT: Hash >> MT_INIT: Microsoft::Scripting::Actions::TypeTracker >> MT_INIT: Microsoft::Scripting::Actions::TypeGroup >> >> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >> at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object >> ) >> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >> at ??;component;;10;(Closure , Object , Proc , Object ) >> at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) >> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >> at ??;#;;0;(Closure , Scope , LanguageContext ) >> at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in >> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 >> at Microsoft.Scripting.SourceUnit.Execute() in >> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 >> at Microsoft.Scripting.Hosting.ScriptSource.Execute() in >> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 >> at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer >> container, TextReader reader) in ComponentLoader.cs: line 64 >> at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext >> .ShouldRegisterComponent() in >> ComponentLoaderRegisteringComponentContext.cs: line 26 >> >> On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott wrote: >> >>> I tried that and no luck. >>> It doesn't seem that the assembly is not being loaded properly. I'm able >>> to use methods on the objects fine in the script. However, it is that last >>> call to the $container.Register(ComponentRegistration.new(model)) where >>> for some reason it won't work. >>> >>> ComponentRegistration.new() takes a ComponentModel. The error seems to >>> indicate that it is receiving a ComponentModel even with the same namespace >>> prefixes but somehow it's not able to use it. >>> >>> 2009/3/18 Ivan Porto Carrero >>> >>> You can try using the LoadAssembly method on the runtime object >>>> >>>> runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); >>>> >>>> that should require the assembly a little nicer >>>> >>>> I think you can also use load_assembly 'Castle.Windsor' >>>> >>>> >>>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 >>>> >>>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 >>>> >>>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 >>>> >>>> >>>> >>>> 2009/3/18 Nathan Stott >>>> >>>> I'm using the hosting API. >>>>> This is the entire method: >>>>> public void Load(IWindsorContainer container, TextReader reader) >>>>> { >>>>> var runtime = Ruby.CreateRuntime(); >>>>> ScriptEngine engine = Ruby.GetEngine(runtime); >>>>> var ctx = Ruby.GetExecutionContext(runtime); >>>>> ctx.DefineReadOnlyGlobalVariable("container", container); >>>>> >>>>> string header = >>>>> @"require 'Castle.Windsor' >>>>> require 'Castle.MicroKernel' >>>>> require 'Castle.Core' >>>>> >>>>> ComponentRegistration = >>>>> Castle::MicroKernel::Registration::ComponentRegistration >>>>> ComponentModel = Castle::Core::ComponentModel >>>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>>> Component = Castle::MicroKernel::Registration::Component >>>>> >>>>> def component(options) >>>>> throw :classIsRequired if !options.has_key?(:class) >>>>> klass = options[:class].to_clr_type >>>>> if options.has_key?(:service) >>>>> service = options[:service].to_clr_type >>>>> else >>>>> service = klass >>>>> end >>>>> if options.has_key?(:name) >>>>> name = options[:name] >>>>> else >>>>> name = klass.class.name.underscore.lowercase >>>>> end >>>>> model = ComponentModel.new(name, service, klass) >>>>> if options.has_key?(:parameters) >>>>> parameters = options[:parameters] >>>>> parameters.each do |p| >>>>> model.Parameters.Add(p.key, p.value) >>>>> end >>>>> end >>>>> $container.Register(ComponentRegistration.new(model)) >>>>> end"; >>>>> >>>>> ScriptSource headerSource = >>>>> engine.CreateScriptSourceFromString(header); >>>>> headerSource.Execute(); >>>>> >>>>> string containerScript = reader.ReadToEnd(); >>>>> ScriptSource source = >>>>> engine.CreateScriptSourceFromString(containerScript); >>>>> source.Execute(); >>>>> } >>>>> } >>>>> >>>>> 2009/3/18 Tomas Matousek >>>>> >>>>>> How do you run this script? From command line (ir.exe script.rb) or >>>>>> do you use hosting API? >>>>>> >>>>>> >>>>>> >>>>>> Tomas >>>>>> >>>>>> >>>>>> >>>>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >>>>>> *Sent:* Wednesday, March 18, 2009 8:33 AM >>>>>> *To:* ironruby-core at rubyforge.org >>>>>> *Subject:* [Ironruby-core] problem >>>>>> >>>>>> >>>>>> >>>>>> Hi all. I have a question that probably belongs on a users mailing >>>>>> list but I could not find one. >>>>>> >>>>>> >>>>>> >>>>>> I get the following error when trying to use my IronRuby windsor >>>>>> registration script: >>>>>> >>>>>> * >>>>>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>>>>> * >>>>>> >>>>>> >>>>>> >>>>>> I assume this has something to do with the fact that newing up an >>>>>> object in IronRuby isn't the same thing as newing it up in C#. >>>>>> >>>>>> >>>>>> >>>>>> Any suggestions or guidance would be appreciated. >>>>>> >>>>>> >>>>>> >>>>>> Here is the important IronRuby code: >>>>>> >>>>>> >>>>>> >>>>>> require 'Castle.Windsor' >>>>>> >>>>>> require 'Castle.MicroKernel' >>>>>> >>>>>> require 'Castle.Core' >>>>>> >>>>>> >>>>>> >>>>>> ComponentRegistration = >>>>>> Castle::MicroKernel::Registration::ComponentRegistration >>>>>> >>>>>> ComponentModel = Castle::Core::ComponentModel >>>>>> >>>>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>>>> >>>>>> Component = Castle::MicroKernel::Registration::Component >>>>>> >>>>>> >>>>>> >>>>>> def component(options) >>>>>> >>>>>> throw :classIsRequired if !options.has_key?(:class) >>>>>> >>>>>> >>>>>> >>>>>> klass = options[:class].to_clr_type >>>>>> >>>>>> >>>>>> >>>>>> if options.has_key?(:service) >>>>>> >>>>>> service = options[:service].to_clr_type >>>>>> >>>>>> else >>>>>> >>>>>> service = klass >>>>>> >>>>>> end >>>>>> >>>>>> >>>>>> >>>>>> if options.has_key?(:name) >>>>>> >>>>>> name = options[:name] >>>>>> >>>>>> else >>>>>> >>>>>> name = klass.class.name.underscore.lowercase >>>>>> >>>>>> end >>>>>> >>>>>> >>>>>> >>>>>> model = ComponentModel.new(name, service, klass) >>>>>> >>>>>> >>>>>> >>>>>> if options.has_key?(:parameters) >>>>>> >>>>>> parameters = options[:parameters] >>>>>> >>>>>> parameters.each do |p| >>>>>> >>>>>> model.Parameters.Add(p.key, >>>>>> p.value) >>>>>> >>>>>> end >>>>>> >>>>>> end >>>>>> >>>>>> >>>>>> >>>>>> $container.Register(ComponentRegistration.new(model)) >>>>>> >>>>>> end >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> 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 nrstott at gmail.com Wed Mar 18 15:55:22 2009 From: nrstott at gmail.com (Nathan Stott) Date: Wed, 18 Mar 2009 14:55:22 -0500 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: Good call Ivan. The LoadAssembly apparently was doing the trick! Thanks for the help. BTW, was this the right mailing list for this question? Is there a users mailing list? 2009/3/18 Ivan Porto Carrero > If so turn off shadow copy assemblies under Resharper -> options -> unit > testing > > On Wed, Mar 18, 2009 at 8:22 PM, Ivan Porto Carrero wrote: > >> Are you using resharper for your unit tests? >> >> >> >> 2009/3/18 Nathan Stott >> >>> I dont know if this helps, but this is the full output of the test: >>> >>> ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : >>> Failed CT_INIT: Object >>> >>> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >>> >>> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >>> CT_INIT: File::Constants >>> CT_INIT: IO >>> CT_INIT: File >>> >>> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >>> MT_INIT: Kernel >>> MT_INIT: Object >>> MT_INIT: >>> MT_INIT: Module >>> MT_INIT: Class >>> MT_INIT: >>> >>> UPDATED: Object CreateInstanceSingleton affected=5 rules=1 >>> MT_INIT: >>> >>> LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' >>> MT_INIT: Symbol >>> MT_INIT: Enumerable >>> MT_INIT: Hash >>> MT_INIT: Microsoft::Scripting::Actions::TypeTracker >>> MT_INIT: Microsoft::Scripting::Actions::TypeGroup >>> >>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>> at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object >>> ) >>> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >>> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >>> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >>> at ??;component;;10;(Closure , Object , Proc , Object ) >>> at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) >>> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >>> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >>> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >>> at ??;#;;0;(Closure , Scope , LanguageContext ) >>> at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in >>> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 >>> at Microsoft.Scripting.SourceUnit.Execute() in >>> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 >>> at Microsoft.Scripting.Hosting.ScriptSource.Execute() in >>> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 >>> at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer >>> container, TextReader reader) in ComponentLoader.cs: line 64 >>> at Motorpool.Calendar.Web.Test >>> .ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent() in >>> ComponentLoaderRegisteringComponentContext.cs: line 26 >>> >>> On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott wrote: >>> >>>> I tried that and no luck. >>>> It doesn't seem that the assembly is not being loaded properly. I'm >>>> able to use methods on the objects fine in the script. However, it is that >>>> last call to the $container.Register(ComponentRegistration.new(model)) >>>> where for some reason it won't work. >>>> >>>> ComponentRegistration.new() takes a ComponentModel. The error seems to >>>> indicate that it is receiving a ComponentModel even with the same namespace >>>> prefixes but somehow it's not able to use it. >>>> >>>> 2009/3/18 Ivan Porto Carrero >>>> >>>> You can try using the LoadAssembly method on the runtime object >>>>> >>>>> runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); >>>>> >>>>> that should require the assembly a little nicer >>>>> >>>>> I think you can also use load_assembly 'Castle.Windsor' >>>>> >>>>> >>>>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 >>>>> >>>>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 >>>>> >>>>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 >>>>> >>>>> >>>>> >>>>> 2009/3/18 Nathan Stott >>>>> >>>>> I'm using the hosting API. >>>>>> This is the entire method: >>>>>> public void Load(IWindsorContainer container, TextReader reader) >>>>>> { >>>>>> var runtime = Ruby.CreateRuntime(); >>>>>> ScriptEngine engine = Ruby.GetEngine(runtime); >>>>>> var ctx = Ruby.GetExecutionContext(runtime); >>>>>> ctx.DefineReadOnlyGlobalVariable("container", container); >>>>>> >>>>>> string header = >>>>>> @"require 'Castle.Windsor' >>>>>> require 'Castle.MicroKernel' >>>>>> require 'Castle.Core' >>>>>> >>>>>> ComponentRegistration = >>>>>> Castle::MicroKernel::Registration::ComponentRegistration >>>>>> ComponentModel = Castle::Core::ComponentModel >>>>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>>>> Component = Castle::MicroKernel::Registration::Component >>>>>> >>>>>> def component(options) >>>>>> throw :classIsRequired if !options.has_key?(:class) >>>>>> klass = options[:class].to_clr_type >>>>>> if options.has_key?(:service) >>>>>> service = options[:service].to_clr_type >>>>>> else >>>>>> service = klass >>>>>> end >>>>>> if options.has_key?(:name) >>>>>> name = options[:name] >>>>>> else >>>>>> name = klass.class.name.underscore.lowercase >>>>>> end >>>>>> model = ComponentModel.new(name, service, klass) >>>>>> if options.has_key?(:parameters) >>>>>> parameters = options[:parameters] >>>>>> parameters.each do |p| >>>>>> model.Parameters.Add(p.key, p.value) >>>>>> end >>>>>> end >>>>>> $container.Register(ComponentRegistration.new(model)) >>>>>> end"; >>>>>> >>>>>> ScriptSource headerSource = >>>>>> engine.CreateScriptSourceFromString(header); >>>>>> headerSource.Execute(); >>>>>> >>>>>> string containerScript = reader.ReadToEnd(); >>>>>> ScriptSource source = >>>>>> engine.CreateScriptSourceFromString(containerScript); >>>>>> source.Execute(); >>>>>> } >>>>>> } >>>>>> >>>>>> 2009/3/18 Tomas Matousek >>>>>> >>>>>>> How do you run this script? From command line (ir.exe script.rb) or >>>>>>> do you use hosting API? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Tomas >>>>>>> >>>>>>> >>>>>>> >>>>>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>>>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >>>>>>> *Sent:* Wednesday, March 18, 2009 8:33 AM >>>>>>> *To:* ironruby-core at rubyforge.org >>>>>>> *Subject:* [Ironruby-core] problem >>>>>>> >>>>>>> >>>>>>> >>>>>>> Hi all. I have a question that probably belongs on a users mailing >>>>>>> list but I could not find one. >>>>>>> >>>>>>> >>>>>>> >>>>>>> I get the following error when trying to use my IronRuby windsor >>>>>>> registration script: >>>>>>> >>>>>>> * >>>>>>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>>>>>> * >>>>>>> >>>>>>> >>>>>>> >>>>>>> I assume this has something to do with the fact that newing up an >>>>>>> object in IronRuby isn't the same thing as newing it up in C#. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Any suggestions or guidance would be appreciated. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Here is the important IronRuby code: >>>>>>> >>>>>>> >>>>>>> >>>>>>> require 'Castle.Windsor' >>>>>>> >>>>>>> require 'Castle.MicroKernel' >>>>>>> >>>>>>> require 'Castle.Core' >>>>>>> >>>>>>> >>>>>>> >>>>>>> ComponentRegistration = >>>>>>> Castle::MicroKernel::Registration::ComponentRegistration >>>>>>> >>>>>>> ComponentModel = Castle::Core::ComponentModel >>>>>>> >>>>>>> Parameter = Castle::MicroKernel::Registration::Parameter >>>>>>> >>>>>>> Component = Castle::MicroKernel::Registration::Component >>>>>>> >>>>>>> >>>>>>> >>>>>>> def component(options) >>>>>>> >>>>>>> throw :classIsRequired if !options.has_key?(:class) >>>>>>> >>>>>>> >>>>>>> >>>>>>> klass = options[:class].to_clr_type >>>>>>> >>>>>>> >>>>>>> >>>>>>> if options.has_key?(:service) >>>>>>> >>>>>>> service = options[:service].to_clr_type >>>>>>> >>>>>>> else >>>>>>> >>>>>>> service = klass >>>>>>> >>>>>>> end >>>>>>> >>>>>>> >>>>>>> >>>>>>> if options.has_key?(:name) >>>>>>> >>>>>>> name = options[:name] >>>>>>> >>>>>>> else >>>>>>> >>>>>>> name = klass.class.name.underscore.lowercase >>>>>>> >>>>>>> end >>>>>>> >>>>>>> >>>>>>> >>>>>>> model = ComponentModel.new(name, service, klass) >>>>>>> >>>>>>> >>>>>>> >>>>>>> if options.has_key?(:parameters) >>>>>>> >>>>>>> parameters = options[:parameters] >>>>>>> >>>>>>> parameters.each do |p| >>>>>>> >>>>>>> model.Parameters.Add(p.key, >>>>>>> p.value) >>>>>>> >>>>>>> end >>>>>>> >>>>>>> end >>>>>>> >>>>>>> >>>>>>> >>>>>>> $container.Register(ComponentRegistration.new(model)) >>>>>>> >>>>>>> end >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> >> > > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Wed Mar 18 16:21:21 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 18 Mar 2009 13:21:21 -0700 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: The assembly seems to be loaded twice into 2 different loader contexts. ?require? with a simple name (as opposed to strong name ?Assembly, Version=?, Culture=?, PublicKeyToken=?? or Kernel#load_assembly) uses Assembly.LoadFrom to load the assembly. If you have a reference to the assembly in your C# host that loads it using Assembly.Load, which loads to a different context. So you might end up loading the assembly (and types that are defined there) twice. The runtime then as two different Type objects for a single logical type. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, March 18, 2009 12:23 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problem Are you using resharper for your unit tests? 2009/3/18 Nathan Stott > I dont know if this helps, but this is the full output of the test: ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : Failed CT_INIT: Object UPDATED: Object CreateInstanceSingleton affected=1 rules=0 UPDATED: Object CreateInstanceSingleton affected=1 rules=0 CT_INIT: File::Constants CT_INIT: IO CT_INIT: File UPDATED: Object CreateInstanceSingleton affected=1 rules=0 MT_INIT: Kernel MT_INIT: Object MT_INIT: MT_INIT: Module MT_INIT: Class MT_INIT: UPDATED: Object CreateInstanceSingleton affected=5 rules=1 MT_INIT: LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' MT_INIT: Symbol MT_INIT: Enumerable MT_INIT: Hash MT_INIT: Microsoft::Scripting::Actions::TypeTracker MT_INIT: Microsoft::Scripting::Actions::TypeGroup System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;component;;10;(Closure , Object , Proc , Object ) at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;#;;0;(Closure , Scope , LanguageContext ) at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 at Microsoft.Scripting.SourceUnit.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 at Microsoft.Scripting.Hosting.ScriptSource.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer container, TextReader reader) in ComponentLoader.cs: line 64 at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent() in ComponentLoaderRegisteringComponentContext.cs: line 26 On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott > wrote: I tried that and no luck. It doesn't seem that the assembly is not being loaded properly. I'm able to use methods on the objects fine in the script. However, it is that last call to the $container.Register(ComponentRegistration.new(model)) where for some reason it won't work. ComponentRegistration.new() takes a ComponentModel. The error seems to indicate that it is receiving a ComponentModel even with the same namespace prefixes but somehow it's not able to use it. 2009/3/18 Ivan Porto Carrero > You can try using the LoadAssembly method on the runtime object runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); that should require the assembly a little nicer I think you can also use load_assembly 'Castle.Windsor' http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 2009/3/18 Nathan Stott > I'm using the hosting API. This is the entire method: public void Load(IWindsorContainer container, TextReader reader) { var runtime = Ruby.CreateRuntime(); ScriptEngine engine = Ruby.GetEngine(runtime); var ctx = Ruby.GetExecutionContext(runtime); ctx.DefineReadOnlyGlobalVariable("container", container); string header = @"require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end"; ScriptSource headerSource = engine.CreateScriptSourceFromString(header); headerSource.Execute(); string containerScript = reader.ReadToEnd(); ScriptSource source = engine.CreateScriptSourceFromString(containerScript); source.Execute(); } } 2009/3/18 Tomas Matousek > How do you run this script? From command line (ir.exe script.rb) or do you use hosting API? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stott Sent: Wednesday, March 18, 2009 8:33 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problem Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel I assume this has something to do with the fact that newing up an object in IronRuby isn't the same thing as newing it up in C#. Any suggestions or guidance would be appreciated. Here is the important IronRuby code: require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end _______________________________________________ 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 _______________________________________________ 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 jdeville at microsoft.com Wed Mar 18 16:29:52 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 18 Mar 2009 13:29:52 -0700 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: We haven?t branched a users mailing list, so this is the perfect mailing list for questions like this. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stott Sent: Wednesday, March 18, 2009 12:55 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problem Good call Ivan. The LoadAssembly apparently was doing the trick! Thanks for the help. BTW, was this the right mailing list for this question? Is there a users mailing list? 2009/3/18 Ivan Porto Carrero > If so turn off shadow copy assemblies under Resharper -> options -> unit testing On Wed, Mar 18, 2009 at 8:22 PM, Ivan Porto Carrero > wrote: Are you using resharper for your unit tests? 2009/3/18 Nathan Stott > I dont know if this helps, but this is the full output of the test: ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : Failed CT_INIT: Object UPDATED: Object CreateInstanceSingleton affected=1 rules=0 UPDATED: Object CreateInstanceSingleton affected=1 rules=0 CT_INIT: File::Constants CT_INIT: IO CT_INIT: File UPDATED: Object CreateInstanceSingleton affected=1 rules=0 MT_INIT: Kernel MT_INIT: Object MT_INIT: MT_INIT: Module MT_INIT: Class MT_INIT: UPDATED: Object CreateInstanceSingleton affected=5 rules=1 MT_INIT: LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' MT_INIT: Symbol MT_INIT: Enumerable MT_INIT: Hash MT_INIT: Microsoft::Scripting::Actions::TypeTracker MT_INIT: Microsoft::Scripting::Actions::TypeGroup System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;component;;10;(Closure , Object , Proc , Object ) at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;#;;0;(Closure , Scope , LanguageContext ) at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 at Microsoft.Scripting.SourceUnit.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 at Microsoft.Scripting.Hosting.ScriptSource.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer container, TextReader reader) in ComponentLoader.cs: line 64 at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent() in ComponentLoaderRegisteringComponentContext.cs: line 26 On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott > wrote: I tried that and no luck. It doesn't seem that the assembly is not being loaded properly. I'm able to use methods on the objects fine in the script. However, it is that last call to the $container.Register(ComponentRegistration.new(model)) where for some reason it won't work. ComponentRegistration.new() takes a ComponentModel. The error seems to indicate that it is receiving a ComponentModel even with the same namespace prefixes but somehow it's not able to use it. 2009/3/18 Ivan Porto Carrero > You can try using the LoadAssembly method on the runtime object runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); that should require the assembly a little nicer I think you can also use load_assembly 'Castle.Windsor' http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 2009/3/18 Nathan Stott > I'm using the hosting API. This is the entire method: public void Load(IWindsorContainer container, TextReader reader) { var runtime = Ruby.CreateRuntime(); ScriptEngine engine = Ruby.GetEngine(runtime); var ctx = Ruby.GetExecutionContext(runtime); ctx.DefineReadOnlyGlobalVariable("container", container); string header = @"require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end"; ScriptSource headerSource = engine.CreateScriptSourceFromString(header); headerSource.Execute(); string containerScript = reader.ReadToEnd(); ScriptSource source = engine.CreateScriptSourceFromString(containerScript); source.Execute(); } } 2009/3/18 Tomas Matousek > How do you run this script? From command line (ir.exe script.rb) or do you use hosting API? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stott Sent: Wednesday, March 18, 2009 8:33 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problem Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel I assume this has something to do with the fact that newing up an object in IronRuby isn't the same thing as newing it up in C#. Any suggestions or guidance would be appreciated. Here is the important IronRuby code: require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 Tomas.Matousek at microsoft.com Wed Mar 18 16:31:03 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 18 Mar 2009 13:31:03 -0700 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: Yes, this was the right list ? we don?t have any other. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stott Sent: Wednesday, March 18, 2009 12:55 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problem Good call Ivan. The LoadAssembly apparently was doing the trick! Thanks for the help. BTW, was this the right mailing list for this question? Is there a users mailing list? 2009/3/18 Ivan Porto Carrero > If so turn off shadow copy assemblies under Resharper -> options -> unit testing On Wed, Mar 18, 2009 at 8:22 PM, Ivan Porto Carrero > wrote: Are you using resharper for your unit tests? 2009/3/18 Nathan Stott > I dont know if this helps, but this is the full output of the test: ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : Failed CT_INIT: Object UPDATED: Object CreateInstanceSingleton affected=1 rules=0 UPDATED: Object CreateInstanceSingleton affected=1 rules=0 CT_INIT: File::Constants CT_INIT: IO CT_INIT: File UPDATED: Object CreateInstanceSingleton affected=1 rules=0 MT_INIT: Kernel MT_INIT: Object MT_INIT: MT_INIT: Module MT_INIT: Class MT_INIT: UPDATED: Object CreateInstanceSingleton affected=5 rules=1 MT_INIT: LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' MT_INIT: Symbol MT_INIT: Enumerable MT_INIT: Hash MT_INIT: Microsoft::Scripting::Actions::TypeTracker MT_INIT: Microsoft::Scripting::Actions::TypeGroup System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;component;;10;(Closure , Object , Proc , Object ) at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) at System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) in C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 at ??;#;;0;(Closure , Scope , LanguageContext ) at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 at Microsoft.Scripting.SourceUnit.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 at Microsoft.Scripting.Hosting.ScriptSource.Execute() in C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer container, TextReader reader) in ComponentLoader.cs: line 64 at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent() in ComponentLoaderRegisteringComponentContext.cs: line 26 On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott > wrote: I tried that and no luck. It doesn't seem that the assembly is not being loaded properly. I'm able to use methods on the objects fine in the script. However, it is that last call to the $container.Register(ComponentRegistration.new(model)) where for some reason it won't work. ComponentRegistration.new() takes a ComponentModel. The error seems to indicate that it is receiving a ComponentModel even with the same namespace prefixes but somehow it's not able to use it. 2009/3/18 Ivan Porto Carrero > You can try using the LoadAssembly method on the runtime object runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); that should require the assembly a little nicer I think you can also use load_assembly 'Castle.Windsor' http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 2009/3/18 Nathan Stott > I'm using the hosting API. This is the entire method: public void Load(IWindsorContainer container, TextReader reader) { var runtime = Ruby.CreateRuntime(); ScriptEngine engine = Ruby.GetEngine(runtime); var ctx = Ruby.GetExecutionContext(runtime); ctx.DefineReadOnlyGlobalVariable("container", container); string header = @"require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end"; ScriptSource headerSource = engine.CreateScriptSourceFromString(header); headerSource.Execute(); string containerScript = reader.ReadToEnd(); ScriptSource source = engine.CreateScriptSourceFromString(containerScript); source.Execute(); } } 2009/3/18 Tomas Matousek > How do you run this script? From command line (ir.exe script.rb) or do you use hosting API? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nathan Stott Sent: Wednesday, March 18, 2009 8:33 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problem Hi all. I have a question that probably belongs on a users mailing list but I could not find one. I get the following error when trying to use my IronRuby windsor registration script: System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel I assume this has something to do with the fact that newing up an object in IronRuby isn't the same thing as newing it up in C#. Any suggestions or guidance would be appreciated. Here is the important IronRuby code: require 'Castle.Windsor' require 'Castle.MicroKernel' require 'Castle.Core' ComponentRegistration = Castle::MicroKernel::Registration::ComponentRegistration ComponentModel = Castle::Core::ComponentModel Parameter = Castle::MicroKernel::Registration::Parameter Component = Castle::MicroKernel::Registration::Component def component(options) throw :classIsRequired if !options.has_key?(:class) klass = options[:class].to_clr_type if options.has_key?(:service) service = options[:service].to_clr_type else service = klass end if options.has_key?(:name) name = options[:name] else name = klass.class.name.underscore.lowercase end model = ComponentModel.new(name, service, klass) if options.has_key?(:parameters) parameters = options[:parameters] parameters.each do |p| model.Parameters.Add(p.key, p.value) end end $container.Register(ComponentRegistration.new(model)) end _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 nrstott at gmail.com Wed Mar 18 16:46:20 2009 From: nrstott at gmail.com (Nathan Stott) Date: Wed, 18 Mar 2009 15:46:20 -0500 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: Excellent. Thanks for your help, guys. I'm now able to use IronRuby for my windsor registration DSL. I'm very pleased so far. I have one other question, how can I take a clr type and get its clr name? When I do this: sometype.to_clr_type.class.name I always get System::RuntimeType 2009/3/18 Tomas Matousek > Yes, this was the right list ? we don?t have any other. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott > *Sent:* Wednesday, March 18, 2009 12:55 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] problem > > > > Good call Ivan. > > > > The LoadAssembly apparently was doing the trick! > > > > Thanks for the help. > > > BTW, was this the right mailing list for this question? Is there a users > mailing list? > > > > 2009/3/18 Ivan Porto Carrero > > If so turn off shadow copy assemblies under Resharper -> options -> unit > testing > > On Wed, Mar 18, 2009 at 8:22 PM, Ivan Porto Carrero > wrote: > > Are you using resharper for your unit tests? > > > > 2009/3/18 Nathan Stott > > I dont know if this helps, but this is the full output of the test: > ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : > Failed > > CT_INIT: Object > > UPDATED: Object CreateInstanceSingleton affected=1 rules=0 > > UPDATED: Object CreateInstanceSingleton affected=1 rules=0 > CT_INIT: File::Constants > CT_INIT: IO > CT_INIT: File > > UPDATED: Object CreateInstanceSingleton affected=1 rules=0 > MT_INIT: Kernel > MT_INIT: Object > MT_INIT: > MT_INIT: Module > MT_INIT: Class > MT_INIT: > > UPDATED: Object CreateInstanceSingleton affected=5 rules=1 > MT_INIT: > > LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' > MT_INIT: Symbol > MT_INIT: Enumerable > MT_INIT: Hash > MT_INIT: Microsoft::Scripting::Actions::TypeTracker > MT_INIT: Microsoft::Scripting::Actions::TypeGroup > > > System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel > > at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object ) > at System.Dynamic.UpdateDelegates.UpdateAndExecute3( > CallSite site, T0 arg0, T1 arg1, T2 arg2) in > C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 > at ??;component;;10;(Closure , Object , Proc , Object ) > at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) > at System.Dynamic.UpdateDelegates.UpdateAndExecute3( > CallSite site, T0 arg0, T1 arg1, T2 arg2) in > C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 > at ??;#;;0;(Closure , Scope , LanguageContext ) > at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in > C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 > at Microsoft.Scripting.SourceUnit.Execute() in > C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 > at Microsoft.Scripting.Hosting.ScriptSource.Execute() in > C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 > at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer > container, TextReader reader) in ComponentLoader.cs: line 64 > at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext > .ShouldRegisterComponent() in > ComponentLoaderRegisteringComponentContext.cs: line 26 > > > > On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott wrote: > > I tried that and no luck. > > > > It doesn't seem that the assembly is not being loaded properly. I'm able > to use methods on the objects fine in the script. However, it is that last > call to the $container.Register(ComponentRegistration.new(model)) where for > some reason it won't work. > > > > ComponentRegistration.new() takes a ComponentModel. The error seems to > indicate that it is receiving a ComponentModel even with the same namespace > prefixes but somehow it's not able to use it. > > 2009/3/18 Ivan Porto Carrero > > > > You can try using the LoadAssembly method on the runtime object > > runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); > > that should require the assembly a little nicer > > I think you can also use load_assembly 'Castle.Windsor' > > > http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 > > http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 > > http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 > > > 2009/3/18 Nathan Stott > > > > I'm using the hosting API. > > > > This is the entire method: > > public void Load(IWindsorContainer container, TextReader > reader) > > { > > var runtime = Ruby.CreateRuntime(); > > ScriptEngine engine = Ruby.GetEngine(runtime); > > var ctx = Ruby.GetExecutionContext(runtime); > > ctx.DefineReadOnlyGlobalVariable("container", > container); > > > > string header = > > @"require 'Castle.Windsor' > > require 'Castle.MicroKernel' > > require 'Castle.Core' > > > > ComponentRegistration = > Castle::MicroKernel::Registration::ComponentRegistration > > ComponentModel = Castle::Core::ComponentModel > > Parameter = Castle::MicroKernel::Registration::Parameter > > Component = Castle::MicroKernel::Registration::Component > > > > def component(options) > > throw :classIsRequired if !options.has_key?(:class) > > > > klass = options[:class].to_clr_type > > > > if options.has_key?(:service) > > service = options[:service].to_clr_type > > else > > service = klass > > end > > > > if options.has_key?(:name) > > name = options[:name] > > else > > name = klass.class.name.underscore.lowercase > > end > > > > model = ComponentModel.new(name, service, klass) > > > > if options.has_key?(:parameters) > > parameters = options[:parameters] > > parameters.each do |p| > > model.Parameters.Add(p.key, p.value) > > end > > end > > > > $container.Register(ComponentRegistration.new(model)) > > end"; > > > > ScriptSource headerSource = > engine.CreateScriptSourceFromString(header); > > headerSource.Execute(); > > > > string containerScript = reader.ReadToEnd(); > > ScriptSource source = > engine.CreateScriptSourceFromString(containerScript); > > source.Execute(); > > } > > } > > > > 2009/3/18 Tomas Matousek > > How do you run this script? From command line (ir.exe script.rb) or do you > use hosting API? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott > *Sent:* Wednesday, March 18, 2009 8:33 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problem > > > > Hi all. I have a question that probably belongs on a users mailing list > but I could not find one. > > > > I get the following error when trying to use my IronRuby windsor > registration script: > > * > System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel > * > > > > I assume this has something to do with the fact that newing up an object in > IronRuby isn't the same thing as newing it up in C#. > > > > Any suggestions or guidance would be appreciated. > > > > Here is the important IronRuby code: > > > > require 'Castle.Windsor' > > require 'Castle.MicroKernel' > > require 'Castle.Core' > > > > ComponentRegistration = > Castle::MicroKernel::Registration::ComponentRegistration > > ComponentModel = Castle::Core::ComponentModel > > Parameter = Castle::MicroKernel::Registration::Parameter > > Component = Castle::MicroKernel::Registration::Component > > > > def component(options) > > throw :classIsRequired if !options.has_key?(:class) > > > > klass = options[:class].to_clr_type > > > > if options.has_key?(:service) > > service = options[:service].to_clr_type > > else > > service = klass > > end > > > > if options.has_key?(:name) > > name = options[:name] > > else > > name = klass.class.name.underscore.lowercase > > end > > > > model = ComponentModel.new(name, service, klass) > > > > if options.has_key?(:parameters) > > parameters = options[:parameters] > > parameters.each do |p| > > model.Parameters.Add(p.key, p.value) > > end > > end > > > > $container.Register(ComponentRegistration.new(model)) > > end > > > > > > > > _______________________________________________ > 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 > > > > _______________________________________________ > 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 > > > > > > _______________________________________________ > 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 ivan at flanders.co.nz Wed Mar 18 17:16:17 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 18 Mar 2009 22:16:17 +0100 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: sometype.to_clr_type.name :) you can look in the ninject stuff I did.. i bet it has a lot of the stuff you will need for your windsor dsl 2009/3/18 Nathan Stott > Excellent. > Thanks for your help, guys. > > I'm now able to use IronRuby for my windsor registration DSL. I'm very > pleased so far. > > I have one other question, how can I take a clr type and get its clr name? > > When I do this: > sometype.to_clr_type.class.name > > I always get System::RuntimeType > > 2009/3/18 Tomas Matousek > >> Yes, this was the right list ? we don?t have any other. >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >> *Sent:* Wednesday, March 18, 2009 12:55 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] problem >> >> >> >> Good call Ivan. >> >> >> >> The LoadAssembly apparently was doing the trick! >> >> >> >> Thanks for the help. >> >> >> BTW, was this the right mailing list for this question? Is there a users >> mailing list? >> >> >> >> 2009/3/18 Ivan Porto Carrero >> >> If so turn off shadow copy assemblies under Resharper -> options -> unit >> testing >> >> On Wed, Mar 18, 2009 at 8:22 PM, Ivan Porto Carrero >> wrote: >> >> Are you using resharper for your unit tests? >> >> >> >> 2009/3/18 Nathan Stott >> >> I dont know if this helps, but this is the full output of the test: >> ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : >> Failed >> >> CT_INIT: Object >> >> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >> >> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >> CT_INIT: File::Constants >> CT_INIT: IO >> CT_INIT: File >> >> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >> MT_INIT: Kernel >> MT_INIT: Object >> MT_INIT: >> MT_INIT: Module >> MT_INIT: Class >> MT_INIT: >> >> UPDATED: Object CreateInstanceSingleton affected=5 rules=1 >> MT_INIT: >> >> LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' >> MT_INIT: Symbol >> MT_INIT: Enumerable >> MT_INIT: Hash >> MT_INIT: Microsoft::Scripting::Actions::TypeTracker >> MT_INIT: Microsoft::Scripting::Actions::TypeGroup >> >> >> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >> >> at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object >> ) >> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >> at ??;component;;10;(Closure , Object , Proc , Object ) >> at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) >> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >> at ??;#;;0;(Closure , Scope , LanguageContext ) >> at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in >> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 >> at Microsoft.Scripting.SourceUnit.Execute() in >> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 >> at Microsoft.Scripting.Hosting.ScriptSource.Execute() in >> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 >> at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer >> container, TextReader reader) in ComponentLoader.cs: line 64 >> at Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext >> .ShouldRegisterComponent() in >> ComponentLoaderRegisteringComponentContext.cs: line 26 >> >> >> >> On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott wrote: >> >> I tried that and no luck. >> >> >> >> It doesn't seem that the assembly is not being loaded properly. I'm able >> to use methods on the objects fine in the script. However, it is that last >> call to the $container.Register(ComponentRegistration.new(model)) where for >> some reason it won't work. >> >> >> >> ComponentRegistration.new() takes a ComponentModel. The error seems to >> indicate that it is receiving a ComponentModel even with the same namespace >> prefixes but somehow it's not able to use it. >> >> 2009/3/18 Ivan Porto Carrero >> >> >> >> You can try using the LoadAssembly method on the runtime object >> >> runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); >> >> that should require the assembly a little nicer >> >> I think you can also use load_assembly 'Castle.Windsor' >> >> >> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 >> >> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 >> >> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 >> >> >> 2009/3/18 Nathan Stott >> >> >> >> I'm using the hosting API. >> >> >> >> This is the entire method: >> >> public void Load(IWindsorContainer container, TextReader >> reader) >> >> { >> >> var runtime = Ruby.CreateRuntime(); >> >> ScriptEngine engine = Ruby.GetEngine(runtime); >> >> var ctx = Ruby.GetExecutionContext(runtime); >> >> ctx.DefineReadOnlyGlobalVariable("container", >> container); >> >> >> >> string header = >> >> @"require 'Castle.Windsor' >> >> require 'Castle.MicroKernel' >> >> require 'Castle.Core' >> >> >> >> ComponentRegistration = >> Castle::MicroKernel::Registration::ComponentRegistration >> >> ComponentModel = Castle::Core::ComponentModel >> >> Parameter = Castle::MicroKernel::Registration::Parameter >> >> Component = Castle::MicroKernel::Registration::Component >> >> >> >> def component(options) >> >> throw :classIsRequired if !options.has_key?(:class) >> >> >> >> klass = options[:class].to_clr_type >> >> >> >> if options.has_key?(:service) >> >> service = options[:service].to_clr_type >> >> else >> >> service = klass >> >> end >> >> >> >> if options.has_key?(:name) >> >> name = options[:name] >> >> else >> >> name = klass.class.name.underscore.lowercase >> >> end >> >> >> >> model = ComponentModel.new(name, service, klass) >> >> >> >> if options.has_key?(:parameters) >> >> parameters = options[:parameters] >> >> parameters.each do |p| >> >> model.Parameters.Add(p.key, p.value) >> >> end >> >> end >> >> >> >> $container.Register(ComponentRegistration.new(model)) >> >> end"; >> >> >> >> ScriptSource headerSource = >> engine.CreateScriptSourceFromString(header); >> >> headerSource.Execute(); >> >> >> >> string containerScript = reader.ReadToEnd(); >> >> ScriptSource source = >> engine.CreateScriptSourceFromString(containerScript); >> >> source.Execute(); >> >> } >> >> } >> >> >> >> 2009/3/18 Tomas Matousek >> >> How do you run this script? >From command line (ir.exe script.rb) or do >> you use hosting API? >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >> *Sent:* Wednesday, March 18, 2009 8:33 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* [Ironruby-core] problem >> >> >> >> Hi all. I have a question that probably belongs on a users mailing list >> but I could not find one. >> >> >> >> I get the following error when trying to use my IronRuby windsor >> registration script: >> >> * >> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >> * >> >> >> >> I assume this has something to do with the fact that newing up an object >> in IronRuby isn't the same thing as newing it up in C#. >> >> >> >> Any suggestions or guidance would be appreciated. >> >> >> >> Here is the important IronRuby code: >> >> >> >> require 'Castle.Windsor' >> >> require 'Castle.MicroKernel' >> >> require 'Castle.Core' >> >> >> >> ComponentRegistration = >> Castle::MicroKernel::Registration::ComponentRegistration >> >> ComponentModel = Castle::Core::ComponentModel >> >> Parameter = Castle::MicroKernel::Registration::Parameter >> >> Component = Castle::MicroKernel::Registration::Component >> >> >> >> def component(options) >> >> throw :classIsRequired if !options.has_key?(:class) >> >> >> >> klass = options[:class].to_clr_type >> >> >> >> if options.has_key?(:service) >> >> service = options[:service].to_clr_type >> >> else >> >> service = klass >> >> end >> >> >> >> if options.has_key?(:name) >> >> name = options[:name] >> >> else >> >> name = klass.class.name.underscore.lowercase >> >> end >> >> >> >> model = ComponentModel.new(name, service, klass) >> >> >> >> if options.has_key?(:parameters) >> >> parameters = options[:parameters] >> >> parameters.each do |p| >> >> model.Parameters.Add(p.key, p.value) >> >> end >> >> end >> >> >> >> $container.Register(ComponentRegistration.new(model)) >> >> end >> >> >> >> >> >> >> >> _______________________________________________ >> 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 >> >> >> >> _______________________________________________ >> 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 >> >> >> >> >> >> _______________________________________________ >> 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 >> >> > > _______________________________________________ > 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 Wed Mar 18 18:10:31 2009 From: lists at ruby-forum.com (Marco Kotrotsos) Date: Wed, 18 Mar 2009 23:10:31 +0100 Subject: [Ironruby-core] undefined Method 'downcase' Message-ID: Hi and goodevening, hope someone can help i am trying to get some sort of scripting support going. I have the following code, which executes a ruby method and return the result. However, it is returning a method not found error from IronRuby itself some code ommited but it's based on the standard example. (I did make reference to all the dlls IronRuby and IronRuby.Libraries) var engine = IronRuby.Ruby.CreateEngine(); returnvalue = engine.Operations.InvokeMember(instance, method, arg).ToString(); I am running the following ruby code as a test... class Plotlight def get_message(a) res = "Hello- from Ruby " << a res end def swapcase(a) res = a.downcase res end end Now, when running the method get_message("something") things work great however when running something that has a reference to the standard library (swapcase in this example) it will return the error $exception {"undefined method `downcase' for fooBAR:ClrString"} System.Exception {System.MissingMethodException} running the code through ir.exe works without any problems Do I need to make a call/reference to the library? and if I do, how do I do that? Hope someone can help! Thank you very much. Kind regards, Marco -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Mar 18 18:36:22 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 18 Mar 2009 23:36:22 +0100 Subject: [Ironruby-core] undefined Method 'downcase' In-Reply-To: References: Message-ID: A CLR string is not the same as a ruby string. Calling .to_s before downcase should work or you can monkey patch System::String and add the method downcase to the clr string class if it bothers you too much class System::String def downcase self.to_s.downcase end end On Wed, Mar 18, 2009 at 11:10 PM, Marco Kotrotsos wrote: > > > Hi and goodevening, hope someone can help > > i am trying to get some sort of scripting support going. I have the > following code, which executes a ruby method and return the result. > However, it is returning a method not found error from IronRuby itself > > some code ommited but it's based on the standard example. (I did make > reference to all the dlls IronRuby and IronRuby.Libraries) > > var engine = IronRuby.Ruby.CreateEngine(); > returnvalue = engine.Operations.InvokeMember(instance, method, > arg).ToString(); > > > > I am running the following ruby code as a test... > > class Plotlight > def get_message(a) > res = "Hello- from Ruby " << a > res > end > > def swapcase(a) > res = a.downcase > res > end > end > > Now, when running the method get_message("something") things work great > however when running something that has a reference to the standard > library (swapcase in this example) it will return the error > > $exception {"undefined method `downcase' for fooBAR:ClrString"} > System.Exception {System.MissingMethodException} > > running the code through ir.exe works without any problems > > Do I need to make a call/reference to the library? and if I do, how do I > do that? > > Hope someone can help! Thank you very much. > > Kind regards, Marco > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 stefan.dobrev at gmail.com Wed Mar 18 19:35:07 2009 From: stefan.dobrev at gmail.com (Stefan Dobrev) Date: Thu, 19 Mar 2009 01:35:07 +0200 Subject: [Ironruby-core] Problem with generic method resolution In-Reply-To: <5283CA0A4168DF4FBBD71AE9ECA5A3284CB970D4FA@NA-EXMSG-C116.redmond.corp.microsoft.com> References: <928de89c0903091657n1d6f836mfadb0d386e25b31f@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284CB970D4FA@NA-EXMSG-C116.redmond.corp.microsoft.com> Message-ID: <928de89c0903181635p295c9858h7ca43a8897413272@mail.gmail.com> Nope. Nobody replied except you :) Bug report is filed: http://rubyforge.org/tracker/?func=detail&aid=24668&group_id=4359&atid=16798 2009/3/17 Jimmy Schementi > Did anyone reply to you? If you haven?t submitted a bug on RubyForge, > please do. > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Stefan Dobrev > *Sent:* Monday, March 09, 2009 7:57 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] Problem with generic method resolution > > > > Hi, > > I have found out the following problem: > > >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089' > => true > >>> include System > => Object > >>> include System::Linq::Expressions > >>> Expression.Call > :0: wrong number of arguments (2 for 4) (ArgumentError) > >>> Expression.Parameter > :0: undefined method `Parameter' for TypeGroup of > Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError) > > Obviously the Call method was recognized but the Parameter one not. Should > I file a bug or this is known and will be fixed? > > Regards, > Stefan > > _______________________________________________ > 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 curth at microsoft.com Wed Mar 18 19:46:49 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Wed, 18 Mar 2009 16:46:49 -0700 Subject: [Ironruby-core] Problem with generic method resolution In-Reply-To: <928de89c0903181635p295c9858h7ca43a8897413272@mail.gmail.com> References: <928de89c0903091657n1d6f836mfadb0d386e25b31f@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284CB970D4FA@NA-EXMSG-C116.redmond.corp.microsoft.com> <928de89c0903181635p295c9858h7ca43a8897413272@mail.gmail.com> Message-ID: There are two different Expression classes in the Expressions namespace - a templated one and an untemplated one. You need to force the untemplated one, which you can do by saying System::Linq::Expressions::Expression.of().Parameter From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan Dobrev Sent: Wednesday, March 18, 2009 4:35 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem with generic method resolution Nope. Nobody replied except you :) Bug report is filed: http://rubyforge.org/tracker/?func=detail&aid=24668&group_id=4359&atid=16798 2009/3/17 Jimmy Schementi > Did anyone reply to you? If you haven't submitted a bug on RubyForge, please do. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan Dobrev Sent: Monday, March 09, 2009 7:57 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Problem with generic method resolution Hi, I have found out the following problem: >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' => true >>> include System => Object >>> include System::Linq::Expressions >>> Expression.Call :0: wrong number of arguments (2 for 4) (ArgumentError) >>> Expression.Parameter :0: undefined method `Parameter' for TypeGroup of Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError) Obviously the Call method was recognized but the Parameter one not. Should I file a bug or this is known and will be fixed? Regards, Stefan _______________________________________________ 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 nrstott at gmail.com Wed Mar 18 20:00:00 2009 From: nrstott at gmail.com (Nathan Stott) Date: Wed, 18 Mar 2009 19:00:00 -0500 Subject: [Ironruby-core] problem In-Reply-To: References: Message-ID: Hey Ivan, thanks. I found your post about ninject. Good stuff. 2009/3/18 Ivan Porto Carrero > sometype.to_clr_type.name :) > > you can look in the ninject stuff I did.. i bet it has a lot of the stuff > you will need for your windsor dsl > > > > 2009/3/18 Nathan Stott > >> Excellent. >> Thanks for your help, guys. >> >> I'm now able to use IronRuby for my windsor registration DSL. I'm very >> pleased so far. >> >> I have one other question, how can I take a clr type and get its clr name? >> >> When I do this: >> sometype.to_clr_type.class.name >> >> I always get System::RuntimeType >> >> 2009/3/18 Tomas Matousek >> >>> Yes, this was the right list ? we don?t have any other. >>> >>> >>> >>> Tomas >>> >>> >>> >>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >>> *Sent:* Wednesday, March 18, 2009 12:55 PM >>> *To:* ironruby-core at rubyforge.org >>> *Subject:* Re: [Ironruby-core] problem >>> >>> >>> >>> Good call Ivan. >>> >>> >>> >>> The LoadAssembly apparently was doing the trick! >>> >>> >>> >>> Thanks for the help. >>> >>> >>> BTW, was this the right mailing list for this question? Is there a users >>> mailing list? >>> >>> >>> >>> 2009/3/18 Ivan Porto Carrero >>> >>> If so turn off shadow copy assemblies under Resharper -> options -> unit >>> testing >>> >>> On Wed, Mar 18, 2009 at 8:22 PM, Ivan Porto Carrero >>> wrote: >>> >>> Are you using resharper for your unit tests? >>> >>> >>> >>> 2009/3/18 Nathan Stott >>> >>> I dont know if this helps, but this is the full output of the test: >>> ComponentLoaderRegisteringComponentContext.ShouldRegisterComponent : >>> Failed >>> >>> CT_INIT: Object >>> >>> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >>> >>> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >>> CT_INIT: File::Constants >>> CT_INIT: IO >>> CT_INIT: File >>> >>> UPDATED: Object CreateInstanceSingleton affected=1 rules=0 >>> MT_INIT: Kernel >>> MT_INIT: Object >>> MT_INIT: >>> MT_INIT: Module >>> MT_INIT: Class >>> MT_INIT: >>> >>> UPDATED: Object CreateInstanceSingleton affected=5 rules=1 >>> MT_INIT: >>> >>> LOADER: Loading assembly 'Motorpool.Calendar.Web.Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and type '' >>> MT_INIT: Symbol >>> MT_INIT: Enumerable >>> MT_INIT: Hash >>> MT_INIT: Microsoft::Scripting::Actions::TypeTracker >>> MT_INIT: Microsoft::Scripting::Actions::TypeGroup >>> >>> >>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>> >>> at CallSite.Target(Closure , CallSite , RubyMethodScope , Object , Object >>> ) >>> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >>> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >>> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >>> at ??;component;;10;(Closure , Object , Proc , Object ) >>> at CallSite.Target(Closure , CallSite , RubyScope , Object , Hash ) >>> at System.Dynamic.UpdateDelegates.UpdateAndExecute3( >>> CallSite site, T0 arg0, T1 arg1, T2 arg2) in >>> C:\git\ironruby\ndp\fx\src\Core\Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs: line 509 >>> at ??;#;;0;(Closure , Scope , LanguageContext ) >>> at Microsoft.Scripting.Runtime.LegacyScriptCode.Run() in >>> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Runtime\LegacyScriptCode.cs: line 43 >>> at Microsoft.Scripting.SourceUnit.Execute() in >>> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\SourceUnit.cs: line 239 >>> at Microsoft.Scripting.Hosting.ScriptSource.Execute() in >>> C:\git\ironruby\Merlin\Main\Runtime\Microsoft.Scripting\Hosting\ScriptSource.cs: line 138 >>> at Motorpool.Calendar.Service.ComponentLoader.Load(IWindsorContainer >>> container, TextReader reader) in ComponentLoader.cs: line 64 >>> at >>> Motorpool.Calendar.Web.Test.ComponentLoaderRegisteringComponentContext >>> .ShouldRegisterComponent() in >>> ComponentLoaderRegisteringComponentContext.cs: line 26 >>> >>> >>> >>> On Wed, Mar 18, 2009 at 1:55 PM, Nathan Stott wrote: >>> >>> I tried that and no luck. >>> >>> >>> >>> It doesn't seem that the assembly is not being loaded properly. I'm able >>> to use methods on the objects fine in the script. However, it is that last >>> call to the $container.Register(ComponentRegistration.new(model)) where for >>> some reason it won't work. >>> >>> >>> >>> ComponentRegistration.new() takes a ComponentModel. The error seems to >>> indicate that it is receiving a ComponentModel even with the same namespace >>> prefixes but somehow it's not able to use it. >>> >>> 2009/3/18 Ivan Porto Carrero >>> >>> >>> >>> You can try using the LoadAssembly method on the runtime object >>> >>> runtime.LoadAssembly(typeof(IWindsorContainer).Assembly); >>> >>> that should require the assembly a little nicer >>> >>> I think you can also use load_assembly 'Castle.Windsor' >>> >>> >>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L166 >>> >>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L142 >>> >>> http://github.com/casualjim/ninject-dynamic/blob/0b531d9e3ae46cc3e8549c9cfc078a8c27e5dda7/src/Ninject.Dynamic/RubyEngine.cs#L90 >>> >>> >>> 2009/3/18 Nathan Stott >>> >>> >>> >>> I'm using the hosting API. >>> >>> >>> >>> This is the entire method: >>> >>> public void Load(IWindsorContainer container, TextReader >>> reader) >>> >>> { >>> >>> var runtime = Ruby.CreateRuntime(); >>> >>> ScriptEngine engine = >>> Ruby.GetEngine(runtime); >>> >>> var ctx = Ruby.GetExecutionContext(runtime); >>> >>> ctx.DefineReadOnlyGlobalVariable("container", >>> container); >>> >>> >>> >>> string header = >>> >>> @"require 'Castle.Windsor' >>> >>> require 'Castle.MicroKernel' >>> >>> require 'Castle.Core' >>> >>> >>> >>> ComponentRegistration = >>> Castle::MicroKernel::Registration::ComponentRegistration >>> >>> ComponentModel = Castle::Core::ComponentModel >>> >>> Parameter = Castle::MicroKernel::Registration::Parameter >>> >>> Component = Castle::MicroKernel::Registration::Component >>> >>> >>> >>> def component(options) >>> >>> throw :classIsRequired if !options.has_key?(:class) >>> >>> >>> >>> klass = options[:class].to_clr_type >>> >>> >>> >>> if options.has_key?(:service) >>> >>> service = options[:service].to_clr_type >>> >>> else >>> >>> service = klass >>> >>> end >>> >>> >>> >>> if options.has_key?(:name) >>> >>> name = options[:name] >>> >>> else >>> >>> name = klass.class.name.underscore.lowercase >>> >>> end >>> >>> >>> >>> model = ComponentModel.new(name, service, klass) >>> >>> >>> >>> if options.has_key?(:parameters) >>> >>> parameters = options[:parameters] >>> >>> parameters.each do |p| >>> >>> model.Parameters.Add(p.key, p.value) >>> >>> end >>> >>> end >>> >>> >>> >>> $container.Register(ComponentRegistration.new(model)) >>> >>> end"; >>> >>> >>> >>> ScriptSource headerSource = >>> engine.CreateScriptSourceFromString(header); >>> >>> headerSource.Execute(); >>> >>> >>> >>> string containerScript = reader.ReadToEnd(); >>> >>> ScriptSource source = >>> engine.CreateScriptSourceFromString(containerScript); >>> >>> source.Execute(); >>> >>> } >>> >>> } >>> >>> >>> >>> 2009/3/18 Tomas Matousek >>> >>> How do you run this script? >From command line (ir.exe script.rb) or do >>> you use hosting API? >>> >>> >>> >>> Tomas >>> >>> >>> >>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Nathan Stott >>> *Sent:* Wednesday, March 18, 2009 8:33 AM >>> *To:* ironruby-core at rubyforge.org >>> *Subject:* [Ironruby-core] problem >>> >>> >>> >>> Hi all. I have a question that probably belongs on a users mailing list >>> but I could not find one. >>> >>> >>> >>> I get the following error when trying to use my IronRuby windsor >>> registration script: >>> >>> * >>> System.InvalidOperationException: can't convert Castle::Core::ComponentModel into Castle::Core::ComponentModel >>> * >>> >>> >>> >>> I assume this has something to do with the fact that newing up an object >>> in IronRuby isn't the same thing as newing it up in C#. >>> >>> >>> >>> Any suggestions or guidance would be appreciated. >>> >>> >>> >>> Here is the important IronRuby code: >>> >>> >>> >>> require 'Castle.Windsor' >>> >>> require 'Castle.MicroKernel' >>> >>> require 'Castle.Core' >>> >>> >>> >>> ComponentRegistration = >>> Castle::MicroKernel::Registration::ComponentRegistration >>> >>> ComponentModel = Castle::Core::ComponentModel >>> >>> Parameter = Castle::MicroKernel::Registration::Parameter >>> >>> Component = Castle::MicroKernel::Registration::Component >>> >>> >>> >>> def component(options) >>> >>> throw :classIsRequired if !options.has_key?(:class) >>> >>> >>> >>> klass = options[:class].to_clr_type >>> >>> >>> >>> if options.has_key?(:service) >>> >>> service = options[:service].to_clr_type >>> >>> else >>> >>> service = klass >>> >>> end >>> >>> >>> >>> if options.has_key?(:name) >>> >>> name = options[:name] >>> >>> else >>> >>> name = klass.class.name.underscore.lowercase >>> >>> end >>> >>> >>> >>> model = ComponentModel.new(name, service, klass) >>> >>> >>> >>> if options.has_key?(:parameters) >>> >>> parameters = options[:parameters] >>> >>> parameters.each do |p| >>> >>> model.Parameters.Add(p.key, p.value) >>> >>> end >>> >>> end >>> >>> >>> >>> $container.Register(ComponentRegistration.new(model)) >>> >>> end >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >>> >>> >> >> _______________________________________________ >> 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 Tomas.Matousek at microsoft.com Wed Mar 18 20:52:15 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 18 Mar 2009 17:52:15 -0700 Subject: [Ironruby-core] Problem with generic method resolution In-Reply-To: References: <928de89c0903091657n1d6f836mfadb0d386e25b31f@mail.gmail.com> <5283CA0A4168DF4FBBD71AE9ECA5A3284CB970D4FA@NA-EXMSG-C116.redmond.corp.microsoft.com> <928de89c0903181635p295c9858h7ca43a8897413272@mail.gmail.com> Message-ID: We'll probably fix this so that if not specified otherwise the default would be the non-generic unless there is a catch ;) Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Wednesday, March 18, 2009 4:47 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem with generic method resolution There are two different Expression classes in the Expressions namespace - a templated one and an untemplated one. You need to force the untemplated one, which you can do by saying System::Linq::Expressions::Expression.of().Parameter From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan Dobrev Sent: Wednesday, March 18, 2009 4:35 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem with generic method resolution Nope. Nobody replied except you :) Bug report is filed: http://rubyforge.org/tracker/?func=detail&aid=24668&group_id=4359&atid=16798 2009/3/17 Jimmy Schementi > Did anyone reply to you? If you haven't submitted a bug on RubyForge, please do. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan Dobrev Sent: Monday, March 09, 2009 7:57 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Problem with generic method resolution Hi, I have found out the following problem: >>> require 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' => true >>> include System => Object >>> include System::Linq::Expressions >>> Expression.Call :0: wrong number of arguments (2 for 4) (ArgumentError) >>> Expression.Parameter :0: undefined method `Parameter' for TypeGroup of Expression:Microsoft::Scripting::Actions::TypeGroup (NoMethodError) Obviously the Call method was recognized but the Parameter one not. Should I file a bug or this is known and will be fixed? Regards, Stefan _______________________________________________ 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 Tomas.Matousek at microsoft.com Wed Mar 18 20:52:49 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 18 Mar 2009 17:52:49 -0700 Subject: [Ironruby-core] Code Review: PythonInterop2 Message-ID: tfpt review "/shelveset:PythonInterop2;REDMOND\tomat" Comment : Python & outer DLR (simple fixes): - Renames onBindingError parameter to errorSuggestion to match the base method. - Fixes restriction combination in LanguageContext.DefaultCallAction.FallbackInvoke. Ruby: - Implements InteropBinder class that provides binders for meta-object interop. - Adds basic implementation of Bind and Fallback for InvokeMember, CreateInstance, GetMember and Convert actions (more work is needed to polish all scenarios and corner cases). - Disallows removal of Object#initialize method to simplify object instantiation (Ruby 1.9 does so as well). - Adds more Python interop tests. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: PythonInterop2.diff Type: application/octet-stream Size: 112886 bytes Desc: PythonInterop2.diff URL: From lists at ruby-forum.com Thu Mar 19 03:08:54 2009 From: lists at ruby-forum.com (Marco Kotrotsos) Date: Thu, 19 Mar 2009 08:08:54 +0100 Subject: [Ironruby-core] undefined Method 'downcase' In-Reply-To: References: Message-ID: Thank you Ivan, that has been most helpful! Marco Ivan Porto carrero wrote: > A CLR string is not the same as a ruby string. Calling .to_s before > downcase > should work or you can monkey patch System::String and add the method > downcase to the clr string class if it bothers you too much > > > class System::String > > def downcase > self.to_s.downcase > end > > end -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 19 12:33:41 2009 From: lists at ruby-forum.com (Marco Kotrotsos) Date: Thu, 19 Mar 2009 17:33:41 +0100 Subject: [Ironruby-core] undefined Method 'downcase' In-Reply-To: References: Message-ID: <74fd1d539336b250d422b416f682f91f@ruby-forum.com> i'm sorry, another one popped up and I hope you can help me with it it's with this example class Plotlight def fib n if n<2 n else res = fib(n-2)+fib(n-1) end end end when executing, I get Object must be of type String. I suspect this to be because I am feeding it a String argument. When I do this class Plotlight def fib arg n = arg.to_i if n<2 n else res = fib(n-2)+fib(n-1) end end end it now says + $exception {"undefined method `to_i' for 12:ClrString"} System.Exception {System.MissingMethodException} so it again must be because it's not an expected Integer...but how do I work around this one? I am trying to understand how this works. Thanks Marco Marco Kotrotsos wrote: > Thank you Ivan, that has been most helpful! > > Marco > > > Ivan Porto carrero wrote: >> A CLR string is not the same as a ruby string. Calling .to_s before >> downcase >> should work or you can monkey patch System::String and add the method >> downcase to the clr string class if it bothers you too much >> >> >> class System::String >> >> def downcase >> self.to_s.downcase >> end >> >> end -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Thu Mar 19 12:40:26 2009 From: lists at ruby-forum.com (Marco Kotrotsos) Date: Thu, 19 Mar 2009 17:40:26 +0100 Subject: [Ironruby-core] undefined Method 'downcase' In-Reply-To: <74fd1d539336b250d422b416f682f91f@ruby-forum.com> References: <74fd1d539336b250d422b416f682f91f@ruby-forum.com> Message-ID: ugh (slap head) it was n = arg.to_s.to_i so nasty...:) Marco Marco Kotrotsos wrote: > i'm sorry, another one popped up and I hope you can help me with it > > it's with this example > > class Plotlight > def fib n > if n<2 > n > else > res = fib(n-2)+fib(n-1) > end > end > end > > > when executing, I get Object must be of type String. I suspect this to > be because I am feeding it a String argument. When I do this > > class Plotlight > def fib arg > n = arg.to_i > if n<2 > n > else > res = fib(n-2)+fib(n-1) > end > end > end > > it now says > > + $exception {"undefined method `to_i' for 12:ClrString"} > System.Exception {System.MissingMethodException} > > > so it again must be because it's not an expected Integer...but how do I > work around this one? I am trying to understand how this works. > > Thanks > Marco > > > -- Posted via http://www.ruby-forum.com/. From curth at microsoft.com Thu Mar 19 12:42:55 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 19 Mar 2009 09:42:55 -0700 Subject: [Ironruby-core] undefined Method 'downcase' In-Reply-To: References: <74fd1d539336b250d422b416f682f91f@ruby-forum.com> Message-ID: Out of curiosity, why are you passing a string to this method through the hosting interface instead of just passing an int? What does the calling code look like? -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Marco Kotrotsos Sent: Thursday, March 19, 2009 9:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] undefined Method 'downcase' ugh (slap head) it was n = arg.to_s.to_i so nasty...:) Marco Marco Kotrotsos wrote: > i'm sorry, another one popped up and I hope you can help me with it > > it's with this example > > class Plotlight > def fib n > if n<2 > n > else > res = fib(n-2)+fib(n-1) > end > end > end > > > when executing, I get Object must be of type String. I suspect this to > be because I am feeding it a String argument. When I do this > > class Plotlight > def fib arg > n = arg.to_i > if n<2 > n > else > res = fib(n-2)+fib(n-1) > end > end > end > > it now says > > + $exception {"undefined method `to_i' for 12:ClrString"} > System.Exception {System.MissingMethodException} > > > so it again must be because it's not an expected Integer...but how do I > work around this one? I am trying to understand how this works. > > Thanks > Marco > > > -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Thu Mar 19 14:20:56 2009 From: lists at ruby-forum.com (Marco Kotrotsos) Date: Thu, 19 Mar 2009 19:20:56 +0100 Subject: [Ironruby-core] undefined Method 'downcase' In-Reply-To: References: <74fd1d539336b250d422b416f682f91f@ruby-forum.com> Message-ID: returnvalue = engine.Operations.InvokeMember(instance, method, arg).ToString(); whereas arg is always String at the moment. (will change somewhere in the future) I can probably do a type check on arg... Marco Curt Hagenlocher wrote: > Out of curiosity, why are you passing a string to this method through > the hosting interface instead of just passing an int? What does the > calling code look like? -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Fri Mar 20 12:58:38 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 20 Mar 2009 09:58:38 -0700 Subject: [Ironruby-core] Code review - Fix backtrace and 1.9 support for RubyClass/RubyMethod attributes Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D5411C9@NA-EXMSG-C104.redmond.corp.microsoft.com> Assuming you have done "git clone git://github.com/shri/ironruby.git" before and run Languages\Ruby\Scripts\dev.bat, git pull GitDiff.bat ce7438b4c038dc8937f59758f33c387e139aea6a 8cf29c0704af4d3fdf51069aa6cbf034b2974edd Bactrace was being set to nil for "raise existingException, 'new message'". RubyOps.SetExceptionAndStrackTrace needs to call zSetCompiledTrace even if a RubyExceptionData exists for the exception, which it will for the case of raising with a new exception message. The current scheme is closer to MRI which checks if backtrace is set before calling set_backtrace. Removed RubyOptions.DefaultExceptionDetail. It is no longer needed as always have access to a RubyContext when creating a backtrace which allows access to LanguageOptions.ExceptionDetail. Added support for Initializers.Generated to have constructs that exist in only a specific version of Ruby. Used that for "Encoding". These two issues were affecting minitest (which is used by rubygems). With these fixes, minitest does not need any workarounds. Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Mar 20 21:33:28 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sat, 21 Mar 2009 01:33:28 +0000 Subject: [Ironruby-core] [ATTN] IronRuby 0.3 Released Message-ID: I'm pleased to announce a new release of IronRuby, IronRuby 0.3! Download IronRuby 0.3 http://ironruby.net/Download (Note: if the download fails, just try again ... RubyForge may still be propagating the package) Release notes and changes: http://rubyforge.org/frs/shownotes.php?release_id=32447 Documentation: http://ironruby.net/Documentation Submit bugs: http://rubyforge.org/tracker/?atid=16798&group_id=4359&func=browse Source code: http://github.com/ironruby/ironruby/tree/v0.3.0 Contributor information: http://wiki.github.com/ironruby/ironruby Staying true to our "Conference-driven development schedule," this release is in conjunction with MIX '09, where Silverlight 3 Beta and ASP.NET MVC 1.0 were announced, to name a few. Demos from John Lam's talk today are here: http://github.com/jschementi/mix09. Please see the release notes and changes for more information: http://rubyforge.org/frs/shownotes.php?release_id=32447 ~Jimmy -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Sat Mar 21 05:19:45 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sat, 21 Mar 2009 10:19:45 +0100 Subject: [Ironruby-core] [ATTN] IronRuby 0.3 Released In-Reply-To: References: Message-ID: <4a68b8cf0903210219l321e5537i14f06a8e1e7ae8cc@mail.gmail.com> Hi, > I?m pleased to announce a new release of IronRuby, IronRuby 0.3! great news, a couple of people were asking about when would be the next release. thanks! -- Thibaut 2009/3/21 Jimmy Schementi : > > > > Download IronRuby 0.3 > > http://ironruby.net/Download > > > > (Note: if the download fails, just try again ? RubyForge may still be > propagating the package) > > > > Release notes and changes: > http://rubyforge.org/frs/shownotes.php?release_id=32447 > > Documentation: http://ironruby.net/Documentation > > Submit bugs: > http://rubyforge.org/tracker/?atid=16798&group_id=4359&func=browse > > Source code: http://github.com/ironruby/ironruby/tree/v0.3.0 > > Contributor information: http://wiki.github.com/ironruby/ironruby > > > > Staying true to our "Conference-driven development schedule," this release > is in conjunction with MIX ?09, where Silverlight 3 Beta and ASP.NET MVC 1.0 > were announced, to name a few. Demos from John Lam's talk today are here: > http://github.com/jschementi/mix09. > > > > Please see the release notes and changes for more information: > http://rubyforge.org/frs/shownotes.php?release_id=32447 > > > > ~Jimmy > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From lists at ruby-forum.com Sat Mar 21 16:33:41 2009 From: lists at ruby-forum.com (Paul Cowan) Date: Sat, 21 Mar 2009 21:33:41 +0100 Subject: [Ironruby-core] Executing an Ironruby file from a console app. Message-ID: <1d9cc84a713f1681fc3d747f896cd10f@ruby-forum.com> Hi all, I have the following ruby code which runs in a console application: require File.dirname(__FILE__) + '/lib/horn' require File.dirname(__FILE__) + '/lib/dsl' The file is named hornbuild.rb. The main ruby file has a require directive for this hornbuild.rb like so: require 'hornbuild' I then execute the ruby file like this: var engine = Ruby.CreateEngine(); engine.ExecuteFile(buildFilePath); The problem is that I can only get this scenario to work by copying the hornbuild.rb file and lib folder into the bin directory of the console application. Can I not put these files in the gems folder or something so they are globally accessible. If so, how can I achieve this? Cheers Paul -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Sat Mar 21 18:40:59 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Sat, 21 Mar 2009 23:40:59 +0100 Subject: [Ironruby-core] Executing an Ironruby file from a console app. In-Reply-To: <1d9cc84a713f1681fc3d747f896cd10f@ruby-forum.com> References: <1d9cc84a713f1681fc3d747f896cd10f@ruby-forum.com> Message-ID: You can set load paths. var engine = Ruby.CreateEngine(); var context = Ruby.GetExecutionContext(engine); context.Loader.SetPaths("C:\ironruby\lib"); On Sat, Mar 21, 2009 at 9:33 PM, Paul Cowan wrote: > Hi all, > > I have the following ruby code which runs in a console application: > > require File.dirname(__FILE__) + '/lib/horn' > require File.dirname(__FILE__) + '/lib/dsl' > > The file is named hornbuild.rb. > > The main ruby file has a require directive for this hornbuild.rb like > so: > > require 'hornbuild' > > I then execute the ruby file like this: > > var engine = Ruby.CreateEngine(); > engine.ExecuteFile(buildFilePath); > > The problem is that I can only get this scenario to work by copying the > hornbuild.rb file and lib folder into the bin directory of the console > application. > > Can I not put these files in the gems folder or something so they are > globally accessible. > > If so, how can I achieve this? > > Cheers > > Paul > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 Sat Mar 21 21:03:20 2009 From: lists at ruby-forum.com (George Mauer) Date: Sun, 22 Mar 2009 02:03:20 +0100 Subject: [Ironruby-core] Problem getting IronRuby running - it won't compile Message-ID: I would like to play around with IronRuby and am following the series here http://www.rubyinside.com/ironruby-tutorials-by-justin-etheredge-964.html and am getting stumped on step 2 (compile IronRuby) I open IronRuby.sln in VS2008 and compiling and I get 956 errors starting with 400 or so The type or namespace name 'Scripting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Any advice for what I should do (also general advice for playing with IronRuby is appreciated. This article: http://www.sapphiresteel.com/IronRuby-and-IntelliSense seems to imply that ruby in visual studio with full intellisense is available but I don't quite get how to set that up. -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Sat Mar 21 21:24:08 2009 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 22 Mar 2009 01:24:08 +0000 Subject: [Ironruby-core] Problem getting IronRuby running - it won't compile Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD03DC80@TK5EX14MBXC101.redmond.corp.microsoft.com> Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I thought it was). Are you using the old SVN sources? If so you should be using the Git repo, or the binary we just released at Rubyforge. JD -----Original Message----- From: George Mauer Sent: March 21, 2009 6:18 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Problem getting IronRuby running - it won't compile I would like to play around with IronRuby and am following the series here http://www.rubyinside.com/ironruby-tutorials-by-justin-etheredge-964.html and am getting stumped on step 2 (compile IronRuby) I open IronRuby.sln in VS2008 and compiling and I get 956 errors starting with 400 or so The type or namespace name 'Scripting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Any advice for what I should do (also general advice for playing with IronRuby is appreciated. This article: http://www.sapphiresteel.com/IronRuby-and-IntelliSense seems to imply that ruby in visual studio with full intellisense is available but I don't quite get how to set that up. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Sat Mar 21 23:30:44 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 21 Mar 2009 20:30:44 -0700 Subject: [Ironruby-core] Executing an Ironruby file from a console app. In-Reply-To: References: <1d9cc84a713f1681fc3d747f896cd10f@ruby-forum.com> Message-ID: ScriptEngine.SetSearchPaths should also work. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Saturday, March 21, 2009 3:41 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Executing an Ironruby file from a console app. You can set load paths. var engine = Ruby.CreateEngine(); var context = Ruby.GetExecutionContext(engine); context.Loader.SetPaths("C:\ironruby\lib"); On Sat, Mar 21, 2009 at 9:33 PM, Paul Cowan > wrote: Hi all, I have the following ruby code which runs in a console application: require File.dirname(__FILE__) + '/lib/horn' require File.dirname(__FILE__) + '/lib/dsl' The file is named hornbuild.rb. The main ruby file has a require directive for this hornbuild.rb like so: require 'hornbuild' I then execute the ruby file like this: var engine = Ruby.CreateEngine(); engine.ExecuteFile(buildFilePath); The problem is that I can only get this scenario to work by copying the hornbuild.rb file and lib folder into the bin directory of the console application. Can I not put these files in the gems folder or something so they are globally accessible. If so, how can I achieve this? Cheers Paul -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 Mar 22 14:58:01 2009 From: lists at ruby-forum.com (George Mauer) Date: Sun, 22 Mar 2009 19:58:01 +0100 Subject: [Ironruby-core] Problem getting IronRuby running - it won't compile In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD03DC80@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <0AB34E2BFBE88245B073D2D83B4245FD03DC80@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <8d14958ad4450158ced630d2e84fee36@ruby-forum.com> Oooh, yeah I was using the svn repository. I guess I have to go get Git Jim Deville wrote: > Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I > thought it was). Are you using the old SVN sources? If so you should be > using the Git repo, or the binary we just released at Rubyforge. > > JD -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Mon Mar 23 00:57:21 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Sun, 22 Mar 2009 21:57:21 -0700 Subject: [Ironruby-core] Updated dev instructions at http://wiki.github.com/ironruby/ironruby In-Reply-To: <8d14958ad4450158ced630d2e84fee36@ruby-forum.com> References: <0AB34E2BFBE88245B073D2D83B4245FD03DC80@TK5EX14MBXC101.redmond.corp.microsoft.com> <8d14958ad4450158ced630d2e84fee36@ruby-forum.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E0D54158D@NA-EXMSG-C104.redmond.corp.microsoft.com> http://wiki.github.com/ironruby/ironruby has recently been updated with all information you should need to build IronRuby, categorized into the following tasks: Getting the sources dev.bat - Setting up the dev environment Building RubySpec Debugging Modifying the sources Contributing If there is any additional information that would help you get up and running, do let us know (or update the wiki yourself). Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of George Mauer Sent: Sunday, March 22, 2009 11:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem getting IronRuby running - it won't compile Oooh, yeah I was using the svn repository. I guess I have to go get Git Jim Deville wrote: > Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I > thought it was). Are you using the old SVN sources? If so you should be > using the Git repo, or the binary we just released at Rubyforge. > > JD -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 bacondarwin at googlemail.com Mon Mar 23 06:03:53 2009 From: bacondarwin at googlemail.com (Pete Bacon Darwin) Date: Mon, 23 Mar 2009 10:03:53 -0000 Subject: [Ironruby-core] Updated dev instructions at http://wiki.github.com/ironruby/ironruby In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D54158D@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0AB34E2BFBE88245B073D2D83B4245FD03DC80@TK5EX14MBXC101.redmond.corp.microsoft.com> <8d14958ad4450158ced630d2e84fee36@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E0D54158D@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <004601c9ab9e$ad419a70$07c4cf50$@com> The debugging mspec bits look great! Much clearer than my waffle. Pete From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Monday,23 March 23, 2009 04:57 To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Updated dev instructions at http://wiki.github.com/ironruby/ironruby http://wiki.github.com/ironruby/ironruby has recently been updated with all information you should need to build IronRuby, categorized into the following tasks: Getting the sources dev.bat - Setting up the dev environment Building RubySpec Debugging Modifying the sources Contributing If there is any additional information that would help you get up and running, do let us know (or update the wiki yourself). Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of George Mauer Sent: Sunday, March 22, 2009 11:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem getting IronRuby running - it won't compile Oooh, yeah I was using the svn repository. I guess I have to go get Git Jim Deville wrote: > Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I > thought it was). Are you using the old SVN sources? If so you should be > using the Git repo, or the binary we just released at Rubyforge. > > JD -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 adam at kahtava.com Mon Mar 23 08:15:12 2009 From: adam at kahtava.com (Adam Kahtava) Date: Mon, 23 Mar 2009 06:15:12 -0600 Subject: [Ironruby-core] Mspec errors. Where should I start contributing? Message-ID: <947cb50c0903230515j24ef682tf71a34281e8ab917@mail.gmail.com> When running mspec (mspec -ci core\array\append) I get the following error: \Libraries.LCA_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) Should I be getting this error? How can I resolve this? I'd like to contribute. Where should I start? Should I be pulling items from the bug list: http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798 Thanks in advance, - Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at nurv.fr Mon Mar 23 12:24:35 2009 From: jb at nurv.fr (Jb Evain) Date: Mon, 23 Mar 2009 17:24:35 +0100 Subject: [Ironruby-core] [patch] rake file path issue Message-ID: <69f7d8470903230924x6f29775dw9b90cdb34eee5859@mail.gmail.com> Hey, This patch fixes a case issue when building with rake. Could it be applied? Thanks, -- Jb Evain -------------- next part -------------- A non-text attachment was scrubbed... Name: context.diff Type: text/x-patch Size: 1068 bytes Desc: not available URL: From Shri.Borde at microsoft.com Mon Mar 23 13:12:57 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 23 Mar 2009 10:12:57 -0700 Subject: [Ironruby-core] Mspec errors. Where should I start contributing? In-Reply-To: <947cb50c0903230515j24ef682tf71a34281e8ab917@mail.gmail.com> References: <947cb50c0903230515j24ef682tf71a34281e8ab917@mail.gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E10717DAD@NA-EXMSG-C104.redmond.corp.microsoft.com> There should be no hyphen before "ci". However, using your command (mspec -ci core\array\append) gives me a different error message saying "Unrecognized option: -ci". So that may or may not be the same issue you are seeing. Can you try running this : Unrecognized option: mspec ci core\array\append? Also, the following which will run with MRI and give you a baseline assuming you have ruby.exe on the path: mspec ci -tr core\array\append. We are going to try to have better recommendations for contributions in the next week or so. http://wiki.github.com/ironruby/ironruby/contributing should have this info, but it currently does not. For now, do you want to take a shot at fixing the tags in http://github.com/ironruby/ironruby/blob/cd988456fb3d102da84056e8e150d5376284cc8e/Merlin/External/Languages/IronRuby/mspec/ironruby-tags/core/string/to_i_tags.txt? Would be great to get your first commit in, even if it's a tiny bug fix, so we know that the contributing process does not have glitches. And in parallel, we can determine the best areas for you to contribute in. Btw, if you missed my previous email, http://wiki.github.com/ironruby/ironruby should have all the information to build and run tests with IronRuby. Let us know if there is anything missing there. Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Adam Kahtava Sent: Monday, March 23, 2009 5:15 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Mspec errors. Where should I start contributing? When running mspec (mspec -ci core\array\append) I get the following error: \Libraries.LCA_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) Should I be getting this error? How can I resolve this? I'd like to contribute. Where should I start? Should I be pulling items from the bug list: http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798 Thanks in advance, - Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Mar 23 13:17:38 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 23 Mar 2009 17:17:38 +0000 Subject: [Ironruby-core] Mspec errors. Where should I start contributing? In-Reply-To: <947cb50c0903230515j24ef682tf71a34281e8ab917@mail.gmail.com> References: <947cb50c0903230515j24ef682tf71a34281e8ab917@mail.gmail.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD042113@TK5EX14MBXC101.redmond.corp.microsoft.com> So it looks like there are 2 issues here. One is the immediate issue: You don't have %HOME% set, which is why this error occurs. Underneath that there is a real issue: IronRuby isn't searching for a %HOME% replacement in the same way that Ruby does. Ruby can find ~ even if HOME, HOMEDRIVE, HOMEPATH, and USERPROFILE are all unset. I'm not sure what algorithm they use at that point. So to contribute: 1) We need you to follow the steps at http://wiki.github.com/ironruby/ironruby/contributing, especially the portion about signing the agreement 2) If you want to fix this error (which is going to be resolved in the path referenced below), go for it, then send IronRuby a pull request on Github. I'll pull your changes in. 3) If you want to work on something else, feel free to grab a bug from RubyForge from the Triaged category after Tomas adds some more (Tomas, can you add more bugs to that category :)) a. Or, like Shri suggested in the other thread, choose a tag file and fix all the tags Let us know if you have any questions! JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Adam Kahtava Sent: Monday, March 23, 2009 5:15 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Mspec errors. Where should I start contributing? When running mspec (mspec -ci core\array\append) I get the following error: \Libraries.LCA_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) Should I be getting this error? How can I resolve this? I'd like to contribute. Where should I start? Should I be pulling items from the bug list: http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798 Thanks in advance, - Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Mar 23 13:19:05 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 23 Mar 2009 17:19:05 +0000 Subject: [Ironruby-core] [patch] rake file path issue In-Reply-To: <69f7d8470903230924x6f29775dw9b90cdb34eee5859@mail.gmail.com> References: <69f7d8470903230924x6f29775dw9b90cdb34eee5859@mail.gmail.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD04214E@TK5EX14MBXC101.redmond.corp.microsoft.com> I'll apply it today when I pull Shri and my latest work in. Do we have a contributor agreement from you? JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jb Evain > Sent: Monday, March 23, 2009 9:25 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] [patch] rake file path issue > > Hey, > > This patch fixes a case issue when building with rake. Could it be > applied? > > Thanks, > > -- > Jb Evain From Jimmy.Schementi at microsoft.com Mon Mar 23 13:43:14 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 23 Mar 2009 17:43:14 +0000 Subject: [Ironruby-core] Problem getting IronRuby running - it won't compile In-Reply-To: <8d14958ad4450158ced630d2e84fee36@ruby-forum.com> References: <0AB34E2BFBE88245B073D2D83B4245FD03DC80@TK5EX14MBXC101.redmond.corp.microsoft.com>, <8d14958ad4450158ced630d2e84fee36@ruby-forum.com> Message-ID: Anyone care if we completely kill the SVN repository so folks don't stumble upon it anymore? ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of George Mauer [lists at ruby-forum.com] Sent: Sunday, March 22, 2009 11:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Problem getting IronRuby running - it won't compile Oooh, yeah I was using the svn repository. I guess I have to go get Git Jim Deville wrote: > Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I > thought it was). Are you using the old SVN sources? If so you should be > using the Git repo, or the binary we just released at Rubyforge. > > JD -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Mon Mar 23 13:52:36 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 23 Mar 2009 17:52:36 +0000 Subject: [Ironruby-core] [patch] rake file path issue In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD04214E@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <69f7d8470903230924x6f29775dw9b90cdb34eee5859@mail.gmail.com>, <0AB34E2BFBE88245B073D2D83B4245FD04214E@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: Jim, for this patch (a single-character change) I think we can treat it as a bug-report, and make the fix. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Jim Deville [jdeville at microsoft.com] Sent: Monday, March 23, 2009 10:19 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] [patch] rake file path issue I'll apply it today when I pull Shri and my latest work in. Do we have a contributor agreement from you? JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jb Evain > Sent: Monday, March 23, 2009 9:25 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] [patch] rake file path issue > > Hey, > > This patch fixes a case issue when building with rake. Could it be > applied? > > Thanks, > > -- > Jb Evain _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Mon Mar 23 14:03:45 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 23 Mar 2009 18:03:45 +0000 Subject: [Ironruby-core] Mspec errors. Where should I start contributing? In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD042113@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <947cb50c0903230515j24ef682tf71a34281e8ab917@mail.gmail.com> <0AB34E2BFBE88245B073D2D83B4245FD042113@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD04266A@TK5EX14MBXC101.redmond.corp.microsoft.com> Correction this was wrong. IRB isn't using Powershell's env variables, so when I unset all of those variables, Ruby still had them set. My bad. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday, March 23, 2009 10:18 AM To: ironruby-core at rubyforge.org; Tomas Matousek Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? So it looks like there are 2 issues here. One is the immediate issue: You don't have %HOME% set, which is why this error occurs. Underneath that there is a real issue: IronRuby isn't searching for a %HOME% replacement in the same way that Ruby does. Ruby can find ~ even if HOME, HOMEDRIVE, HOMEPATH, and USERPROFILE are all unset. I'm not sure what algorithm they use at that point. So to contribute: 1) We need you to follow the steps at http://wiki.github.com/ironruby/ironruby/contributing, especially the portion about signing the agreement 2) If you want to fix this error (which is going to be resolved in the path referenced below), go for it, then send IronRuby a pull request on Github. I'll pull your changes in. 3) If you want to work on something else, feel free to grab a bug from RubyForge from the Triaged category after Tomas adds some more (Tomas, can you add more bugs to that category :)) a. Or, like Shri suggested in the other thread, choose a tag file and fix all the tags Let us know if you have any questions! JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Adam Kahtava Sent: Monday, March 23, 2009 5:15 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Mspec errors. Where should I start contributing? When running mspec (mspec -ci core\array\append) I get the following error: \Libraries.LCA_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) Should I be getting this error? How can I resolve this? I'd like to contribute. Where should I start? Should I be pulling items from the bug list: http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798 Thanks in advance, - Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Mar 23 14:06:51 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 23 Mar 2009 18:06:51 +0000 Subject: [Ironruby-core] [patch] rake file path issue In-Reply-To: References: <69f7d8470903230924x6f29775dw9b90cdb34eee5859@mail.gmail.com>, <0AB34E2BFBE88245B073D2D83B4245FD04214E@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0426E1@TK5EX14MBXC101.redmond.corp.microsoft.com> Sounds good. I'll apply it. JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Jimmy Schementi > Sent: Monday, March 23, 2009 10:53 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] [patch] rake file path issue > > Jim, for this patch (a single-character change) I think we can treat it > as a bug-report, and make the fix. > > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ironruby-core- > bounces at rubyforge.org] on behalf of Jim Deville > [jdeville at microsoft.com] > Sent: Monday, March 23, 2009 10:19 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] [patch] rake file path issue > > I'll apply it today when I pull Shri and my latest work in. Do we have > a contributor agreement from you? > > JD > > > -----Original Message----- > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > > bounces at rubyforge.org] On Behalf Of Jb Evain > > Sent: Monday, March 23, 2009 9:25 AM > > To: ironruby-core at rubyforge.org > > Subject: [Ironruby-core] [patch] rake file path issue > > > > Hey, > > > > This patch fixes a case issue when building with rake. Could it be > > applied? > > > > Thanks, > > > > -- > > Jb Evain > _______________________________________________ > 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 From jb at nurv.fr Mon Mar 23 14:29:47 2009 From: jb at nurv.fr (Jb Evain) Date: Mon, 23 Mar 2009 19:29:47 +0100 Subject: [Ironruby-core] [patch] rake file path issue In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD04214E@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <69f7d8470903230924x6f29775dw9b90cdb34eee5859@mail.gmail.com> <0AB34E2BFBE88245B073D2D83B4245FD04214E@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <69f7d8470903231129y7df82ebap596e43e170d39bd@mail.gmail.com> Hey, On 3/23/09, Jim Deville wrote: > I'll apply it today when I pull Shri and my latest work in. Do we have a contributor agreement from you? Yeah. -- Jb Evain From ivan at flanders.co.nz Mon Mar 23 15:32:14 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 23 Mar 2009 20:32:14 +0100 Subject: [Ironruby-core] Debugging ruby code in a host Message-ID: Hi With my IronRubyMVC implementation I'm far enough to figure out that I need to be able to put breakpoints in my ruby code :) Now the question is how, because I think I tried all of the ways that are described in the wiki but had no success. I have a debug version of IronRuby and I'm using it in a C# ASP.NET MVC project with the System.Web.Mvc.IronRuby dll as a reference. The web application hosts the scriptruntime etc. Now what do I need to do to make visual studio break on the breakpoint I define? In merging the latest git pushes into the linux branch I've seen a pdb generator does that mean I can actually get to more meaningful stack traces etc. again the question how springs to mind? :) Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Mon Mar 23 16:17:59 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Mar 2009 13:17:59 -0700 Subject: [Ironruby-core] Debugging ruby code in a host In-Reply-To: References: Message-ID: Is DebugMode property of the ScriptRuntimeSetup of the ScriptRuntime you run the script in set to true? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, March 23, 2009 12:32 PM To: ironruby-core Subject: [Ironruby-core] Debugging ruby code in a host Hi With my IronRubyMVC implementation I'm far enough to figure out that I need to be able to put breakpoints in my ruby code :) Now the question is how, because I think I tried all of the ways that are described in the wiki but had no success. I have a debug version of IronRuby and I'm using it in a C# ASP.NET MVC project with the System.Web.Mvc.IronRuby dll as a reference. The web application hosts the scriptruntime etc. Now what do I need to do to make visual studio break on the breakpoint I define? In merging the latest git pushes into the linux branch I've seen a pdb generator does that mean I can actually get to more meaningful stack traces etc. again the question how springs to mind? :) Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Mar 23 16:32:09 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 23 Mar 2009 20:32:09 +0000 Subject: [Ironruby-core] Debugging ruby code in a host In-Reply-To: References: Message-ID: When you create the ScriptRuntimeSetup, do this: setup.Debug = true; That will tell the DLR to generate debuggable code. ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Ivan Porto Carrero [ivan at flanders.co.nz] Sent: Monday, March 23, 2009 12:32 PM To: ironruby-core Subject: [Ironruby-core] Debugging ruby code in a host Hi With my IronRubyMVC implementation I'm far enough to figure out that I need to be able to put breakpoints in my ruby code :) Now the question is how, because I think I tried all of the ways that are described in the wiki but had no success. I have a debug version of IronRuby and I'm using it in a C# ASP.NET MVC project with the System.Web.Mvc.IronRuby dll as a reference. The web application hosts the scriptruntime etc. Now what do I need to do to make visual studio break on the breakpoint I define? In merging the latest git pushes into the linux branch I've seen a pdb generator does that mean I can actually get to more meaningful stack traces etc. again the question how springs to mind? :) Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Mar 23 16:47:11 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 23 Mar 2009 20:47:11 +0000 Subject: [Ironruby-core] Debugging ruby code in a host In-Reply-To: References: Message-ID: Woops ... setup.DebugMode (like Tomas said) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Monday, March 23, 2009 1:32 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Debugging ruby code in a host When you create the ScriptRuntimeSetup, do this: setup.Debug = true; That will tell the DLR to generate debuggable code. ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Ivan Porto Carrero [ivan at flanders.co.nz] Sent: Monday, March 23, 2009 12:32 PM To: ironruby-core Subject: [Ironruby-core] Debugging ruby code in a host Hi With my IronRubyMVC implementation I'm far enough to figure out that I need to be able to put breakpoints in my ruby code :) Now the question is how, because I think I tried all of the ways that are described in the wiki but had no success. I have a debug version of IronRuby and I'm using it in a C# ASP.NET MVC project with the System.Web.Mvc.IronRuby dll as a reference. The web application hosts the scriptruntime etc. Now what do I need to do to make visual studio break on the breakpoint I define? In merging the latest git pushes into the linux branch I've seen a pdb generator does that mean I can actually get to more meaningful stack traces etc. again the question how springs to mind? :) Thanks Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Mar 23 17:13:59 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 23 Mar 2009 22:13:59 +0100 Subject: [Ironruby-core] Debugging ruby code in a host In-Reply-To: References: Message-ID: Yes.. I'll try again.. maybe I missed something. I should really say that the file that has the ruby code is an assembly resource that gets read through an AssemblyReaderStreamContentProvider. Should I be providing that content differently? http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/RubyEngine.cs#L352 I use http://gist.github.com/74979 to set a breakpoint. 2009/3/23 Tomas Matousek > Is DebugMode property of the ScriptRuntimeSetup of the ScriptRuntime you > run the script in set to *true*? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, March 23, 2009 12:32 PM > *To:* ironruby-core > *Subject:* [Ironruby-core] Debugging ruby code in a host > > > > Hi > > With my IronRubyMVC implementation I'm far enough to figure out that I need > to be able to put breakpoints in my ruby code :) > Now the question is how, because I think I tried all of the ways that are > described in the wiki but had no success. I have a debug version of IronRuby > and I'm using it in a C# ASP.NET MVC project with the > System.Web.Mvc.IronRuby dll as a reference. The web application hosts the > scriptruntime etc. Now what do I need to do to make visual studio break on > the breakpoint I define? > > In merging the latest git pushes into the linux branch I've seen a pdb > generator does that mean I can actually get to more meaningful stack traces > etc. again the question how springs to mind? :) > > Thanks > Ivan > > _______________________________________________ > 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 mandel at themacaque.com Mon Mar 23 17:18:31 2009 From: mandel at themacaque.com (Manuel de la Pena) Date: Mon, 23 Mar 2009 22:18:31 +0100 Subject: [Ironruby-core] IronRuby on mono and Monodevelop Message-ID: <1237843111.8534.49.camel@mandel-desktop> Hello there, I am trying to provide all the required code to get Monodevelop add support to IronRuby. So far I just have used IronRuby on a Windows machine and I was wondering if there are any instructions on how to get IronRuby on Linux/Mac OS X using mono. I have read this http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/ but it does not work with the latest svn mono build, the output is the following: using rake: (in /home/mandel/Code/ruby/ironruby) rake aborted! can't dup NilClass /home/mandel/Code/ruby/ironruby/Rakefile:18:in `require' (See full trace by running task with --trace) using mdtool: MonoDevelop Build Tool Loading solution: IronRuby.sln Loading solution: IronRuby.sln Loading projects .. ERROR [2009-03-23 22:15:50Z]: Error while trying to load the project /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj. Exception : System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj". at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string,System.Text.Encoding) at System.IO.File.ReadAllText (System.String path, System.Text.Encoding encoding) [0x00000] at System.IO.File.ReadAllText (System.String path) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load (IProgressMonitor monitor, System.String fileName, System.String language, System.Type itemClass) [0x00000] at MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, System.String itemGuid) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem (IProgressMonitor monitor, System.String fileName, System.String typeGuid, System.String itemGuid) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat +c__AnonStorey46.<>m__14 (IProgressMonitor , System.String ) [0x00000] at MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution (MonoDevelop.Projects.Solution sol, System.String fileName, IProgressMonitor monitor) [0x00000] WARNING: Error while trying to load the project '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft .Scripting.Core.csproj': Could not find a part of the path "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft .Scripting.Core.csproj". ERROR [2009-03-23 22:15:50Z]: Error while trying to load the project /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scripting.csproj. Exception : System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scripting.csproj". at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.OpenRead (System.String path) [0x00000] at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string,System.Text.Encoding) at System.IO.File.ReadAllText (System.String path, System.Text.Encoding encoding) [0x00000] at System.IO.File.ReadAllText (System.String path) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load (IProgressMonitor monitor, System.String fileName, System.String language, System.Type itemClass) [0x00000] at MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, System.String itemGuid) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem (IProgressMonitor monitor, System.String fileName, System.String typeGuid, System.String itemGuid) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat +c__AnonStorey46.<>m__14 (IProgressMonitor , System.String ) [0x00000] at MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution (MonoDevelop.Projects.Solution sol, System.String fileName, IProgressMonitor monitor) [0x00000] WARNING: Error while trying to load the project '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri pting.csproj': Could not find a part of the path "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri pting.csproj". Building: IronRuby (Debug) Building Solution IronRuby Building: Ruby (Debug) Performing main compilation... WARNING: The reference 'System.Net, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' is not valid for the target framework of the project. WARNING: Assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors. WARNING: Referenced project 'Microsoft.Scripting.Core' not found in the solution. WARNING: Referenced project 'Microsoft.Scripting.ExtensionAttribute' not found in the solution. WARNING: Referenced project 'Microsoft.Scripting' not found in the solution. /usr/local/bin/gmcs "/out:/home/mandel/Code/ruby/ironruby/build/debug/IronRuby.dll" "/r:System.dll" "/r:System.Configuration.dll" "/r:System.Data.dll" "/r:System.Xml.dll" /noconfig /nologo /warn:4 /debug: + /debug:full /optimize- /codepage:utf8 -warnaserror /define:"TRACE;DEBUG" /t:library "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/binding.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/genericregex.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/hash.subclass.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyarray.subcla ss.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.subcla ss.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.co ntent.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.su bclass.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.subclass.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyclass.meta.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyencoding.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.bi narycontent.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st ringbuildercontent.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st ringcontent.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/File.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/glob.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/kernel.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstr eam.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyMethod.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregexoptions .cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubystruct.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/typedescriptor.g enerated.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ ConditionalJumpExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ encodingexpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ regexmatchreference.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ RescueExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ UnlessExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Identifier.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/P laceholder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/scopebuilder .cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/C onditionalStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/CallBuilder. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk er.Generated.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Node Types.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk er.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Errors.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/parsersta ck.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosa ction.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubylibrary methodinfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubymethodg roupbase.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschel pers.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/overr iddenmembers.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt ypedispenser.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/inter facesbuilder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt ypeemitter.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/typed escription.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/RubyT ypeBuilder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/itype feature.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/clsty peemitter.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/variablef actory.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/ResultOperation. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/UnsignedBigInteg erParser.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/globalsuppressions.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Ruby.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat chern.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/ArgsBuilder .cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/CallArgumen ts.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat cherunsplatn.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/callsitetra cer.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyinvokem emberbinder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/metaobjectb uilder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolcon versionaction.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallact ion.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallsig nature.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyparamet erbinder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/supercallac tion.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyaccesso rinfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat cher.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyCustomM ethodInfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RuleGenerat ors.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat chers.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/integervalue.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/irubyobjectstate. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/EqualityComparer. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar iables.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/kcode.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/ReadOnlyG lobalVariableInfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar iableInfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar iable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/SpecialGl obalVariableInfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IDuplicable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IRubyObject.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/InstanceData.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/instancedataweakt able.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Exceptions.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Range.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/ReferenceEquality Comparer.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ RangeExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.Generat ed.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Initializer.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AstGenerator.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Arguments.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/AstFactory.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Else IfClause.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Resc ueClause.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/When Clause.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ AndExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ ArrayConstructor.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ isdefinedexpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ CaseExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ ForLoopExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ HashConstructor.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ IfExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ Literal.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ NotExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ OrExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ RegularExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ StringConstructor.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Body.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ WhileLoopExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen ts/BreakStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen ts/JumpStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen ts/NextStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen ts/RedoStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen ts/RetryStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen ts/ReturnStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A rrayItemAccess.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C lassVariable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/G lobalVariable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/I nstanceVariable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L eftValue.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C ompoundLeftValue.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ MemberAssignmentExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ CompoundRightValue.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ SimpleAssignmentExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Block.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockReferen ce.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations /MethodDeclaration.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations /ModuleDeclaration.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations /ClassDeclaration.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations /SingletonDeclaration.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ AssignmentExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ BlockExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ CallExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ DeclarationExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ ErrorExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ Expression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ MethodCall.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ ParallelAssignmentExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ SelfReference.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ SuperCall.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ YieldCall.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L ocalVariable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Maplet.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Parameters.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockDefinit ion.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Node.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/SourceUnitTr ee.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/A liasStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ ConditionalExpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/F inalizer.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/I nitializer.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/U ndefineStatement.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A ttributeAccess.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C onstantVariable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/V ariable.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/LexicalSc ope.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.Ge nerated.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Symbols.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/stringtok enizer.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Tokenizer .cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/GPPG.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/TokenValu e.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/RubyCompilerOpti ons.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Tokens.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyCommandLine.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyOptionsParser .cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Properties/AssemblyInfo.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/MethodVisibility. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyBinder. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyCallTargets.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/evalentrypointdel egate.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Loader.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyEventIn fo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptionData .cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptions.cs " "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyFieldIn fo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyLambdaM ethodInfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMemberI nfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodG roupInfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyinputprovide r.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyglobalscope.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyOps.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodI nfo.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyContext.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyoptions.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyScope.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubySites.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyUtils.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeFlowContro l.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeErrorSink. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/StackUnwinder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/union.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/utils.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.subcla ss.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/range.subclass.c s" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ matchexpression.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ stringliteral.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ symbolliteral.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/emitt edattribute.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/profi ler.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. generated.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/rubycompatibility.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.subcl ass.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycreatei nstancebinder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubygetmemb erbinder.cs" "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/iowrapper.cs" /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( 19,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( 20,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(1 9,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(2 0,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(17,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(18,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(18,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(22,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(18,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(19,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( 19,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( 20,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( 23,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(17,1 4): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(18,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(19,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(18,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(21,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(22,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(34,3 8): error CS0246: The type or namespace name `DynamicMetaObject' could not be found. Are you missing a using directive or an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c s(17,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c s(18,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(21, 17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(22, 17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(23, 17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(24, 17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c s(28,31): error CS0246: The type or namespace name `DynamicMetaObject' could not be found. Are you missing a using directive or an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(22,1 4): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(24,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(25,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(26,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(27,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c s(18,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c s(19,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c s(21,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c s(22,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c s(36,38): error CS0246: The type or namespace name `DynamicMetaObject' could not be found. Are you missing a using directive or an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(19,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(20,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs(16,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstre am.cs(19,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(17, 17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(18, 17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(19, 17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c s(17,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c s(19,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c s(30,31): error CS0246: The type or namespace name `DynamicMetaObject' could not be found. Are you missing a using directive or an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs (22,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs (23,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ MethodDeclaration.cs(19,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ MethodDeclaration.cs(20,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ MethodDeclaration.cs(21,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ MethodDeclaration.cs(25,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv ersionaction.cs(19,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv ersionaction.cs(20,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv ersionaction.cs(21,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv ersionaction.cs(22,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv ersionaction.cs(23,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv ersionaction.cs(29,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosac tion.cs(20,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp ers.cs(22,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp ers.cs(23,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp ers.cs(24,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs(17,1 7): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs( 18,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs (19,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs (21,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs (22,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs (36,38): error CS0246: The type or namespace name `DynamicMetaObject' could not be found. Are you missing a using directive or an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti on.cs(20,14): error CS0234: The type or namespace name `Dynamic' does not exist in the namespace `System'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti on.cs(22,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti on.cs(23,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti on.cs(24,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti on.cs(25,17): error CS0234: The type or namespace name `Scripting' does not exist in the namespace `Microsoft'. Are you missing an assembly reference? /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti on.cs(37,88): error CS0246: The type or namespace name `IExpressionSerializable' could not be found. Are you missing a using directive or an assembly reference? Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at Mono.CSharp.TypeContainer.CheckRecursiveDefinition (Mono.CSharp.TypeContainer tc) [0x00000] at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] at Mono.CSharp.TypeContainer.DefineType () [0x00000] at Mono.CSharp.Namespace.LookupType (System.String name, Location loc) [0x00000] at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, System.String name, Location loc) [0x00000] at Mono.CSharp.NamespaceEntry.Lookup (Mono.CSharp.DeclSpace ds, System.String name, Location loc, Boolean ignore_cs0104) [0x00000] at Mono.CSharp.NamespaceEntry.LookupNamespaceOrType (Mono.CSharp.DeclSpace ds, System.String name, Location loc, Boolean ignore_cs0104) [0x00000] at Mono.CSharp.DeclSpace.LookupNamespaceOrType (System.String name, Location loc, Boolean ignore_cs0104) [0x00000] at Mono.CSharp.DeclSpace.LookupNamespaceOrType (System.String name, Location loc, Boolean ignore_cs0104) [0x00000] at Mono.CSharp.SimpleName.ResolveAsTypeStep (IResolveContext ec, Boolean silent) [0x00000] at Mono.CSharp.Expression.ResolveAsBaseTerminal (IResolveContext ec, Boolean silent) [0x00000] at Mono.CSharp.TypeContainer.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] at Mono.CSharp.Class.ResolveBaseTypes (Mono.CSharp.TypeExpr& base_class) [0x00000] at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] at Mono.CSharp.TypeContainer.DefineType () [0x00000] at Mono.CSharp.TypeContainer.DefineNestedTypes () [0x00000] at Mono.CSharp.TypeContainer.DefineType () [0x00000] at Mono.CSharp.RootContext.ResolveTree () [0x00000] at Mono.CSharp.Driver.Compile () [0x00000] at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] Build complete -- 75 errors, 5 warnings Building: microsoft.scripting.extensionattribute (Debug) Performing main compilation... WARNING: Assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the assembly exists in disk. If the reference is required to build the project you may get compilation errors. /usr/local/bin/gmcs "/out:/home/mandel/Code/ruby/ironruby/build/debug/Microsoft.Scripting.E xtensionAttribute.dll" "/r:System.dll" /noconfig /nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 -warnaserror /define:"TRACE;DEBUG;MICROSOFT_SCRIPTING_CORE" /t:library "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/propertie s/extensionassemblyinfo.cs" "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/utils/ext ension.cs" Build complete -- 0 errors, 1 warning Do you guys have any idea how could I build IronRuby using the *nix or mono tools? Thanks in advance. mandel => manuel From ivan at flanders.co.nz Mon Mar 23 17:48:19 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 23 Mar 2009 22:48:19 +0100 Subject: [Ironruby-core] IronRuby on mono and Monodevelop In-Reply-To: <1237843111.8534.49.camel@mandel-desktop> References: <1237843111.8534.49.camel@mandel-desktop> Message-ID: The binaries there are current. I try to keep up with ironruby pushes: http://github.com/casualjim/ironruby-mono-builds/tree/master Alternatively you can build it yourself. Everything you need is included in the linux branch of this git repo. http://github.com/mletterle/ironruby/tree/linux You do need the github version though. You can download the binaries directly here: http://github.com/casualjim/ironruby-mono-builds/tarball/master On Mon, Mar 23, 2009 at 10:18 PM, Manuel de la Pena wrote: > Hello there, > > I am trying to provide all the required code to get Monodevelop add > support to IronRuby. So far I just have used IronRuby on a Windows > machine and I was wondering if there are any instructions on how to get > IronRuby on Linux/Mac OS X using mono. > > I have read this http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/ > but it does not work with the latest svn mono build, the output is the > following: > > using rake: > > (in /home/mandel/Code/ruby/ironruby) > rake aborted! > can't dup NilClass > /home/mandel/Code/ruby/ironruby/Rakefile:18:in `require' > (See full trace by running task with --trace) > > using mdtool: > > MonoDevelop Build Tool > Loading solution: IronRuby.sln > Loading solution: IronRuby.sln > Loading projects .. > ERROR [2009-03-23 22:15:50Z]: Error while trying to load the > project > /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj. > Exception : System.IO.DirectoryNotFoundException: Could not find a part of > the path > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj". > at System.IO.FileStream..ctor (System.String path, FileMode mode, > FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, > FileOptions options) [0x00000] > at System.IO.FileStream..ctor (System.String path, FileMode mode, > FileAccess access, FileShare share) [0x00000] > at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor > (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) > at System.IO.File.OpenRead (System.String path) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, > Int32 bufferSize) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding) [0x00000] > at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor > (string,System.Text.Encoding) > at System.IO.File.ReadAllText (System.String path, > System.Text.Encoding encoding) [0x00000] > at System.IO.File.ReadAllText (System.String path) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load > (IProgressMonitor monitor, System.String fileName, System.String > language, System.Type itemClass) [0x00000] > at MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, System.String > itemGuid) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem > (IProgressMonitor monitor, System.String fileName, System.String > typeGuid, System.String itemGuid) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat > +c__AnonStorey46.<>m__14 (IProgressMonitor , > System.String ) [0x00000] > at > MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at > MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution > (MonoDevelop.Projects.Solution sol, System.String fileName, > IProgressMonitor monitor) [0x00000] > WARNING: Error while trying to load the project > > '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft > .Scripting.Core.csproj': Could not find a part of the path > > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft > .Scripting.Core.csproj". > ERROR [2009-03-23 22:15:50Z]: Error while trying to load the > project > /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scripting.csproj. > Exception : System.IO.DirectoryNotFoundException: Could not find a part of > the path > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scripting.csproj". > at System.IO.FileStream..ctor (System.String path, FileMode mode, > FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, > FileOptions options) [0x00000] > at System.IO.FileStream..ctor (System.String path, FileMode mode, > FileAccess access, FileShare share) [0x00000] > at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor > (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) > at System.IO.File.OpenRead (System.String path) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, > Int32 bufferSize) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding) [0x00000] > at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor > (string,System.Text.Encoding) > at System.IO.File.ReadAllText (System.String path, > System.Text.Encoding encoding) [0x00000] > at System.IO.File.ReadAllText (System.String path) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load > (IProgressMonitor monitor, System.String fileName, System.String > language, System.Type itemClass) [0x00000] > at MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, System.String > itemGuid) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem > (IProgressMonitor monitor, System.String fileName, System.String > typeGuid, System.String itemGuid) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat > +c__AnonStorey46.<>m__14 (IProgressMonitor , > System.String ) [0x00000] > at > MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at > MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution > (MonoDevelop.Projects.Solution sol, System.String fileName, > IProgressMonitor monitor) [0x00000] > WARNING: Error while trying to load the project > > '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri > pting.csproj': Could not find a part of the path > > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri > pting.csproj". > Building: IronRuby (Debug) > Building Solution IronRuby > Building: Ruby (Debug) > Performing main compilation... > WARNING: The reference 'System.Net, Version=2.0.5.0, > Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' is not valid for the target > framework > of the project. > WARNING: Assembly 'System, Version=2.0.5.0, Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the > assembly exists in disk. If the reference is required to build > the > project you may get compilation errors. > WARNING: Referenced project 'Microsoft.Scripting.Core' not > found in > the solution. > WARNING: Referenced project > 'Microsoft.Scripting.ExtensionAttribute' > not found in the solution. > WARNING: Referenced project 'Microsoft.Scripting' not found in > the > solution. > /usr/local/bin/gmcs > "/out:/home/mandel/Code/ruby/ironruby/build/debug/IronRuby.dll" > "/r:System.dll" "/r:System.Configuration.dll" > "/r:System.Data.dll" > "/r:System.Xml.dll" /noconfig /nologo /warn:4 /debug: > + /debug:full > /optimize- /codepage:utf8 -warnaserror /define:"TRACE;DEBUG" > /t:library > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/binding.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/genericregex.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/hash.subclass.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyarray.subcla > ss.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.subcla > ss.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.co > ntent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.su > bclass.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.subclass.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyclass.meta.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyencoding.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.bi > narycontent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st > ringbuildercontent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st > ringcontent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta. > cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/File.cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/glob.cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/kernel.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstr > eam.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyMethod.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregexoptions > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubystruct.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/typedescriptor.g > enerated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ConditionalJumpExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > encodingexpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > regexmatchreference.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > RescueExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > UnlessExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Identifier.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/P > laceholder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/scopebuilder > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/C > onditionalStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/CallBuilder. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk > er.Generated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Node > Types.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk > er.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Errors.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/parsersta > ck.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosa > ction.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubylibrary > methodinfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubymethodg > roupbase.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschel > pers.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/overr > iddenmembers.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt > ypedispenser.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/inter > facesbuilder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt > ypeemitter.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/typed > escription.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/RubyT > ypeBuilder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/itype > feature.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/clsty > peemitter.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/variablef > actory.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/ResultOperation. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/UnsignedBigInteg > erParser.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/globalsuppressions.cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Ruby.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > chern.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/ArgsBuilder > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/CallArgumen > ts.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > cherunsplatn.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/callsitetra > cer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyinvokem > emberbinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/metaobjectb > uilder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolcon > versionaction.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallact > ion.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallsig > nature.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyparamet > erbinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/supercallac > tion.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyaccesso > rinfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > cher.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyCustomM > ethodInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RuleGenerat > ors.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > chers.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/integervalue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/irubyobjectstate. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/EqualityComparer. > cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > iables.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/kcode.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/ReadOnlyG > lobalVariableInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > iableInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > iable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/SpecialGl > obalVariableInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IDuplicable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IRubyObject.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/InstanceData.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/instancedataweakt > able.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Exceptions.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs > " > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Range.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/ReferenceEquality > Comparer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > RangeExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.Generat > ed.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Initializer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AstGenerator.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Arguments.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/AstFactory.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Else > IfClause.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Resc > ueClause.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/When > Clause.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > AndExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ArrayConstructor.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > isdefinedexpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > CaseExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ForLoopExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > HashConstructor.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > IfExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > Literal.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > NotExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > OrExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > RegularExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > StringConstructor.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Body.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > WhileLoopExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/BreakStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/JumpStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/NextStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/RedoStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/RetryStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/ReturnStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A > rrayItemAccess.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > lassVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/G > lobalVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/I > nstanceVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L > eftValue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > ompoundLeftValue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > MemberAssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > CompoundRightValue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > SimpleAssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Block.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockReferen > ce.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /MethodDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /ModuleDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /ClassDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /SingletonDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > AssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > BlockExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > CallExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > DeclarationExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ErrorExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > Expression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > MethodCall.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > ParallelAssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > SelfReference.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > SuperCall.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > YieldCall.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L > ocalVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Maplet.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Parameters.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockDefinit > ion.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Node.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/SourceUnitTr > ee.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/A > liasStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ConditionalExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/F > inalizer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/I > nitializer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/U > ndefineStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A > ttributeAccess.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > onstantVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/V > ariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/LexicalSc > ope.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.Ge > nerated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Symbols.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/stringtok > enizer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Tokenizer > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/GPPG.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/TokenValu > e.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/RubyCompilerOpti > ons.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Tokens.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyCommandLine.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyOptionsParser > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Properties/AssemblyInfo.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/MethodVisibility. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyBinder. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyCallTargets.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/evalentrypointdel > egate.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Loader.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyEventIn > fo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptionData > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptions.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyFieldIn > fo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyLambdaM > ethodInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMemberI > nfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodG > roupInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyinputprovide > r.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyglobalscope.c > s" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyOps.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodI > nfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyContext.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyoptions.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyScope.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubySites.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyUtils.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeFlowContro > l.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeErrorSink. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/StackUnwinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/union.cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/utils.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.subcla > ss.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/range.subclass.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > matchexpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > stringliteral.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > symbolliteral.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/emitt > edattribute.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/profi > ler.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. > generated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/rubycompatibility.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.subcl > ass.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycreatei > nstancebinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubygetmemb > erbinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/iowrapper.cs" > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( > 19,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( > 20,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(1 > 9,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(2 > 0,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(17,17): > error CS0234: The type or namespace name `Scripting' does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(18,17): > error CS0234: The type or namespace name `Scripting' does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(18,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(22,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(18,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(19,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > 19,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > 20,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > 23,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(17,1 > 4): error CS0234: The type or namespace name `Dynamic' does not > exist > in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(18,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(19,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(18,14): > error CS0234: The type or namespace name `Dynamic' does not > exist in > the namespace `System'. Are you missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(21,17): > error CS0234: The type or namespace name `Scripting' does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(22,17): > error CS0234: The type or namespace name `Scripting' does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(34,3 > 8): error CS0246: The type or namespace name > `DynamicMetaObject' could > not be found. Are you missing a using directive or an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > s(17,14): error CS0234: The type or namespace name `Dynamic' > does not > exist in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > s(18,17): error CS0234: The type or namespace name `Scripting' > does > not exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(21, > 17): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(22, > 17): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(23, > 17): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(24, > 17): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > s(28,31): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(22,1 > 4): error CS0234: The type or namespace name `Dynamic' does not > exist > in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(24,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(25,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(26,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(27,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(18,14): error CS0234: The type or namespace name `Dynamic' > does not > exist in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(19,14): error CS0234: The type or namespace name `Dynamic' > does not > exist in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(21,17): error CS0234: The type or namespace name `Scripting' > does > not exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(22,17): error CS0234: The type or namespace name `Scripting' > does > not exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(36,38): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive or an > assembly > reference? > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(19,17): > error CS0234: The type or namespace name `Scripting' does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(20,17): > error CS0234: The type or namespace name `Scripting' does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs(16,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstre > am.cs(19,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(17, > 17): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(18, > 17): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(19, > 17): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > s(17,14): error CS0234: The type or namespace name `Dynamic' > does not > exist in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > s(19,17): error CS0234: The type or namespace name `Scripting' > does > not exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > s(30,31): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs > (22,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs > (23,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(19,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(20,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(21,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(25,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(19,14): error CS0234: The type or namespace > name > `Dynamic' does not exist in the namespace `System'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(20,17): error CS0234: The type or namespace > name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(21,17): error CS0234: The type or namespace > name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(22,17): error CS0234: The type or namespace > name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(23,17): error CS0234: The type or namespace > name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(29,17): error CS0234: The type or namespace > name > `Scripting' does not exist in the namespace `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosac > tion.cs(20,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > ers.cs(22,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > ers.cs(23,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > ers.cs(24,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs(17,1 > 7): error CS0234: The type or namespace name `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs( > 18,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (19,14): error CS0234: The type or namespace name `Dynamic' > does not > exist in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (21,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (22,17): error CS0234: The type or namespace name `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (36,38): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(20,14): error CS0234: The type or namespace name > `Dynamic' does > not exist in the namespace `System'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(22,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(23,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(24,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(25,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(37,88): error CS0246: The type or namespace name > `IExpressionSerializable' could not be found. Are you missing a > using > directive or an assembly reference? > > Unhandled Exception: System.NullReferenceException: Object > reference > not set to an instance of an object > at Mono.CSharp.TypeContainer.CheckRecursiveDefinition > (Mono.CSharp.TypeContainer tc) [0x00000] > at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] > at Mono.CSharp.TypeContainer.DefineType () [0x00000] > at Mono.CSharp.Namespace.LookupType (System.String name, > Location > loc) [0x00000] > at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, > System.String name, Location loc) [0x00000] > at Mono.CSharp.NamespaceEntry.Lookup (Mono.CSharp.DeclSpace > ds, > System.String name, Location loc, Boolean ignore_cs0104) > [0x00000] > at Mono.CSharp.NamespaceEntry.LookupNamespaceOrType > (Mono.CSharp.DeclSpace ds, System.String name, Location loc, > Boolean > ignore_cs0104) [0x00000] > at Mono.CSharp.DeclSpace.LookupNamespaceOrType (System.String > name, > Location loc, Boolean ignore_cs0104) [0x00000] > at Mono.CSharp.DeclSpace.LookupNamespaceOrType (System.String > name, > Location loc, Boolean ignore_cs0104) [0x00000] > at Mono.CSharp.SimpleName.ResolveAsTypeStep (IResolveContext > ec, > Boolean silent) [0x00000] > at Mono.CSharp.Expression.ResolveAsBaseTerminal > (IResolveContext ec, > Boolean silent) [0x00000] > at Mono.CSharp.TypeContainer.ResolveBaseTypes > (Mono.CSharp.TypeExpr& > base_class) [0x00000] > at Mono.CSharp.Class.ResolveBaseTypes (Mono.CSharp.TypeExpr& > base_class) [0x00000] > at Mono.CSharp.TypeContainer.DefineBaseTypes () [0x00000] > at Mono.CSharp.TypeContainer.DefineType () [0x00000] > at Mono.CSharp.TypeContainer.DefineNestedTypes () [0x00000] > at Mono.CSharp.TypeContainer.DefineType () [0x00000] > at Mono.CSharp.RootContext.ResolveTree () [0x00000] > at Mono.CSharp.Driver.Compile () [0x00000] > at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] > > > Build complete -- 75 errors, 5 warnings > Building: microsoft.scripting.extensionattribute (Debug) > Performing main compilation... > WARNING: Assembly 'System, Version=2.0.5.0, Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' not found. Make sure that the > assembly exists in disk. If the reference is required to build > the > project you may get compilation errors. > /usr/local/bin/gmcs > > "/out:/home/mandel/Code/ruby/ironruby/build/debug/Microsoft.Scripting.E > xtensionAttribute.dll" > "/r:System.dll" /noconfig /nologo /warn:4 > /debug:+ /debug:full /optimize- /codepage:utf8 -warnaserror > /define:"TRACE;DEBUG;MICROSOFT_SCRIPTING_CORE" /t:library > > "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/propertie > s/extensionassemblyinfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/utils/ext > ension.cs" > Build complete -- 0 errors, 1 warning > > Do you guys have any idea how could I build IronRuby using the *nix or > mono tools? > > Thanks in advance. > > mandel => manuel > > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Mon Mar 23 17:48:55 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Mar 2009 14:48:55 -0700 Subject: [Ironruby-core] Debugging ruby code in a host In-Reply-To: References: Message-ID: The file you are setting breakpoint to needs to exists on the disk for Visual Studio debugger to work. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, March 23, 2009 2:14 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Debugging ruby code in a host Yes.. I'll try again.. maybe I missed something. I should really say that the file that has the ruby code is an assembly resource that gets read through an AssemblyReaderStreamContentProvider. Should I be providing that content differently? http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/RubyEngine.cs#L352 I use http://gist.github.com/74979 to set a breakpoint. 2009/3/23 Tomas Matousek > Is DebugMode property of the ScriptRuntimeSetup of the ScriptRuntime you run the script in set to true? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, March 23, 2009 12:32 PM To: ironruby-core Subject: [Ironruby-core] Debugging ruby code in a host Hi With my IronRubyMVC implementation I'm far enough to figure out that I need to be able to put breakpoints in my ruby code :) Now the question is how, because I think I tried all of the ways that are described in the wiki but had no success. I have a debug version of IronRuby and I'm using it in a C# ASP.NET MVC project with the System.Web.Mvc.IronRuby dll as a reference. The web application hosts the scriptruntime etc. Now what do I need to do to make visual studio break on the breakpoint I define? In merging the latest git pushes into the linux branch I've seen a pdb generator does that mean I can actually get to more meaningful stack traces etc. again the question how springs to mind? :) Thanks Ivan _______________________________________________ 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 ivan at flanders.co.nz Mon Mar 23 18:17:42 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 23 Mar 2009 23:17:42 +0100 Subject: [Ironruby-core] Debugging ruby code in a host In-Reply-To: References: Message-ID: Ok it works when I use Engine.RequireRubyFile("C:\path\to\file\controller.rb") but not when i use a custom streamcontent provider that knows how to deal with virtual paths. like http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/VirtualPathStreamContentProvider.cs Anyway I'll take the stream content providers out and just put something in that handles mappath to allow debugging. But now the question becomes When would I want to use a StreamContentProvider and when should I have to create a PAL ? Would using a PAL be a better idea to when hosting it in a webserver? 2009/3/23 Tomas Matousek > The file you are setting breakpoint to needs to exists on the disk for > Visual Studio debugger to work. > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, March 23, 2009 2:14 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Debugging ruby code in a host > > > > Yes.. I'll try again.. maybe I missed something. > I should really say that the file that has the ruby code is an assembly > resource that gets read through an AssemblyReaderStreamContentProvider. > Should I be providing that content differently? > > > http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/RubyEngine.cs#L352 > > I use http://gist.github.com/74979 to set a breakpoint. > > > > 2009/3/23 Tomas Matousek > > Is DebugMode property of the ScriptRuntimeSetup of the ScriptRuntime you > run the script in set to *true*? > > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Monday, March 23, 2009 12:32 PM > *To:* ironruby-core > *Subject:* [Ironruby-core] Debugging ruby code in a host > > > > Hi > > With my IronRubyMVC implementation I'm far enough to figure out that I need > to be able to put breakpoints in my ruby code :) > Now the question is how, because I think I tried all of the ways that are > described in the wiki but had no success. I have a debug version of IronRuby > and I'm using it in a C# ASP.NET MVC project with the > System.Web.Mvc.IronRuby dll as a reference. The web application hosts the > scriptruntime etc. Now what do I need to do to make visual studio break on > the breakpoint I define? > > In merging the latest git pushes into the linux branch I've seen a pdb > generator does that mean I can actually get to more meaningful stack traces > etc. again the question how springs to mind? :) > > Thanks > Ivan > > > _______________________________________________ > 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 mandel at themacaque.com Mon Mar 23 18:41:37 2009 From: mandel at themacaque.com (Manuel de la Pena) Date: Mon, 23 Mar 2009 23:41:37 +0100 Subject: [Ironruby-core] IronRuby on mono and Monodevelop In-Reply-To: References: <1237843111.8534.49.camel@mandel-desktop> Message-ID: <1237848097.8534.53.camel@mandel-desktop> Hello, I hope this is not a stupid question. does that mean that if I extract the gz and tar in a dir currently in my path it should work? I have noticed that there is a bin dir and a lib one, should I make both accessible in the path or just the root dir that contains both of them? So far I have extract the tar file in ~/bin which is in my path (I have checked) and I am currently just getting some functionality + loading errors, did I do something wrong? Kr, mandel => manuel On Mon, 2009-03-23 at 22:48 +0100, Ivan Porto Carrero wrote: > The binaries there are current. I try to keep up with ironruby pushes: > http://github.com/casualjim/ironruby-mono-builds/tree/master > > > Alternatively you can build it yourself. Everything you need is > included in the linux branch of this git repo. > http://github.com/mletterle/ironruby/tree/linux > > You do need the github version though. > You can download the binaries directly here: > http://github.com/casualjim/ironruby-mono-builds/tarball/master > > On Mon, Mar 23, 2009 at 10:18 PM, Manuel de la Pena > wrote: > Hello there, > > I am trying to provide all the required code to get > Monodevelop add > support to IronRuby. So far I just have used IronRuby on a > Windows > machine and I was wondering if there are any instructions on > how to get > IronRuby on Linux/Mac OS X using mono. > > I have read this > http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/ > but it does not work with the latest svn mono build, the > output is the > following: > > using rake: > > (in /home/mandel/Code/ruby/ironruby) > rake aborted! > can't dup NilClass > /home/mandel/Code/ruby/ironruby/Rakefile:18:in `require' > (See full trace by running task with --trace) > > using mdtool: > > MonoDevelop Build Tool > Loading solution: IronRuby.sln > Loading solution: IronRuby.sln > Loading projects .. > ERROR [2009-03-23 22:15:50Z]: Error while trying to load the > project /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj. Exception : System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft.Scripting.Core.csproj". > at System.IO.FileStream..ctor (System.String path, FileMode > mode, > FileAccess access, FileShare share, Int32 bufferSize, Boolean > anonymous, > FileOptions options) [0x00000] > at System.IO.FileStream..ctor (System.String path, FileMode > mode, > FileAccess access, FileShare share) [0x00000] > at (wrapper remoting-invoke-with-check) > System.IO.FileStream:.ctor > (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) > at System.IO.File.OpenRead (System.String path) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding, Boolean > detectEncodingFromByteOrderMarks, > Int32 bufferSize) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding) [0x00000] > at (wrapper remoting-invoke-with-check) > System.IO.StreamReader:.ctor > (string,System.Text.Encoding) > at System.IO.File.ReadAllText (System.String path, > System.Text.Encoding encoding) [0x00000] > at System.IO.File.ReadAllText (System.String path) [0x00000] > at > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load > (IProgressMonitor monitor, System.String fileName, > System.String > language, System.Type itemClass) [0x00000] > at > MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > System.String > itemGuid) [0x00000] > at > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem > (IProgressMonitor monitor, System.String fileName, > System.String > typeGuid, System.String itemGuid) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat > +c__AnonStorey46.<>m__14 (IProgressMonitor , > System.String ) [0x00000] > at > MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution > (MonoDevelop.Projects.Solution sol, System.String fileName, > IProgressMonitor monitor) [0x00000] > WARNING: Error while trying to load the project > > '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft > .Scripting.Core.csproj': Could not find a part of the > path > > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft > .Scripting.Core.csproj". > ERROR [2009-03-23 22:15:50Z]: Error while trying to load the > project /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scripting.csproj. Exception : System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scripting.csproj". > at System.IO.FileStream..ctor (System.String path, FileMode > mode, > FileAccess access, FileShare share, Int32 bufferSize, Boolean > anonymous, > FileOptions options) [0x00000] > at System.IO.FileStream..ctor (System.String path, FileMode > mode, > FileAccess access, FileShare share) [0x00000] > at (wrapper remoting-invoke-with-check) > System.IO.FileStream:.ctor > (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) > at System.IO.File.OpenRead (System.String path) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding, Boolean > detectEncodingFromByteOrderMarks, > Int32 bufferSize) [0x00000] > at System.IO.StreamReader..ctor (System.String path, > System.Text.Encoding encoding) [0x00000] > at (wrapper remoting-invoke-with-check) > System.IO.StreamReader:.ctor > (string,System.Text.Encoding) > at System.IO.File.ReadAllText (System.String path, > System.Text.Encoding encoding) [0x00000] > at System.IO.File.ReadAllText (System.String path) [0x00000] > at > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load > (IProgressMonitor monitor, System.String fileName, > System.String > language, System.Type itemClass) [0x00000] > at > MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > System.String > itemGuid) [0x00000] > at > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem > (IProgressMonitor monitor, System.String fileName, > System.String > typeGuid, System.String itemGuid) [0x00000] > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat > +c__AnonStorey46.<>m__14 (IProgressMonitor , > System.String ) [0x00000] > at > MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName) [0x00000] > at > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem > (IProgressMonitor monitor, System.String fileName, > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > [0x00000] > at > MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution > (MonoDevelop.Projects.Solution sol, System.String fileName, > IProgressMonitor monitor) [0x00000] > WARNING: Error while trying to load the project > > '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri > pting.csproj': Could not find a part of the path > > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri > pting.csproj". > Building: IronRuby (Debug) > Building Solution IronRuby > Building: Ruby (Debug) > Performing main compilation... > WARNING: The reference 'System.Net, Version=2.0.5.0, > Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' is not valid for the > target > framework > of the project. > WARNING: Assembly 'System, Version=2.0.5.0, > Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' not found. Make sure > that the > assembly exists in disk. If the reference is required > to build > the > project you may get compilation errors. > WARNING: Referenced project 'Microsoft.Scripting.Core' > not > found in > the solution. > WARNING: Referenced project > 'Microsoft.Scripting.ExtensionAttribute' > not found in the solution. > WARNING: Referenced project 'Microsoft.Scripting' not > found in > the > solution. > /usr/local/bin/gmcs > > "/out:/home/mandel/Code/ruby/ironruby/build/debug/IronRuby.dll" > "/r:System.dll" "/r:System.Configuration.dll" > "/r:System.Data.dll" > "/r:System.Xml.dll" /noconfig /nologo /warn:4 /debug: > + /debug:full > /optimize- /codepage:utf8 > -warnaserror /define:"TRACE;DEBUG" > /t:library > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/binding.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/genericregex.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/hash.subclass.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyarray.subcla > ss.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.subcla > ss.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.co > ntent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.su > bclass.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.subclass.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyclass.meta.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyencoding.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.bi > narycontent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st > ringbuildercontent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st > ringcontent.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta. > cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/File.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/glob.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/kernel.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstr > eam.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyMethod.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregexoptions > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubystruct.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/typedescriptor.g > enerated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ConditionalJumpExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > encodingexpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > regexmatchreference.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > RescueExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > UnlessExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Identifier.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/P > laceholder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/scopebuilder > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/C > onditionalStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/CallBuilder. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk > er.Generated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Node > Types.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk > er.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Errors.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/parsersta > ck.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosa > ction.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubylibrary > methodinfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubymethodg > roupbase.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschel > pers.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/overr > iddenmembers.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt > ypedispenser.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/inter > facesbuilder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt > ypeemitter.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/typed > escription.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/RubyT > ypeBuilder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/itype > feature.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/clsty > peemitter.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/variablef > actory.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/ResultOperation. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/UnsignedBigInteg > erParser.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/globalsuppressions.cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Ruby.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > chern.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/ArgsBuilder > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/CallArgumen > ts.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > cherunsplatn.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/callsitetra > cer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyinvokem > emberbinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/metaobjectb > uilder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolcon > versionaction.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallact > ion.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallsig > nature.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyparamet > erbinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/supercallac > tion.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyaccesso > rinfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > cher.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyCustomM > ethodInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RuleGenerat > ors.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > chers.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/integervalue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/irubyobjectstate. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/EqualityComparer. > cs" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > iables.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/kcode.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/ReadOnlyG > lobalVariableInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > iableInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > iable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/SpecialGl > obalVariableInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IDuplicable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IRubyObject.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/InstanceData.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/instancedataweakt > able.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Exceptions.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs > " > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Range.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/ReferenceEquality > Comparer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > RangeExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.Generat > ed.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Initializer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AstGenerator.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Arguments.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/AstFactory.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Else > IfClause.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Resc > ueClause.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/When > Clause.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > AndExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ArrayConstructor.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > isdefinedexpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > CaseExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ForLoopExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > HashConstructor.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > IfExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > Literal.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > NotExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > OrExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > RegularExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > StringConstructor.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Body.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > WhileLoopExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/BreakStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/JumpStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/NextStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/RedoStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/RetryStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > ts/ReturnStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A > rrayItemAccess.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > lassVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/G > lobalVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/I > nstanceVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L > eftValue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > ompoundLeftValue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > MemberAssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > CompoundRightValue.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > SimpleAssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Block.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockReferen > ce.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /MethodDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /ModuleDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /ClassDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > /SingletonDeclaration.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > AssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > BlockExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > CallExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > DeclarationExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ErrorExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > Expression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > MethodCall.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > ParallelAssignmentExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > SelfReference.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > SuperCall.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > YieldCall.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L > ocalVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Maplet.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Parameters.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockDefinit > ion.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Node.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/SourceUnitTr > ee.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/A > liasStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > ConditionalExpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/F > inalizer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/I > nitializer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/U > ndefineStatement.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A > ttributeAccess.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > onstantVariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/V > ariable.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/LexicalSc > ope.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.Ge > nerated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Symbols.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/stringtok > enizer.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Tokenizer > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/GPPG.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/TokenValu > e.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/RubyCompilerOpti > ons.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Tokens.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyCommandLine.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyOptionsParser > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Properties/AssemblyInfo.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/MethodVisibility. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyBinder. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyCallTargets.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/evalentrypointdel > egate.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Loader.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyEventIn > fo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptionData > .cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptions.cs > " > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyFieldIn > fo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyLambdaM > ethodInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMemberI > nfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodG > roupInfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyinputprovide > r.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyglobalscope.c > s" > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyOps.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodI > nfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyContext.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyoptions.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyScope.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubySites.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyUtils.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeFlowContro > l.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeErrorSink. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/StackUnwinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/union.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/utils.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.subcla > ss.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/range.subclass.c > s" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > matchexpression.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > stringliteral.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > symbolliteral.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/emitt > edattribute.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/profi > ler.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. > cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. > generated.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/rubycompatibility.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.subcl > ass.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycreatei > nstancebinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubygetmemb > erbinder.cs" > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/iowrapper.cs" > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( > 19,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( > 20,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(1 > 9,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(2 > 0,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(17,17): > error CS0234: The type or namespace name `Scripting' > does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(18,17): > error CS0234: The type or namespace name `Scripting' > does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(18,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(22,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(18,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(19,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > 19,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > 20,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > 23,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(17,1 > 4): error CS0234: The type or namespace name `Dynamic' > does not > exist > in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(18,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(19,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(18,14): > error CS0234: The type or namespace name `Dynamic' > does not > exist in > the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(21,17): > error CS0234: The type or namespace name `Scripting' > does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(22,17): > error CS0234: The type or namespace name `Scripting' > does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(34,3 > 8): error CS0246: The type or namespace name > `DynamicMetaObject' could > not be found. Are you missing a using directive or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > s(17,14): error CS0234: The type or namespace name > `Dynamic' > does not > exist in the namespace `System'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > s(18,17): error CS0234: The type or namespace name > `Scripting' > does > not exist in the namespace `Microsoft'. Are you > missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(21, > 17): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(22, > 17): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(23, > 17): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(24, > 17): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > s(28,31): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive > or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(22,1 > 4): error CS0234: The type or namespace name `Dynamic' > does not > exist > in the namespace `System'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(24,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(25,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(26,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(27,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(18,14): error CS0234: The type or namespace name > `Dynamic' > does not > exist in the namespace `System'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(19,14): error CS0234: The type or namespace name > `Dynamic' > does not > exist in the namespace `System'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(21,17): error CS0234: The type or namespace name > `Scripting' > does > not exist in the namespace `Microsoft'. Are you > missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(22,17): error CS0234: The type or namespace name > `Scripting' > does > not exist in the namespace `Microsoft'. Are you > missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > s(36,38): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive > or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(19,17): > error CS0234: The type or namespace name `Scripting' > does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(20,17): > error CS0234: The type or namespace name `Scripting' > does not > exist in > the namespace `Microsoft'. Are you missing an assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs(16,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstre > am.cs(19,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(17, > 17): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(18, > 17): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(19, > 17): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > s(17,14): error CS0234: The type or namespace name > `Dynamic' > does not > exist in the namespace `System'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > s(19,17): error CS0234: The type or namespace name > `Scripting' > does > not exist in the namespace `Microsoft'. Are you > missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > s(30,31): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive > or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs > (22,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs > (23,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(19,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(20,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(21,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > MethodDeclaration.cs(25,17): error CS0234: The type or > namespace name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(19,14): error CS0234: The type or > namespace > name > `Dynamic' does not exist in the namespace `System'. > Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(20,17): error CS0234: The type or > namespace > name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(21,17): error CS0234: The type or > namespace > name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(22,17): error CS0234: The type or > namespace > name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(23,17): error CS0234: The type or > namespace > name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > ersionaction.cs(29,17): error CS0234: The type or > namespace > name > `Scripting' does not exist in the namespace > `Microsoft'. Are > you > missing an assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosac > tion.cs(20,17): error CS0234: The type or namespace > name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > ers.cs(22,17): error CS0234: The type or namespace > name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > ers.cs(23,17): error CS0234: The type or namespace > name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > ers.cs(24,17): error CS0234: The type or namespace > name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs(17,1 > 7): error CS0234: The type or namespace name > `Scripting' does > not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs( > 18,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (19,14): error CS0234: The type or namespace name > `Dynamic' > does not > exist in the namespace `System'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (21,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (22,17): error CS0234: The type or namespace name > `Scripting' > does not > exist in the namespace `Microsoft'. Are you missing an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > (36,38): error CS0246: The type or namespace name > `DynamicMetaObject' > could not be found. Are you missing a using directive > or an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(20,14): error CS0234: The type or namespace name > `Dynamic' does > not exist in the namespace `System'. Are you missing > an > assembly > reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(22,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(23,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(24,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(25,17): error CS0234: The type or namespace name > `Scripting' > does not exist in the namespace `Microsoft'. Are you > missing an > assembly reference? > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > on.cs(37,88): error CS0246: The type or namespace name > `IExpressionSerializable' could not be found. Are you > missing a > using > directive or an assembly reference? > > Unhandled Exception: System.NullReferenceException: > Object > reference > not set to an instance of an object > at > Mono.CSharp.TypeContainer.CheckRecursiveDefinition > (Mono.CSharp.TypeContainer tc) [0x00000] > at Mono.CSharp.TypeContainer.DefineBaseTypes () > [0x00000] > at Mono.CSharp.TypeContainer.DefineType () [0x00000] > at Mono.CSharp.Namespace.LookupType (System.String > name, > Location > loc) [0x00000] > at Mono.CSharp.Namespace.Lookup > (Mono.CSharp.DeclSpace ds, > System.String name, Location loc) [0x00000] > at Mono.CSharp.NamespaceEntry.Lookup > (Mono.CSharp.DeclSpace > ds, > System.String name, Location loc, Boolean > ignore_cs0104) > [0x00000] > at Mono.CSharp.NamespaceEntry.LookupNamespaceOrType > (Mono.CSharp.DeclSpace ds, System.String name, > Location loc, > Boolean > ignore_cs0104) [0x00000] > at Mono.CSharp.DeclSpace.LookupNamespaceOrType > (System.String > name, > Location loc, Boolean ignore_cs0104) [0x00000] > at Mono.CSharp.DeclSpace.LookupNamespaceOrType > (System.String > name, > Location loc, Boolean ignore_cs0104) [0x00000] > at Mono.CSharp.SimpleName.ResolveAsTypeStep > (IResolveContext > ec, > Boolean silent) [0x00000] > at Mono.CSharp.Expression.ResolveAsBaseTerminal > (IResolveContext ec, > Boolean silent) [0x00000] > at Mono.CSharp.TypeContainer.ResolveBaseTypes > (Mono.CSharp.TypeExpr& > base_class) [0x00000] > at Mono.CSharp.Class.ResolveBaseTypes > (Mono.CSharp.TypeExpr& > base_class) [0x00000] > at Mono.CSharp.TypeContainer.DefineBaseTypes () > [0x00000] > at Mono.CSharp.TypeContainer.DefineType () [0x00000] > at Mono.CSharp.TypeContainer.DefineNestedTypes () > [0x00000] > at Mono.CSharp.TypeContainer.DefineType () [0x00000] > at Mono.CSharp.RootContext.ResolveTree () [0x00000] > at Mono.CSharp.Driver.Compile () [0x00000] > at Mono.CSharp.Driver.Main (System.String[] args) > [0x00000] > > > Build complete -- 75 errors, 5 warnings > Building: microsoft.scripting.extensionattribute (Debug) > Performing main compilation... > WARNING: Assembly 'System, Version=2.0.5.0, > Culture=neutral, > PublicKeyToken=7cec85d7bea7798e' not found. Make sure > that the > assembly exists in disk. If the reference is required > to build > the > project you may get compilation errors. > /usr/local/bin/gmcs > > "/out:/home/mandel/Code/ruby/ironruby/build/debug/Microsoft.Scripting.E > xtensionAttribute.dll" > "/r:System.dll" /noconfig /nologo /warn:4 > /debug:+ /debug:full /optimize- /codepage:utf8 > -warnaserror > > /define:"TRACE;DEBUG;MICROSOFT_SCRIPTING_CORE" /t:library > > "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/propertie > s/extensionassemblyinfo.cs" > > "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/utils/ext > ension.cs" > Build complete -- 0 errors, 1 warning > > Do you guys have any idea how could I build IronRuby using the > *nix or > mono tools? > > Thanks in advance. > > mandel => manuel > > _______________________________________________ > 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 From jdeville at microsoft.com Mon Mar 23 19:27:00 2009 From: jdeville at microsoft.com (Jim Deville) Date: Mon, 23 Mar 2009 23:27:00 +0000 Subject: [Ironruby-core] IronRuby on mono and Monodevelop In-Reply-To: <1237848097.8534.53.camel@mandel-desktop> References: <1237843111.8534.49.camel@mandel-desktop> <1237848097.8534.53.camel@mandel-desktop> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD044C34@TK5EX14MBXC101.redmond.corp.microsoft.com> The bin dir inside the gz needs to be in your path. JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Manuel de la Pena > Sent: Monday, March 23, 2009 3:42 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] IronRuby on mono and Monodevelop > > Hello, > > I hope this is not a stupid question. does that mean that if I extract > the gz and tar in a dir currently in my path it should work? > > I have noticed that there is a bin dir and a lib one, should I make > both > accessible in the path or just the root dir that contains both of them? > > So far I have extract the tar file in ~/bin which is in my path (I have > checked) and I am currently just getting some functionality + loading > errors, did I do something wrong? > > Kr, > > mandel => manuel > > On Mon, 2009-03-23 at 22:48 +0100, Ivan Porto Carrero wrote: > > The binaries there are current. I try to keep up with ironruby > pushes: > > http://github.com/casualjim/ironruby-mono-builds/tree/master > > > > > > Alternatively you can build it yourself. Everything you need is > > included in the linux branch of this git repo. > > http://github.com/mletterle/ironruby/tree/linux > > > > You do need the github version though. > > You can download the binaries directly here: > > http://github.com/casualjim/ironruby-mono-builds/tarball/master > > > > On Mon, Mar 23, 2009 at 10:18 PM, Manuel de la Pena > > wrote: > > Hello there, > > > > I am trying to provide all the required code to get > > Monodevelop add > > support to IronRuby. So far I just have used IronRuby on a > > Windows > > machine and I was wondering if there are any instructions on > > how to get > > IronRuby on Linux/Mac OS X using mono. > > > > I have read this > > http://sparcs.kaist.ac.kr/~tinuviel/download/IronRuby/ > > but it does not work with the latest svn mono build, the > > output is the > > following: > > > > using rake: > > > > (in /home/mandel/Code/ruby/ironruby) > > rake aborted! > > can't dup NilClass > > /home/mandel/Code/ruby/ironruby/Rakefile:18:in `require' > > (See full trace by running task with --trace) > > > > using mdtool: > > > > MonoDevelop Build Tool > > Loading solution: IronRuby.sln > > Loading solution: IronRuby.sln > > Loading projects .. > > ERROR [2009-03-23 22:15:50Z]: Error while trying to load the > > project > /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft. > Scripting.Core.csproj. Exception : > System.IO.DirectoryNotFoundException: Could not find a part of the path > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft > .Scripting.Core.csproj". > > at System.IO.FileStream..ctor (System.String path, FileMode > > mode, > > FileAccess access, FileShare share, Int32 bufferSize, Boolean > > anonymous, > > FileOptions options) [0x00000] > > at System.IO.FileStream..ctor (System.String path, FileMode > > mode, > > FileAccess access, FileShare share) [0x00000] > > at (wrapper remoting-invoke-with-check) > > System.IO.FileStream:.ctor > > > (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) > > at System.IO.File.OpenRead (System.String path) [0x00000] > > at System.IO.StreamReader..ctor (System.String path, > > System.Text.Encoding encoding, Boolean > > detectEncodingFromByteOrderMarks, > > Int32 bufferSize) [0x00000] > > at System.IO.StreamReader..ctor (System.String path, > > System.Text.Encoding encoding) [0x00000] > > at (wrapper remoting-invoke-with-check) > > System.IO.StreamReader:.ctor > > (string,System.Text.Encoding) > > at System.IO.File.ReadAllText (System.String path, > > System.Text.Encoding encoding) [0x00000] > > at System.IO.File.ReadAllText (System.String path) [0x00000] > > at > > > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load > > (IProgressMonitor monitor, System.String fileName, > > System.String > > language, System.Type itemClass) [0x00000] > > at > > > MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > System.String > > itemGuid) [0x00000] > > at > > > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem > > (IProgressMonitor monitor, System.String fileName, > > System.String > > typeGuid, System.String itemGuid) [0x00000] > > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat > > +c__AnonStorey46.<>m__14 (IProgressMonitor , > > System.String ) [0x00000] > > at > > > MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > > MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > > MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > > MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution > > (MonoDevelop.Projects.Solution sol, System.String fileName, > > IProgressMonitor monitor) [0x00000] > > WARNING: Error while trying to load the project > > > > > '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft > > .Scripting.Core.csproj': Could not find a part of the > > path > > > > > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting.Core/Microsoft > > .Scripting.Core.csproj". > > ERROR [2009-03-23 22:15:50Z]: Error while trying to load the > > project > /home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scrip > ting.csproj. Exception : System.IO.DirectoryNotFoundException: Could > not find a part of the path > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri > pting.csproj". > > at System.IO.FileStream..ctor (System.String path, FileMode > > mode, > > FileAccess access, FileShare share, Int32 bufferSize, Boolean > > anonymous, > > FileOptions options) [0x00000] > > at System.IO.FileStream..ctor (System.String path, FileMode > > mode, > > FileAccess access, FileShare share) [0x00000] > > at (wrapper remoting-invoke-with-check) > > System.IO.FileStream:.ctor > > > (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) > > at System.IO.File.OpenRead (System.String path) [0x00000] > > at System.IO.StreamReader..ctor (System.String path, > > System.Text.Encoding encoding, Boolean > > detectEncodingFromByteOrderMarks, > > Int32 bufferSize) [0x00000] > > at System.IO.StreamReader..ctor (System.String path, > > System.Text.Encoding encoding) [0x00000] > > at (wrapper remoting-invoke-with-check) > > System.IO.StreamReader:.ctor > > (string,System.Text.Encoding) > > at System.IO.File.ReadAllText (System.String path, > > System.Text.Encoding encoding) [0x00000] > > at System.IO.File.ReadAllText (System.String path) [0x00000] > > at > > > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load > > (IProgressMonitor monitor, System.String fileName, > > System.String > > language, System.Type itemClass) [0x00000] > > at > > > MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > System.String > > itemGuid) [0x00000] > > at > > > MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem > > (IProgressMonitor monitor, System.String fileName, > > System.String > > typeGuid, System.String itemGuid) [0x00000] > > at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat > > +c__AnonStorey46.<>m__14 (IProgressMonitor , > > System.String ) [0x00000] > > at > > > MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > > MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName) [0x00000] > > at > > MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > > MonoDevelop.Projects.Extensions.ProjectExtensionUtil.LoadSolutionItem > > (IProgressMonitor monitor, System.String fileName, > > MonoDevelop.Projects.Extensions.ItemLoadCallback callback) > > [0x00000] > > at > > > MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.LoadSolution > > (MonoDevelop.Projects.Solution sol, System.String fileName, > > IProgressMonitor monitor) [0x00000] > > WARNING: Error while trying to load the project > > > > > '/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri > > pting.csproj': Could not find a part of the path > > > > > "/home/mandel/Code/ruby/ironruby/src/Microsoft.Scripting/Microsoft.Scri > > pting.csproj". > > Building: IronRuby (Debug) > > Building Solution IronRuby > > Building: Ruby (Debug) > > Performing main compilation... > > WARNING: The reference 'System.Net, Version=2.0.5.0, > > Culture=neutral, > > PublicKeyToken=7cec85d7bea7798e' is not valid for the > > target > > framework > > of the project. > > WARNING: Assembly 'System, Version=2.0.5.0, > > Culture=neutral, > > PublicKeyToken=7cec85d7bea7798e' not found. Make sure > > that the > > assembly exists in disk. If the reference is required > > to build > > the > > project you may get compilation errors. > > WARNING: Referenced project > 'Microsoft.Scripting.Core' > > not > > found in > > the solution. > > WARNING: Referenced project > > 'Microsoft.Scripting.ExtensionAttribute' > > not found in the solution. > > WARNING: Referenced project 'Microsoft.Scripting' not > > found in > > the > > solution. > > /usr/local/bin/gmcs > > > > > "/out:/home/mandel/Code/ruby/ironruby/build/debug/IronRuby.dll" > > "/r:System.dll" "/r:System.Configuration.dll" > > "/r:System.Data.dll" > > "/r:System.Xml.dll" /noconfig /nologo /warn:4 /debug: > > + /debug:full > > /optimize- /codepage:utf8 > > -warnaserror /define:"TRACE;DEBUG" > > /t:library > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/binding.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs > > " > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs" > > > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/genericregex.cs" > > > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/hash.subclass.cs > > " > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyarray.subcla > > ss.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.subcla > > ss.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.co > > ntent.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.su > > bclass.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.subclass.cs > > " > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyclass.meta.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyencoding.cs" > > > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.bi > > narycontent.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st > > ringbuildercontent.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestring.st > > ringcontent.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta. > > cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/File.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/glob.cs" > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/kernel.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstr > > eam.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyMethod.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregexoptions > > .cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubystruct.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/typedescriptor.g > > enerated.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > ConditionalJumpExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > encodingexpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > regexmatchreference.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > RescueExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > UnlessExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Identifier.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/P > > laceholder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/scopebuilder > > .cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/C > > onditionalStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/CallBuilder. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk > > er.Generated.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Node > > Types.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Walkers/Walk > > er.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Errors.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/parsersta > > ck.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosa > > ction.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubylibrary > > methodinfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubymethodg > > roupbase.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschel > > pers.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/overr > > iddenmembers.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt > > ypedispenser.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/inter > > facesbuilder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/rubyt > > ypeemitter.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/typed > > escription.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/RubyT > > ypeBuilder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/itype > > feature.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/clsty > > peemitter.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/variablef > > actory.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/ResultOperation. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/UnsignedBigInteg > > erParser.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/globalsuppressions.cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Ruby.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs > > " > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > > chern.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/ArgsBuilder > > .cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/CallArgumen > > ts.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > > cherunsplatn.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/callsitetra > > cer.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyinvokem > > emberbinder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/metaobjectb > > uilder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolcon > > versionaction.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallact > > ion.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallsig > > nature.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyparamet > > erbinder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/supercallac > > tion.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubyaccesso > > rinfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > > cher.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyCustomM > > ethodInfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RuleGenerat > > ors.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/blockdispat > > chers.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/integervalue.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/irubyobjectstate. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/EqualityComparer. > > cs" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > > iables.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/kcode.cs" > > > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/ReadOnlyG > > lobalVariableInfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > > iableInfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/GlobalVar > > iable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Globals/SpecialGl > > obalVariableInfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IDuplicable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/IRubyObject.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/InstanceData.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/instancedataweakt > > able.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Exceptions.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs > > " > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Range.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/ReferenceEquality > > Comparer.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > RangeExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Converter.Generat > > ed.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Initializer.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AstGenerator.cs" > > > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Arguments.cs > > " > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/AstFactory.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Else > > IfClause.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/Resc > > ueClause.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Clauses/When > > Clause.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > AndExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > ArrayConstructor.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > isdefinedexpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > CaseExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > ForLoopExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > HashConstructor.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > IfExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > Literal.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > NotExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > OrExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > RegularExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > StringConstructor.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Body.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > WhileLoopExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > > ts/BreakStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > > ts/JumpStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > > ts/NextStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > > ts/RedoStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > > ts/RetryStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/JumpStatemen > > ts/ReturnStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A > > rrayItemAccess.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > > lassVariable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/G > > lobalVariable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/I > > nstanceVariable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L > > eftValue.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > > ompoundLeftValue.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > > MemberAssignmentExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > > CompoundRightValue.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > > SimpleAssignmentExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Block.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockReferen > > ce.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > > /MethodDeclaration.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > > /ModuleDeclaration.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > > /ClassDeclaration.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations > > /SingletonDeclaration.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > AssignmentExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > BlockExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > CallExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > DeclarationExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > ErrorExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > Expression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > MethodCall.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Assignments/ > > ParallelAssignmentExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > SelfReference.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > SuperCall.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > YieldCall.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/L > > ocalVariable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Maplet.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Parameters.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/BlockDefinit > > ion.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Node.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/SourceUnitTr > > ee.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/A > > liasStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > ConditionalExpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/F > > inalizer.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/I > > nitializer.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Statements/U > > ndefineStatement.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/A > > ttributeAccess.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/C > > onstantVariable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/LeftValues/V > > ariable.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/LexicalSc > > ope.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.Ge > > nerated.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Parser.cs > > " > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Symbols.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/stringtok > > enizer.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/Tokenizer > > .cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/GPPG.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Parser/TokenValu > > e.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/RubyCompilerOpti > > ons.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Tokens.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyCommandLine.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Hosting/RubyOptionsParser > > .cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Properties/AssemblyInfo.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/MethodVisibility. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyBinder. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyCallTargets.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/evalentrypointdel > > egate.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Loader.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyEventIn > > fo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptionData > > .cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyExceptions.cs > > " > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyFieldIn > > fo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyLambdaM > > ethodInfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMemberI > > nfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodG > > roupInfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyinputprovide > > r.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyglobalscope.c > > s" > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyOps.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/RubyMethodI > > nfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyContext.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/rubyoptions.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyScope.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubySites.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RubyUtils.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeFlowContro > > l.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/RuntimeErrorSink. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/StackUnwinder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/union.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/utils.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.subcla > > ss.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/range.subclass.c > > s" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > matchexpression.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > stringliteral.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Expressions/ > > symbolliteral.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/emitt > > edattribute.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/Generation/profi > > ler.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. > > cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/reflectioncache. > > generated.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/rubycompatibility.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.subcl > > ass.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycreatei > > nstancebinder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubygetmemb > > erbinder.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/iowrapper.cs" > > > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( > > 19,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/consolestream.cs( > > 20,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(1 > > 9,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/duplexstream.cs(2 > > 0,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(17,17): > > error CS0234: The type or namespace name `Scripting' > > does not > > exist in > > the namespace `Microsoft'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Hash.cs(18,17): > > error CS0234: The type or namespace name `Scripting' > > does not > > exist in > > the namespace `Microsoft'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(18,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyArray.cs(22,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(18,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyregex.cs(19,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > > 19,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > > 20,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/MutableString.cs( > > 23,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(17,1 > > 4): error CS0234: The type or namespace name > `Dynamic' > > does not > > exist > > in the namespace `System'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(18,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(19,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(18,14): > > error CS0234: The type or namespace name `Dynamic' > > does not > > exist in > > the namespace `System'. Are you missing an assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(21,17): > > error CS0234: The type or namespace name `Scripting' > > does not > > exist in > > the namespace `Microsoft'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/Proc.cs(22,17): > > error CS0234: The type or namespace name `Scripting' > > does not > > exist in > > the namespace `Microsoft'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/proc.meta.cs(34,3 > > 8): error CS0246: The type or namespace name > > `DynamicMetaObject' could > > not be found. Are you missing a using directive or an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > > s(17,14): error CS0234: The type or namespace name > > `Dynamic' > > does not > > exist in the namespace `System'. Are you missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > > s(18,17): error CS0234: The type or namespace name > > `Scripting' > > does > > not exist in the namespace `Microsoft'. Are you > > missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(21, > > 17): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(22, > > 17): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(23, > > 17): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyModule.cs(24, > > 17): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymodule.meta.c > > s(28,31): error CS0246: The type or namespace name > > `DynamicMetaObject' > > could not be found. Are you missing a using directive > > or an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(22,1 > > 4): error CS0234: The type or namespace name > `Dynamic' > > does not > > exist > > in the namespace `System'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(24,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(25,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(26,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/RubyClass.cs(27,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > > s(18,14): error CS0234: The type or namespace name > > `Dynamic' > > does not > > exist in the namespace `System'. Are you missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > > s(19,14): error CS0234: The type or namespace name > > `Dynamic' > > does not > > exist in the namespace `System'. Are you missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > > s(21,17): error CS0234: The type or namespace name > > `Scripting' > > does > > not exist in the namespace `Microsoft'. Are you > > missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > > s(22,17): error CS0234: The type or namespace name > > `Scripting' > > does > > not exist in the namespace `Microsoft'. Are you > > missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubymethod.meta.c > > s(36,38): error CS0246: The type or namespace name > > `DynamicMetaObject' > > could not be found. Are you missing a using directive > > or an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(19,17): > > error CS0234: The type or namespace name `Scripting' > > does not > > exist in > > the namespace `Microsoft'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/IO.cs(20,17): > > error CS0234: The type or namespace name `Scripting' > > does not > > exist in > > the namespace `Microsoft'. Are you missing an > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/matchdata.cs(16,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/mutablestringstre > > am.cs(19,17): error CS0234: The type or namespace > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(17, > > 17): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(18, > > 17): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.cs(19, > > 17): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > > s(17,14): error CS0234: The type or namespace name > > `Dynamic' > > does not > > exist in the namespace `System'. Are you missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > > s(19,17): error CS0234: The type or namespace name > > `Scripting' > > does > > not exist in the namespace `Microsoft'. Are you > > missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Builtins/rubyobject.meta.c > > s(30,31): error CS0246: The type or namespace name > > `DynamicMetaObject' > > could not be found. Are you missing a using directive > > or an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs > > (22,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/statements.cs > > (23,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > > MethodDeclaration.cs(19,17): error CS0234: The type > or > > namespace name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > > MethodDeclaration.cs(20,17): error CS0234: The type > or > > namespace name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > > MethodDeclaration.cs(21,17): error CS0234: The type > or > > namespace name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Compiler/AST/Declarations/ > > MethodDeclaration.cs(25,17): error CS0234: The type > or > > namespace name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > > ersionaction.cs(19,14): error CS0234: The type or > > namespace > > name > > `Dynamic' does not exist in the namespace `System'. > > Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > > ersionaction.cs(20,17): error CS0234: The type or > > namespace > > name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > > ersionaction.cs(21,17): error CS0234: The type or > > namespace > > name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > > ersionaction.cs(22,17): error CS0234: The type or > > namespace > > name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > > ersionaction.cs(23,17): error CS0234: The type or > > namespace > > name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/protocolconv > > ersionaction.cs(29,17): error CS0234: The type or > > namespace > > name > > `Scripting' does not exist in the namespace > > `Microsoft'. Are > > you > > missing an assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/converttosac > > tion.cs(20,17): error CS0234: The type or namespace > > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > > ers.cs(22,17): error CS0234: The type or namespace > > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > > ers.cs(23,17): error CS0234: The type or namespace > > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/customtypedeschelp > > ers.cs(24,17): error CS0234: The type or namespace > > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/attributes.cs(17,1 > > 7): error CS0234: The type or namespace name > > `Scripting' does > > not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/binaryencoding.cs( > > 18,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > > (19,14): error CS0234: The type or namespace name > > `Dynamic' > > does not > > exist in the namespace `System'. Are you missing an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > > (21,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > > (22,17): error CS0234: The type or namespace name > > `Scripting' > > does not > > exist in the namespace `Microsoft'. Are you missing > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/blockparam.meta.cs > > (36,38): error CS0246: The type or namespace name > > `DynamicMetaObject' > > could not be found. Are you missing a using directive > > or an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > > on.cs(20,14): error CS0234: The type or namespace > name > > `Dynamic' does > > not exist in the namespace `System'. Are you missing > > an > > assembly > > reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > > on.cs(22,17): error CS0234: The type or namespace > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > > on.cs(23,17): error CS0234: The type or namespace > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > > on.cs(24,17): error CS0234: The type or namespace > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > > on.cs(25,17): error CS0234: The type or namespace > name > > `Scripting' > > does not exist in the namespace `Microsoft'. Are you > > missing an > > assembly reference? > > > > > /home/mandel/Code/ruby/ironruby/src/ironruby/Runtime/Calls/rubycallacti > > on.cs(37,88): error CS0246: The type or namespace > name > > `IExpressionSerializable' could not be found. Are you > > missing a > > using > > directive or an assembly reference? > > > > Unhandled Exception: System.NullReferenceException: > > Object > > reference > > not set to an instance of an object > > at > > Mono.CSharp.TypeContainer.CheckRecursiveDefinition > > (Mono.CSharp.TypeContainer tc) [0x00000] > > at Mono.CSharp.TypeContainer.DefineBaseTypes () > > [0x00000] > > at Mono.CSharp.TypeContainer.DefineType () > [0x00000] > > at Mono.CSharp.Namespace.LookupType (System.String > > name, > > Location > > loc) [0x00000] > > at Mono.CSharp.Namespace.Lookup > > (Mono.CSharp.DeclSpace ds, > > System.String name, Location loc) [0x00000] > > at Mono.CSharp.NamespaceEntry.Lookup > > (Mono.CSharp.DeclSpace > > ds, > > System.String name, Location loc, Boolean > > ignore_cs0104) > > [0x00000] > > at Mono.CSharp.NamespaceEntry.LookupNamespaceOrType > > (Mono.CSharp.DeclSpace ds, System.String name, > > Location loc, > > Boolean > > ignore_cs0104) [0x00000] > > at Mono.CSharp.DeclSpace.LookupNamespaceOrType > > (System.String > > name, > > Location loc, Boolean ignore_cs0104) [0x00000] > > at Mono.CSharp.DeclSpace.LookupNamespaceOrType > > (System.String > > name, > > Location loc, Boolean ignore_cs0104) [0x00000] > > at Mono.CSharp.SimpleName.ResolveAsTypeStep > > (IResolveContext > > ec, > > Boolean silent) [0x00000] > > at Mono.CSharp.Expression.ResolveAsBaseTerminal > > (IResolveContext ec, > > Boolean silent) [0x00000] > > at Mono.CSharp.TypeContainer.ResolveBaseTypes > > (Mono.CSharp.TypeExpr& > > base_class) [0x00000] > > at Mono.CSharp.Class.ResolveBaseTypes > > (Mono.CSharp.TypeExpr& > > base_class) [0x00000] > > at Mono.CSharp.TypeContainer.DefineBaseTypes () > > [0x00000] > > at Mono.CSharp.TypeContainer.DefineType () > [0x00000] > > at Mono.CSharp.TypeContainer.DefineNestedTypes () > > [0x00000] > > at Mono.CSharp.TypeContainer.DefineType () > [0x00000] > > at Mono.CSharp.RootContext.ResolveTree () [0x00000] > > at Mono.CSharp.Driver.Compile () [0x00000] > > at Mono.CSharp.Driver.Main (System.String[] args) > > [0x00000] > > > > > > Build complete -- 75 errors, 5 warnings > > Building: microsoft.scripting.extensionattribute (Debug) > > Performing main compilation... > > WARNING: Assembly 'System, Version=2.0.5.0, > > Culture=neutral, > > PublicKeyToken=7cec85d7bea7798e' not found. Make sure > > that the > > assembly exists in disk. If the reference is required > > to build > > the > > project you may get compilation errors. > > /usr/local/bin/gmcs > > > > > "/out:/home/mandel/Code/ruby/ironruby/build/debug/Microsoft.Scripting.E > > xtensionAttribute.dll" > > "/r:System.dll" /noconfig /nologo /warn:4 > > /debug:+ /debug:full /optimize- /codepage:utf8 > > -warnaserror > > > > /define:"TRACE;DEBUG;MICROSOFT_SCRIPTING_CORE" /t:library > > > > > "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/propertie > > s/extensionassemblyinfo.cs" > > > > > "/home/mandel/Code/ruby/ironruby/src/microsoft.scripting.core/utils/ext > > ension.cs" > > Build complete -- 0 errors, 1 warning > > > > Do you guys have any idea how could I build IronRuby using > the > > *nix or > > mono tools? > > > > Thanks in advance. > > > > mandel => manuel > > > > _______________________________________________ > > 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 > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Mon Mar 23 21:23:49 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Mar 2009 18:23:49 -0700 Subject: [Ironruby-core] Debugging ruby code in a host In-Reply-To: References: Message-ID: PAL provides more general virtualization of file system (though still not complete). By using custom content providers for a ScriptSource it only affects one particular ScriptSource while PAL is used by other API as well. For example, File#open goes thru PAL: context.DomainManager.Platform.OpenInputFileStream(path, fileMode, access, share); Also, content of required files is read via PAL: see Microsoft.Scripting\SourceFileContentProvider.cs. So, PAL allows the host to make basic file IO operations work ? you can, for example, build virtual file system based on Isolated Storage or some database table. The virtualization is not complete, we are looking for reasonable set of API that it make sense to virtualize. If you find something you would need let us know. Sadly, Visual Studio debugger requires source files to be physical files on disk. If you need to debug some code stored in a database you need to save it to a file. You might want to do so only when DebugMode is on. If it is not, PDBs are not generated anyways so the code is not debuggable by VS. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, March 23, 2009 3:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Debugging ruby code in a host Ok it works when I use Engine.RequireRubyFile("C:\path\to\file\controller.rb") but not when i use a custom streamcontent provider that knows how to deal with virtual paths. like http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/VirtualPathStreamContentProvider.cs Anyway I'll take the stream content providers out and just put something in that handles mappath to allow debugging. But now the question becomes When would I want to use a StreamContentProvider and when should I have to create a PAL ? Would using a PAL be a better idea to when hosting it in a webserver? 2009/3/23 Tomas Matousek > The file you are setting breakpoint to needs to exists on the disk for Visual Studio debugger to work. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, March 23, 2009 2:14 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Debugging ruby code in a host Yes.. I'll try again.. maybe I missed something. I should really say that the file that has the ruby code is an assembly resource that gets read through an AssemblyReaderStreamContentProvider. Should I be providing that content differently? http://github.com/casualjim/ironrubymvc/blob/57cfa96ae7ce03c55e25eeb74a20d1500760b414/IronRubyMvc/Core/RubyEngine.cs#L352 I use http://gist.github.com/74979 to set a breakpoint. 2009/3/23 Tomas Matousek > Is DebugMode property of the ScriptRuntimeSetup of the ScriptRuntime you run the script in set to true? Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, March 23, 2009 12:32 PM To: ironruby-core Subject: [Ironruby-core] Debugging ruby code in a host Hi With my IronRubyMVC implementation I'm far enough to figure out that I need to be able to put breakpoints in my ruby code :) Now the question is how, because I think I tried all of the ways that are described in the wiki but had no success. I have a debug version of IronRuby and I'm using it in a C# ASP.NET MVC project with the System.Web.Mvc.IronRuby dll as a reference. The web application hosts the scriptruntime etc. Now what do I need to do to make visual studio break on the breakpoint I define? In merging the latest git pushes into the linux branch I've seen a pdb generator does that mean I can actually get to more meaningful stack traces etc. again the question how springs to mind? :) Thanks Ivan _______________________________________________ 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 Tomas.Matousek at microsoft.com Mon Mar 23 21:37:26 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 23 Mar 2009 18:37:26 -0700 Subject: [Ironruby-core] Code review - Fix backtrace and 1.9 support for RubyClass/RubyMethod attributes In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E0D5411C9@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E0D5411C9@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Looks good. Tomas From: Shri Borde Sent: Friday, March 20, 2009 9:59 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code review - Fix backtrace and 1.9 support for RubyClass/RubyMethod attributes Assuming you have done "git clone git://github.com/shri/ironruby.git" before and run Languages\Ruby\Scripts\dev.bat, git pull GitDiff.bat ce7438b4c038dc8937f59758f33c387e139aea6a 8cf29c0704af4d3fdf51069aa6cbf034b2974edd Bactrace was being set to nil for "raise existingException, 'new message'". RubyOps.SetExceptionAndStrackTrace needs to call zSetCompiledTrace even if a RubyExceptionData exists for the exception, which it will for the case of raising with a new exception message. The current scheme is closer to MRI which checks if backtrace is set before calling set_backtrace. Removed RubyOptions.DefaultExceptionDetail. It is no longer needed as always have access to a RubyContext when creating a backtrace which allows access to LanguageOptions.ExceptionDetail. Added support for Initializers.Generated to have constructs that exist in only a specific version of Ruby. Used that for "Encoding". These two issues were affecting minitest (which is used by rubygems). With these fixes, minitest does not need any workarounds. Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Mar 24 03:08:20 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 24 Mar 2009 07:08:20 +0000 Subject: [Ironruby-core] [ATTN] AgDLR 0.5 Released Message-ID: In conjunction with MIX ?09 and the announcement of IronRuby 0.3, I?d like to announce a new release of AgDLR 0.5 ? the Silverlight Dynamic Languages SDK. Download AgDLR 0.5 http://sdlsdk.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=25120 You can also check out and download the source code for this release: View: http://github.com/jschementi/agdlr/tree/v0.5.0 Download: http://github.com/jschementi/agdlr/zipball/v0.5.0 This is the MIX ?09 release for Silverlight 2 and Silverlight 3 Beta. It updates the languages to IronRuby 0.3 and IronPython 2.6 pre-alpha, and adds a bunch of new features to Microsoft.Scripting.Silverlight and Chiron. Please read the release notes for details, or my announcement post: http://blog.jimmy.schementi.com/2009/03/silverlight-dynamic-languages-sdk-05.html ~Jimmy From lists at ruby-forum.com Tue Mar 24 08:31:13 2009 From: lists at ruby-forum.com (Greg Slagell) Date: Tue, 24 Mar 2009 13:31:13 +0100 Subject: [Ironruby-core] Igem list -r is giving me an error. Message-ID: <9432000be4d8dd12738fab1ea6b034fb@ruby-forum.com> I am using the Ironruby 0.3 release and every time I try to run "igem list -r" I get a StackOverFlowException. Am I the only one? C:\Users\gs>igem list *** LOCAL GEMS *** C:\Users\gs>igem list -r *** REMOTE GEMS *** Process is terminated due to StackOverflowException. C:\Users\gs> -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Tue Mar 24 13:00:44 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 24 Mar 2009 10:00:44 -0700 Subject: [Ironruby-core] Review: Marshal bugs affecting rubygems Message-ID: <710DF26F214D2B4BB94287123FFE980A2E1071846D@NA-EXMSG-C104.redmond.corp.microsoft.com> GitDiff.bat d522059c42607fd2ea1cf8b39fc78006f5e4383d 79298efe4e30261ff76b3f989fc2d0002a47c9d6, or http://github.com/shri/ironruby/commit/79298efe4e30261ff76b3f989fc2d0002a47c9d6 Marshal.WriteObject was writing serialization data which includes instance variables, but the end of MarshalWriter.WriteAnObject was writing instance data as well. Removed writing of serialization data TimeOps.load had a bug causing local time to be loaded as utc time. Added building of IronPython to irtests.bat since it is needed for the language interop tests Files changed: * Merlin/External/Languages/IronRuby/mspec/ironruby-tags/core/marshal/dump_tags.txt * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/marshal/dump_spec.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/marshal/fixtures/marshal_data.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/marshal/load_spec.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/time/_load_spec.rb * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/Marshal.cs * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/TimeOps.cs * Merlin/Main/Languages/Ruby/Scripts/irtests.bat Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Tue Mar 24 13:17:18 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 24 Mar 2009 18:17:18 +0100 Subject: [Ironruby-core] Planning? Message-ID: Hi John announced at Mix that the aim is to release in June 09. That officially gives Michael and me a deadline around mid may probably. At that time it should be ready for RTM. I have chapter in my TOC about webforms, but as long as there is no integration to play with it's going to be hard to explain people what needs to happen. Should I just skip that subject then, is there a private project floating around perhaps? Also rails compatibility what should I imagine there? Will there be active record adapters provided by MS to make that work because Rails without active record isn't really rails is it? To host it in IIS I believe I've got somebody interested enough in Rack to give that a shot. I just won't have time to implement that activerecord stuff although I looked at it and it isn't really hard I guess it's just a lot of work :) I'll try to get ironrubymvc done as soon as possible because I still need to write 3 chapters to finish on time which might be a huge challenge on its own. The following is not a complaint/order/command or anything like that, it's just a query: If the timeline around webforms integration is anywhere before may then I might be able to squeeze it in, otherwise I'll have to skip it probably which brings my chapters down to 2 :). For the people from the community who would like to submit a 2-5 page essay on how they used IronRuby in their organization. I will need those before the 3rd week of april at the latest. Cheers Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Mar 24 13:45:55 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 24 Mar 2009 10:45:55 -0700 Subject: [Ironruby-core] Mspec errors. Where should I start contributing? In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD047D61@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <0AB34E2BFBE88245B073D2D83B4245FD047D61@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E107184CD@NA-EXMSG-C104.redmond.corp.microsoft.com> I will fix File.expand_path to throw ArgumentException. I will also fix dev.bat to set HOME if it is not already set. I still don't know why "mspec ci" runs to completion (without running any examples) for me even if HOME is not set, and throws for Adam. Oh well. Its not really important as HOME really needs to be set so that mspec actually runs the examples. I think we have drilled in enough... From: Jim Deville Sent: Tuesday, March 24, 2009 9:14 AM To: Adam Kahtava; Shri Borde Subject: RE: [Ironruby-core] Mspec errors. Where should I start contributing? The Errno::EINVAL is part of the problem. MRI throws a ArgumentError with a specific error message about HOME. I have that being rescued in the mspec startup. We need to fix this case to throw a ArgumentError with the correct error message. JD -----Original Message----- From: Adam Kahtava Sent: March 24, 2009 6:09 AM To: Shri Borde Cc: Jim Deville Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? Shri, After setting %HOME% to %USERPROFILE% manually, mspec worked. Previously the stack trace was: C:\Projects\ironruby\Merlin\Main\Languages\Ruby>mspec ci core\array\append IronRuby 0.3 0.3.0.0 on .NET 2.0.0.0 c:\Projects\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtin s\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) from :0:in `expand_path' from script.rb:71:in `load' from :0:in `each' from script.rb:65:in `load' from script.rb:189:in `main' from mspec-ci:0 Thanks again, - Adam On Mon, Mar 23, 2009 at 11:24 PM, Shri Borde > wrote: Can you send the full stack-trace so we can see why mspec is not dealing with HOME not being set? Hopefully, the stack trace is being printed to the console. Also, can you manually set HOME to something like c:\Users\username? If that fixes the problem, we can update dev.bat to set HOME. From: Adam Kahtava [mailto:adam at kahtava.com] Sent: Monday, March 23, 2009 8:30 PM To: Shri Borde Cc: Jim Deville Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? A couple other notes: I don't have a sdkvar.bat on this machine. I also have PowerShell installed. Thanks again, - Adam On Mon, Mar 23, 2009 at 9:16 PM, Adam Kahtava > wrote: Hi Jim, I'm running on Windows Server 2008 64bit, I'm using the dev.bat, but had to modify the paths for csc and resgen. I don't have Visual Studio installed. I got the latest (Sunday) from git. You're right it doesn't look like my %HOME% is set. What now? Thanks, - Adam On Mon, Mar 23, 2009 at 2:17 PM, Shri Borde > wrote: Narrowing the distribution for now. We can report back to the list later... Adam, what exact version of the sources are you using? What platform are you running on? Are you using dev.bat? If I unset %HOME%, both "mspec ci -tr core\array\append" and "mspec ci core\array\append" run to completion, but the result says that no examples were actually run. This must be because mspec cannot find the default.mspec that dev.bat copies to %HOME%. File.expand_path("~") is supposed to raise an exception if HOME is not set, but I do not get the exception. Mspec must be doing some filtering. Can you send a full stack trace so we can try to figure out why its failing for you. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday, March 23, 2009 11:04 AM To: ironruby-core at rubyforge.org; Tomas Matousek Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? Correction this was wrong. IRB isn't using Powershell's env variables, so when I unset all of those variables, Ruby still had them set. My bad. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday, March 23, 2009 10:18 AM To: ironruby-core at rubyforge.org; Tomas Matousek Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? So it looks like there are 2 issues here. One is the immediate issue: You don't have %HOME% set, which is why this error occurs. Underneath that there is a real issue: IronRuby isn't searching for a %HOME% replacement in the same way that Ruby does. Ruby can find ~ even if HOME, HOMEDRIVE, HOMEPATH, and USERPROFILE are all unset. I'm not sure what algorithm they use at that point. So to contribute: 1) We need you to follow the steps at http://wiki.github.com/ironruby/ironruby/contributing, especially the portion about signing the agreement 2) If you want to fix this error (which is going to be resolved in the path referenced below), go for it, then send IronRuby a pull request on Github. I'll pull your changes in. 3) If you want to work on something else, feel free to grab a bug from RubyForge from the Triaged category after Tomas adds some more (Tomas, can you add more bugs to that category :)) a. Or, like Shri suggested in the other thread, choose a tag file and fix all the tags Let us know if you have any questions! JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Adam Kahtava Sent: Monday, March 23, 2009 5:15 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Mspec errors. Where should I start contributing? When running mspec (mspec -ci core\array\append) I get the following error: \Libraries.LCA_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) Should I be getting this error? How can I resolve this? I'd like to contribute. Where should I start? Should I be pulling items from the bug list: http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798 Thanks in advance, - Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Mar 24 14:02:49 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 24 Mar 2009 18:02:49 +0000 Subject: [Ironruby-core] Mspec errors. Where should I start contributing? Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD048473@TK5EX14MBXC101.redmond.corp.microsoft.com> MRI uses a different technique to set HOME (I'll file a bug later), so it might have it reset HOME for its spawned Ruby. We'll look into it. JD -----Original Message----- From: Shri Borde Sent: March 24, 2009 10:46 AM To: Jim Deville ; Adam Kahtava Cc: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] Mspec errors. Where should I start contributing? I will fix File.expand_path to throw ArgumentException. I will also fix dev.bat to set HOME if it is not already set. I still don?t know why ?mspec ci? runs to completion (without running any examples) for me even if HOME is not set, and throws for Adam. Oh well. Its not really important as HOME really needs to be set so that mspec actually runs the examples. I think we have drilled in enough? From: Jim Deville Sent: Tuesday, March 24, 2009 9:14 AM To: Adam Kahtava; Shri Borde Subject: RE: [Ironruby-core] Mspec errors. Where should I start contributing? The Errno::EINVAL is part of the problem. MRI throws a ArgumentError with a specific error message about HOME. I have that being rescued in the mspec startup. We need to fix this case to throw a ArgumentError with the correct error message. JD -----Original Message----- From: Adam Kahtava Sent: March 24, 2009 6:09 AM To: Shri Borde Cc: Jim Deville Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? Shri, After setting %HOME% to %USERPROFILE% manually, mspec worked. Previously the stack trace was: C:\Projects\ironruby\Merlin\Main\Languages\Ruby>mspec ci core\array\append IronRuby 0.3 0.3.0.0 on .NET 2.0.0.0 c:\Projects\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtin s\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) from :0:in `expand_path' from script.rb:71:in `load' from :0:in `each' from script.rb:65:in `load' from script.rb:189:in `main' from mspec-ci:0 Thanks again, - Adam On Mon, Mar 23, 2009 at 11:24 PM, Shri Borde > wrote: Can you send the full stack-trace so we can see why mspec is not dealing with HOME not being set? Hopefully, the stack trace is being printed to the console. Also, can you manually set HOME to something like c:\Users\username? If that fixes the problem, we can update dev.bat to set HOME. From: Adam Kahtava [mailto:adam at kahtava.com] Sent: Monday, March 23, 2009 8:30 PM To: Shri Borde Cc: Jim Deville Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? A couple other notes: I don't have a sdkvar.bat on this machine. I also have PowerShell installed. Thanks again, - Adam On Mon, Mar 23, 2009 at 9:16 PM, Adam Kahtava > wrote: Hi Jim, I'm running on Windows Server 2008 64bit, I'm using the dev.bat, but had to modify the paths for csc and resgen. I don't have Visual Studio installed. I got the latest (Sunday) from git. You're right it doesn't look like my %HOME% is set. What now? Thanks, - Adam On Mon, Mar 23, 2009 at 2:17 PM, Shri Borde > wrote: Narrowing the distribution for now. We can report back to the list later? Adam, what exact version of the sources are you using? What platform are you running on? Are you using dev.bat? If I unset %HOME%, both ?mspec ci ?tr core\array\append? and ?mspec ci core\array\append? run to completion, but the result says that no examples were actually run. This must be because mspec cannot find the default.mspec that dev.bat copies to %HOME%. File.expand_path(?~?) is supposed to raise an exception if HOME is not set, but I do not get the exception. Mspec must be doing some filtering. Can you send a full stack trace so we can try to figure out why its failing for you. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday, March 23, 2009 11:04 AM To: ironruby-core at rubyforge.org; Tomas Matousek Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? Correction this was wrong. IRB isn?t using Powershell?s env variables, so when I unset all of those variables, Ruby still had them set. My bad. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Monday, March 23, 2009 10:18 AM To: ironruby-core at rubyforge.org; Tomas Matousek Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing? So it looks like there are 2 issues here. One is the immediate issue: You don?t have %HOME% set, which is why this error occurs. Underneath that there is a real issue: IronRuby isn?t searching for a %HOME% replacement in the same way that Ruby does. Ruby can find ~ even if HOME, HOMEDRIVE, HOMEPATH, and USERPROFILE are all unset. I?m not sure what algorithm they use at that point. So to contribute: 1) We need you to follow the steps at http://wiki.github.com/ironruby/ironruby/contributing, especially the portion about signing the agreement 2) If you want to fix this error (which is going to be resolved in the path referenced below), go for it, then send IronRuby a pull request on Github. I?ll pull your changes in. 3) If you want to work on something else, feel free to grab a bug from RubyForge from the Triaged category after Tomas adds some more (Tomas, can you add more bugs to that category :)) a. Or, like Shri suggested in the other thread, choose a tag file and fix all the tags Let us know if you have any questions! JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Adam Kahtava Sent: Monday, March 23, 2009 5:15 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Mspec errors. Where should I start contributing? When running mspec (mspec -ci core\array\append) I get the following error: \Libraries.LCA_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL) Should I be getting this error? How can I resolve this? I'd like to contribute. Where should I start? Should I be pulling items from the bug list: http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798 Thanks in advance, - Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Mar 24 14:32:44 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 24 Mar 2009 11:32:44 -0700 Subject: [Ironruby-core] Code Review: ClrPrimitives2 Message-ID: tfpt review "/shelveset:ClrPrimitives2;REDMOND\tomat" Python, DLR outer ring changes: Hoists FloorDivision implementation to MathUtils - Ruby uses the very same operation. Ruby changes: A couple of breaking changes: - Removes ClrString constant. CLR string should be referred to as System::String. - Removes IronRuby library. "require 'IronRuby'" is no longer needed, IronRuby module is now a built-in module. Implements integer/float operations for all CLR primitive numeric types (byte, sbyte, short, ushort, uint, long, ulong, float). Those integer types that fit in 32-bit signed integer (Fixnum) are widened to Fixnum for all operations. The other integer types are widened to BigInteger. Float is converted to double. The operations on these types don't narrow their results even if the values fit. For example, (System::Byte.new(1) + 1).class == Fixnum, not System::Byte. This might not be optimal for some scenarios. If we find it important we'll fix this in future. The implementation takes the operations from FixnumOps, BignumOps and FloatOps and moves them to new modules IronRuby::Clr::Integer, IronRuby::Clr::BigInteger and IronRuby::Clr::Float respectively. These are mixed back into the numeric types. Some methods need to be specialized for each types, so we generated C# code for them. Ruby 1.9 script ClrInteger.Generator.rb produces ClrInteger.Generated.cs. Implements System::Char and System::String methods so that they behave like an immutable UTF-8 encoded string (of size 1 character in the case of System::Char). Many methods in MutableStringOps can share implementation with CLR string. There is still a lot of work to be done here, especially to support encodings. So for now, to make CLR strings work like Ruby frozen strings to a large extent, I've implemented method-missing dispatch that forwards to a MutableString. Adds IronRuby::Clr::MultiDimensionalArray that is mixed into all multi-dimensional arrays. This mixin needs to implement those IList methods that only work with vectors. Enables checked arithmetic operations in debug builds. Fixes underflow/overflow bugs in integer operations and adds tests for them. Adds C# code generator script - used for generating ClrInteger classes. Groups all StringFormatter sites into a single site local storage class. Fixes [#20265] library classes nested in an extension class have wrong name Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ClrPrimitives2.diff Type: application/octet-stream Size: 509880 bytes Desc: ClrPrimitives2.diff URL: From Tomas.Matousek at microsoft.com Tue Mar 24 14:50:46 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 24 Mar 2009 11:50:46 -0700 Subject: [Ironruby-core] Igem list -r is giving me an error. In-Reply-To: <9432000be4d8dd12738fab1ea6b034fb@ruby-forum.com> References: <9432000be4d8dd12738fab1ea6b034fb@ruby-forum.com> Message-ID: It's a bug in splatting. The gems are attempting to splat an array with 5000+ items, which produces a huge DLR tree. This expression is walked by DLR recursive visitor, which leads to a stack overflow. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Greg Slagell Sent: Tuesday, March 24, 2009 5:31 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Igem list -r is giving me an error. I am using the Ironruby 0.3 release and every time I try to run "igem list -r" I get a StackOverFlowException. Am I the only one? C:\Users\gs>igem list *** LOCAL GEMS *** C:\Users\gs>igem list -r *** REMOTE GEMS *** Process is terminated due to StackOverflowException. C:\Users\gs> -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Tue Mar 24 15:06:53 2009 From: lists at ruby-forum.com (Greg Slagell) Date: Tue, 24 Mar 2009 20:06:53 +0100 Subject: [Ironruby-core] Igem list -r is giving me an error. In-Reply-To: References: <9432000be4d8dd12738fab1ea6b034fb@ruby-forum.com> Message-ID: <6a36a78fe63d945de561782e3975ac34@ruby-forum.com> Ok, that makes sense. Thanks for the reply. Greg -- Posted via http://www.ruby-forum.com/. From curth at microsoft.com Tue Mar 24 15:48:50 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Tue, 24 Mar 2009 12:48:50 -0700 Subject: [Ironruby-core] Code Review: ClrPrimitives2 In-Reply-To: References: Message-ID: Looks good. The changes for the StringFormatter sites are much needed! The test PythonInterop5 doesn't look complete -- there's no assertion. It seems odd that CharOps would include Enumerable. Is that because a char looks like a string that can never have a length != 1? You don't want to use Int32ToObject on ClrInteger.Narrow? There's a minor typo in the comment for MultiDimensionalClrArrayOps. In RubyClass.GetDeclaredClrMethods, what if the member you're looking for actually has a name that ends in "*" ? :) From: Tomas Matousek Sent: Tuesday, March 24, 2009 11:33 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: ClrPrimitives2 tfpt review "/shelveset:ClrPrimitives2;REDMOND\tomat" Python, DLR outer ring changes: Hoists FloorDivision implementation to MathUtils - Ruby uses the very same operation. Ruby changes: A couple of breaking changes: - Removes ClrString constant. CLR string should be referred to as System::String. - Removes IronRuby library. "require 'IronRuby'" is no longer needed, IronRuby module is now a built-in module. Implements integer/float operations for all CLR primitive numeric types (byte, sbyte, short, ushort, uint, long, ulong, float). Those integer types that fit in 32-bit signed integer (Fixnum) are widened to Fixnum for all operations. The other integer types are widened to BigInteger. Float is converted to double. The operations on these types don't narrow their results even if the values fit. For example, (System::Byte.new(1) + 1).class == Fixnum, not System::Byte. This might not be optimal for some scenarios. If we find it important we'll fix this in future. The implementation takes the operations from FixnumOps, BignumOps and FloatOps and moves them to new modules IronRuby::Clr::Integer, IronRuby::Clr::BigInteger and IronRuby::Clr::Float respectively. These are mixed back into the numeric types. Some methods need to be specialized for each types, so we generated C# code for them. Ruby 1.9 script ClrInteger.Generator.rb produces ClrInteger.Generated.cs. Implements System::Char and System::String methods so that they behave like an immutable UTF-8 encoded string (of size 1 character in the case of System::Char). Many methods in MutableStringOps can share implementation with CLR string. There is still a lot of work to be done here, especially to support encodings. So for now, to make CLR strings work like Ruby frozen strings to a large extent, I've implemented method-missing dispatch that forwards to a MutableString. Adds IronRuby::Clr::MultiDimensionalArray that is mixed into all multi-dimensional arrays. This mixin needs to implement those IList methods that only work with vectors. Enables checked arithmetic operations in debug builds. Fixes underflow/overflow bugs in integer operations and adds tests for them. Adds C# code generator script - used for generating ClrInteger classes. Groups all StringFormatter sites into a single site local storage class. Fixes [#20265] library classes nested in an extension class have wrong name Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Tue Mar 24 16:45:53 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 24 Mar 2009 13:45:53 -0700 Subject: [Ironruby-core] Code Review: ClrPrimitives2 In-Reply-To: References: Message-ID: Inline. From: Curt Hagenlocher Sent: Tuesday, March 24, 2009 12:49 PM To: Tomas Matousek; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: ClrPrimitives2 Looks good. The changes for the StringFormatter sites are much needed! The test PythonInterop5 doesn't look complete -- there's no assertion. Will add assertion. It seems odd that CharOps would include Enumerable. Is that because a char looks like a string that can never have a length != 1? You can enumerate a single element :). Yes, it's for consistency. You don't want to use Int32ToObject on ClrInteger.Narrow? I'm not sure if it is needed. How often will the result be in the small range of numbers for which we cache objects? There's a minor typo in the comment for MultiDimensionalClrArrayOps. Fixed. In RubyClass.GetDeclaredClrMethods, what if the member you're looking for actually has a name that ends in "*" ? :) Then you should file a bug on Reflection ;-) Tomas From: Tomas Matousek Sent: Tuesday, March 24, 2009 11:33 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: ClrPrimitives2 tfpt review "/shelveset:ClrPrimitives2;REDMOND\tomat" Python, DLR outer ring changes: Hoists FloorDivision implementation to MathUtils - Ruby uses the very same operation. Ruby changes: A couple of breaking changes: - Removes ClrString constant. CLR string should be referred to as System::String. - Removes IronRuby library. "require 'IronRuby'" is no longer needed, IronRuby module is now a built-in module. Implements integer/float operations for all CLR primitive numeric types (byte, sbyte, short, ushort, uint, long, ulong, float). Those integer types that fit in 32-bit signed integer (Fixnum) are widened to Fixnum for all operations. The other integer types are widened to BigInteger. Float is converted to double. The operations on these types don't narrow their results even if the values fit. For example, (System::Byte.new(1) + 1).class == Fixnum, not System::Byte. This might not be optimal for some scenarios. If we find it important we'll fix this in future. The implementation takes the operations from FixnumOps, BignumOps and FloatOps and moves them to new modules IronRuby::Clr::Integer, IronRuby::Clr::BigInteger and IronRuby::Clr::Float respectively. These are mixed back into the numeric types. Some methods need to be specialized for each types, so we generated C# code for them. Ruby 1.9 script ClrInteger.Generator.rb produces ClrInteger.Generated.cs. Implements System::Char and System::String methods so that they behave like an immutable UTF-8 encoded string (of size 1 character in the case of System::Char). Many methods in MutableStringOps can share implementation with CLR string. There is still a lot of work to be done here, especially to support encodings. So for now, to make CLR strings work like Ruby frozen strings to a large extent, I've implemented method-missing dispatch that forwards to a MutableString. Adds IronRuby::Clr::MultiDimensionalArray that is mixed into all multi-dimensional arrays. This mixin needs to implement those IList methods that only work with vectors. Enables checked arithmetic operations in debug builds. Fixes underflow/overflow bugs in integer operations and adds tests for them. Adds C# code generator script - used for generating ClrInteger classes. Groups all StringFormatter sites into a single site local storage class. Fixes [#20265] library classes nested in an extension class have wrong name Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Tue Mar 24 17:53:58 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Tue, 24 Mar 2009 22:53:58 +0100 Subject: [Ironruby-core] Confused - trying to run the specs Message-ID: <4a68b8cf0903241453x107d298en5b3067dca24cccba@mail.gmail.com> Hi, I'm having a closer look at the source in order to attempt some work around system and IO popen. I pulled the code, ran dev.bat etc. The build runs fine. Now I'm trying to run the specs and something must be not quite right - or I'm not invoking the right modjo. Maybe some confusion with some existing install on the system, I'm not sure. I've tried (U: is my github root): U:\>mspec ci core\kernel\system ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] Finished in 0.000000 seconds 0 files, 0 examples, 0 expectations, 0 failures, 0 errors also tried: U:\Merlin\External\Languages\IronRuby\mspec>mspec :core U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in `main' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 I have no HOME var set. I tried setting it but it doesn't seem to change anything currently. So any hint will help me go further here (I'll continue diving in here). Are there some steps I should carry out ? As well, is there an explanation of what "tags" are for ? Are these some way to track the specs that aren't passing ? cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Mar 24 17:54:29 2009 From: lists at ruby-forum.com (Jens Sauer) Date: Tue, 24 Mar 2009 22:54:29 +0100 Subject: [Ironruby-core] Cannot load any gems Message-ID: Hello, I installed IronRuby 0.3.0 from github and ruby 1.8.6 on my windows xp machine. Further I installed the gem sinatra using ruby and edited the ir.exe.config so that the ruby libraries get loaded. When I start ir and type require 'rubygems' everything works fine. When I type require 'sinatra# I get the following error: (eval):3:in `load_specification': private method `specification_version=' called for # (NoMethodError) from specification.rb:406:in `initialize' from (eval):0 from :0:in `eval' from source_index.rb:89:in `load_specification' from source_index.rb:127:in `load_gems_in' from :0:in `each' from source_index.rb:124:in `load_gems_in' from source_index.rb:80:in `from_gems_in' from source_index.rb:51:in `from_installed_gems' from rubygems.rb:125:in `source_index' from custom_require.rb:104:in `init_gemspecs' from custom_require.rb:51:in `initialize' from rubygems.rb:211:in `searcher' from :0:in `synchronize' from rubygems.rb:210:in `searcher' from custom_require.rb:26:in `require' from :0 Thx a lot. Jens -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Tue Mar 24 19:09:16 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 24 Mar 2009 16:09:16 -0700 Subject: [Ironruby-core] Confused - trying to run the specs In-Reply-To: <4a68b8cf0903241453x107d298en5b3067dca24cccba@mail.gmail.com> References: <4a68b8cf0903241453x107d298en5b3067dca24cccba@mail.gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E10718779@NA-EXMSG-C104.redmond.corp.microsoft.com> This does seem to be an issue with HOME not being set which Adam Khatava was also running into. Can you try setting HOME before running dev.bat? Dev.bat copies default.mspec to the HOME folder allowing the "mspec ci" command to know where to find the tests. So setting HOME after running dev.bat will *not* work. I have a change for dev.bat to set HOME if it is not set already. If you could confirm that setting HOME before running dev.bat works, then I will know that my change is actually the right fix for your problem. Tags are a way to disable tests. Browsing the ironruby-tags folder will tell you what does not work. See http://rubyspec.org/wiki/mspec/Mspec-tag for some info. Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Tuesday, March 24, 2009 2:54 PM To: ironruby-core Subject: [Ironruby-core] Confused - trying to run the specs Hi, I'm having a closer look at the source in order to attempt some work around system and IO popen. I pulled the code, ran dev.bat etc. The build runs fine. Now I'm trying to run the specs and something must be not quite right - or I'm not invoking the right modjo. Maybe some confusion with some existing install on the system, I'm not sure. I've tried (U: is my github root): U:\>mspec ci core\kernel\system ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] Finished in 0.000000 seconds 0 files, 0 examples, 0 expectations, 0 failures, 0 errors also tried: U:\Merlin\External\Languages\IronRuby\mspec>mspec :core U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in `main' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 I have no HOME var set. I tried setting it but it doesn't seem to change anything currently. So any hint will help me go further here (I'll continue diving in here). Are there some steps I should carry out ? As well, is there an explanation of what "tags" are for ? Are these some way to track the specs that aren't passing ? cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Mar 24 19:12:08 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 24 Mar 2009 16:12:08 -0700 Subject: [Ironruby-core] Confused - trying to run the specs References: <4a68b8cf0903241453x107d298en5b3067dca24cccba@mail.gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E10718780@NA-EXMSG-C104.redmond.corp.microsoft.com> Btw, HOME should be set to %USERPROFILE% (something like c:\Users\janedoe) for those who do not know what the value should look like. From: Shri Borde Sent: Tuesday, March 24, 2009 4:09 PM To: ironruby-core Subject: RE: [Ironruby-core] Confused - trying to run the specs This does seem to be an issue with HOME not being set which Adam Khatava was also running into. Can you try setting HOME before running dev.bat? Dev.bat copies default.mspec to the HOME folder allowing the "mspec ci" command to know where to find the tests. So setting HOME after running dev.bat will *not* work. I have a change for dev.bat to set HOME if it is not set already. If you could confirm that setting HOME before running dev.bat works, then I will know that my change is actually the right fix for your problem. Tags are a way to disable tests. Browsing the ironruby-tags folder will tell you what does not work. See http://rubyspec.org/wiki/mspec/Mspec-tag for some info. Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Tuesday, March 24, 2009 2:54 PM To: ironruby-core Subject: [Ironruby-core] Confused - trying to run the specs Hi, I'm having a closer look at the source in order to attempt some work around system and IO popen. I pulled the code, ran dev.bat etc. The build runs fine. Now I'm trying to run the specs and something must be not quite right - or I'm not invoking the right modjo. Maybe some confusion with some existing install on the system, I'm not sure. I've tried (U: is my github root): U:\>mspec ci core\kernel\system ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] Finished in 0.000000 seconds 0 files, 0 examples, 0 expectations, 0 failures, 0 errors also tried: U:\Merlin\External\Languages\IronRuby\mspec>mspec :core U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in `main' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 I have no HOME var set. I tried setting it but it doesn't seem to change anything currently. So any hint will help me go further here (I'll continue diving in here). Are there some steps I should carry out ? As well, is there an explanation of what "tags" are for ? Are these some way to track the specs that aren't passing ? cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Mar 24 19:32:51 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 24 Mar 2009 23:32:51 +0000 Subject: [Ironruby-core] Confused - trying to run the specs Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD049F79@TK5EX14MBXC101.redmond.corp.microsoft.com> Just FYI, setting HOME after dev.bat should work fine. Dev.bat has detection logic. However, this won't matter after Shri's changes. JD -----Original Message----- From: Shri Borde Sent: March 24, 2009 4:29 PM To: Shri Borde ; ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Confused - trying to run the specs Btw, HOME should be set to %USERPROFILE% (something like c:\Users\janedoe) for those who do not know what the value should look like. From: Shri Borde Sent: Tuesday, March 24, 2009 4:09 PM To: ironruby-core Subject: RE: [Ironruby-core] Confused - trying to run the specs This does seem to be an issue with HOME not being set which Adam Khatava was also running into. Can you try setting HOME before running dev.bat? Dev.bat copies default.mspec to the HOME folder allowing the ?mspec ci? command to know where to find the tests. So setting HOME after running dev.bat will *not* work. I have a change for dev.bat to set HOME if it is not set already. If you could confirm that setting HOME before running dev.bat works, then I will know that my change is actually the right fix for your problem. Tags are a way to disable tests. Browsing the ironruby-tags folder will tell you what does not work. See http://rubyspec.org/wiki/mspec/Mspec-tag for some info. Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Tuesday, March 24, 2009 2:54 PM To: ironruby-core Subject: [Ironruby-core] Confused - trying to run the specs Hi, I'm having a closer look at the source in order to attempt some work around system and IO popen. I pulled the code, ran dev.bat etc. The build runs fine. Now I'm trying to run the specs and something must be not quite right - or I'm not invoking the right modjo. Maybe some confusion with some existing install on the system, I'm not sure. I've tried (U: is my github root): U:\>mspec ci core\kernel\system ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] Finished in 0.000000 seconds 0 files, 0 examples, 0 expectations, 0 failures, 0 errors also tried: U:\Merlin\External\Languages\IronRuby\mspec>mspec :core U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in `main' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 I have no HOME var set. I tried setting it but it doesn't seem to change anything currently. So any hint will help me go further here (I'll continue diving in here). Are there some steps I should carry out ? As well, is there an explanation of what "tags" are for ? Are these some way to track the specs that aren't passing ? cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From thibaut.barrere at gmail.com Wed Mar 25 05:29:46 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 25 Mar 2009 10:29:46 +0100 Subject: [Ironruby-core] Confused - trying to run the specs In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E10718779@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <4a68b8cf0903241453x107d298en5b3067dca24cccba@mail.gmail.com> <710DF26F214D2B4BB94287123FFE980A2E10718779@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <4a68b8cf0903250229rcbdfcbbp545441c4f5e4ee09@mail.gmail.com> Hi, I tried that: set HOME=%USERPROFILE% then dev.bat then: U:\Merlin\External\Languages\IronRuby\mspec>mspec :core U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in `main' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 U:\Merlin\External\Languages\IronRuby\mspec>echo %HOME% C:\Documents and Settings\Thibaut Barr?re At this point there is a .mspecrc in HOME, and MERLIN_ROOT is set to U:\Merlin\Main Calling dev.bat first then setting HOME does not change the behaviour. I also removed all known references to some IR version from my PATHs (both user and system), pulled the last ironruby bits, compiled again and retried, but it raises the same error. Maybe it's a cause: in which folder should I be before I call mspec ci ? No idea what's going on for the moment, any hint will be most welcome. -- Thibaut 2009/3/25 Shri Borde > This does seem to be an issue with HOME not being set which Adam Khatava > was also running into. Can you try setting HOME before running dev.bat? > Dev.bat copies default.mspec to the HOME folder allowing the ?mspec ci? > command to know where to find the tests. So setting HOME after running > dev.bat will **not** work. > > > > I have a change for dev.bat to set HOME if it is not set already. If you > could confirm that setting HOME before running dev.bat works, then I will > know that my change is actually the right fix for your problem. > > > > Tags are a way to disable tests. Browsing the ironruby-tags folder will > tell you what does not work. See http://rubyspec.org/wiki/mspec/Mspec-tagfor some info. > > > > Thanks, > > Shri > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Thibaut Barr?re > > *Sent:* Tuesday, March 24, 2009 2:54 PM > *To:* ironruby-core > *Subject:* [Ironruby-core] Confused - trying to run the specs > > > > Hi, > > > > I'm having a closer look at the source in order to attempt some work around > system and IO popen. > > > > I pulled the code, ran dev.bat etc. The build runs fine. > > > > Now I'm trying to run the specs and something must be not quite right - or > I'm not invoking the right modjo. Maybe some confusion with some existing > install on the system, I'm not sure. > > > > I've tried (U: is my github root): > > > > U:\>mspec ci core\kernel\system > > ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] > > > > Finished in 0.000000 seconds > > > > 0 files, 0 examples, 0 expectations, 0 failures, 0 errors > > also tried: > > > > U:\Merlin\External\Languages\IronRuby\mspec>mspec :core > > U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in > `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd > (Errno::ENOENT) > > from > U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in > `run' > > from > U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in > `main' > > from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 > > > > I have no HOME var set. I tried setting it but it doesn't seem to change > anything currently. > > > > So any hint will help me go further here (I'll continue diving in here). > Are there some steps I should carry out ? > > > > As well, is there an explanation of what "tags" are for ? Are these some > way to track the specs that aren't passing ? > > > > cheers, > > > > -- Thibaut > > > > _______________________________________________ > 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 thibaut.barrere at gmail.com Wed Mar 25 05:39:01 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 25 Mar 2009 10:39:01 +0100 Subject: [Ironruby-core] Flagged enums Message-ID: <4a68b8cf0903250239h5a39245y5892ba5c9ff3b358@mail.gmail.com> Hi, it seems that the following code isn't supported: AnchorStyles.Bottom | AnchorStyles.Left I believe IronPython supports this (see EnumOps.cs). Is that syntax planned ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Mar 25 11:30:04 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 25 Mar 2009 15:30:04 +0000 Subject: [Ironruby-core] Confused - trying to run the specs Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD09835AC2@TK5EX14MBXC101.redmond.corp.microsoft.com> I have this fixed in my Git fork. I'll be pulling it in this week. In the mean time, change Merlin/External/Languages/IronRuby/mspec/default.mspec to set :target, "/path/to/Merlin/Main/bin/debug/ir.exe". Sorry for the trouble. JD -----Original Message----- From: Thibaut Barr?re Sent: March 25, 2009 3:50 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Confused - trying to run the specs Hi, I tried that: set HOME=%USERPROFILE% then dev.bat then: U:\Merlin\External\Languages\IronRuby\mspec>mspec :core U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in `main' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 U:\Merlin\External\Languages\IronRuby\mspec>echo %HOME% C:\Documents and Settings\Thibaut Barr?re At this point there is a .mspecrc in HOME, and MERLIN_ROOT is set to U:\Merlin\Main Calling dev.bat first then setting HOME does not change the behaviour. I also removed all known references to some IR version from my PATHs (both user and system), pulled the last ironruby bits, compiled again and retried, but it raises the same error. Maybe it's a cause: in which folder should I be before I call mspec ci ? No idea what's going on for the moment, any hint will be most welcome. -- Thibaut 2009/3/25 Shri Borde > This does seem to be an issue with HOME not being set which Adam Khatava was also running into. Can you try setting HOME before running dev.bat? Dev.bat copies default.mspec to the HOME folder allowing the ?mspec ci? command to know where to find the tests. So setting HOME after running dev.bat will *not* work. I have a change for dev.bat to set HOME if it is not set already. If you could confirm that setting HOME before running dev.bat works, then I will know that my change is actually the right fix for your problem. Tags are a way to disable tests. Browsing the ironruby-tags folder will tell you what does not work. See http://rubyspec.org/wiki/mspec/Mspec-tag for some info. Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Tuesday, March 24, 2009 2:54 PM To: ironruby-core Subject: [Ironruby-core] Confused - trying to run the specs Hi, I'm having a closer look at the source in order to attempt some work around system and IO popen. I pulled the code, ran dev.bat etc. The build runs fine. Now I'm trying to run the specs and something must be not quite right - or I'm not invoking the right modjo. Maybe some confusion with some existing install on the system, I'm not sure. I've tried (U: is my github root): U:\>mspec ci core\kernel\system ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] Finished in 0.000000 seconds 0 files, 0 examples, 0 expectations, 0 failures, 0 errors also tried: U:\Merlin\External\Languages\IronRuby\mspec>mspec :core U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `exec': No such file or directory - U:\Merlin\Main\Test\Scripts\ir.cmd (Errno::ENOENT) from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/commands/mspec.rb:150:in `run' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/lib/mspec/utils/script.rb:203:in `main' from U:/Merlin/External/Languages/IronRuby/mspec/mspec/bin/mspec:7 I have no HOME var set. I tried setting it but it doesn't seem to change anything currently. So any hint will help me go further here (I'll continue diving in here). Are there some steps I should carry out ? As well, is there an explanation of what "tags" are for ? Are these some way to track the specs that aren't passing ? cheers, -- Thibaut _______________________________________________ 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 Tomas.Matousek at microsoft.com Wed Mar 25 12:25:03 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 25 Mar 2009 09:25:03 -0700 Subject: [Ironruby-core] Flagged enums In-Reply-To: <4a68b8cf0903250239h5a39245y5892ba5c9ff3b358@mail.gmail.com> References: <4a68b8cf0903250239h5a39245y5892ba5c9ff3b358@mail.gmail.com> Message-ID: Yes, we can do that. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Thibaut Barr?re Sent: Wednesday, March 25, 2009 2:39 AM To: ironruby-core Subject: [Ironruby-core] Flagged enums Hi, it seems that the following code isn't supported: AnchorStyles.Bottom | AnchorStyles.Left I believe IronPython supports this (see EnumOps.cs). Is that syntax planned ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Mar 25 13:06:29 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 25 Mar 2009 17:06:29 +0000 Subject: [Ironruby-core] Flagged enums In-Reply-To: <4a68b8cf0903250239h5a39245y5892ba5c9ff3b358@mail.gmail.com> References: <4a68b8cf0903250239h5a39245y5892ba5c9ff3b358@mail.gmail.com> Message-ID: IronRuby should support this. Enum values are ints anyway, so that behavior shouldn't be hard to implement. ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Thibaut Barr?re [thibaut.barrere at gmail.com] Sent: Wednesday, March 25, 2009 2:39 AM To: ironruby-core Subject: [Ironruby-core] Flagged enums Hi, it seems that the following code isn't supported: AnchorStyles.Bottom | AnchorStyles.Left I believe IronPython supports this (see EnumOps.cs). Is that syntax planned ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Wed Mar 25 13:27:59 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 25 Mar 2009 10:27:59 -0700 Subject: [Ironruby-core] Cannot load any gems In-Reply-To: References: Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3F43B@NA-EXMSG-C104.redmond.corp.microsoft.com> It worked for me with the latest sources. "gem i sinatra" installed version sinatra-0.9.1.1. The issue was probably fixed independently. Thanks for reporting anyway. c:\github\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>rbd IronRuby 0.3.0.0 on .NET 2.0.50727.3053 Copyright (c) Microsoft Corporation. All rights reserved. >>> require "rubygems" => true >>> require "sinatra" => true >>> If you want to build the latest version yourself and try again, http://wiki.github.com/ironruby/ironruby has the info you need. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jens Sauer Sent: Tuesday, March 24, 2009 2:54 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Cannot load any gems Hello, I installed IronRuby 0.3.0 from github and ruby 1.8.6 on my windows xp machine. Further I installed the gem sinatra using ruby and edited the ir.exe.config so that the ruby libraries get loaded. When I start ir and type require 'rubygems' everything works fine. When I type require 'sinatra# I get the following error: (eval):3:in `load_specification': private method `specification_version=' called for # (NoMethodError) from specification.rb:406:in `initialize' from (eval):0 from :0:in `eval' from source_index.rb:89:in `load_specification' from source_index.rb:127:in `load_gems_in' from :0:in `each' from source_index.rb:124:in `load_gems_in' from source_index.rb:80:in `from_gems_in' from source_index.rb:51:in `from_installed_gems' from rubygems.rb:125:in `source_index' from custom_require.rb:104:in `init_gemspecs' from custom_require.rb:51:in `initialize' from rubygems.rb:211:in `searcher' from :0:in `synchronize' from rubygems.rb:210:in `searcher' from custom_require.rb:26:in `require' from :0 Thx a lot. Jens -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From ivan at flanders.co.nz Wed Mar 25 13:32:08 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 25 Mar 2009 18:32:08 +0100 Subject: [Ironruby-core] A bit late but ... Message-ID: I've uploaded 2 archives that contain the same version as the MS .NET IronRuby 0.3 release as a download on the mono-binaries page. Can I upload those somewhere else too so that they are closer to the official website ? http://github.com/casualjim/ironruby-mono-builds/downloads -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Mar 25 14:16:05 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 25 Mar 2009 18:16:05 +0000 Subject: [Ironruby-core] A bit late but ... In-Reply-To: References: Message-ID: I added a "tested on Mono" link to this on ironruby.net/Downloads However, the fact that we can't accept the minuscule changes required to have IronRuby work on Mono at well still urks me. We need a way of saying a code contribution is really a bug report, and we should be able to apply the patch verbatum or slightly modified. This requires lawyer-approval, so I appreciate your patience while we try to figure this out. ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Ivan Porto Carrero [ivan at flanders.co.nz] Sent: Wednesday, March 25, 2009 10:32 AM To: ironruby-core Subject: [Ironruby-core] A bit late but ... I've uploaded 2 archives that contain the same version as the MS .NET IronRuby 0.3 release as a download on the mono-binaries page. Can I upload those somewhere else too so that they are closer to the official website ? http://github.com/casualjim/ironruby-mono-builds/downloads -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Mar 25 17:11:18 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 25 Mar 2009 21:11:18 +0000 Subject: [Ironruby-core] Code Review: gitpull1 Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD09839520@TK5EX14MBXC101.redmond.corp.microsoft.com> FYI CR: tfpt review "/shelveset:gitpull1;REDMOND\jdeville" Comment : Pull of Shri's last 3 commits. Fixes ir.cmd problem in default.mspec (better fix to come from Shri later) Applies JB Evains suggestion for fixing context.rb -------------- next part -------------- A non-text attachment was scrubbed... Name: gitpull1.diff Type: application/octet-stream Size: 66676 bytes Desc: gitpull1.diff URL: From Tomas.Matousek at microsoft.com Wed Mar 25 23:50:01 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 25 Mar 2009 20:50:01 -0700 Subject: [Ironruby-core] Code Review: RuntimeBoundRules Message-ID: tfpt review "/shelveset:RuntimeBoundRules;REDMOND\tomat" Comment : Implements atomizer for Ruby call site binders: A new class RubyMetaBinderFactory creates sites and caches them in dictionaries. Sites are either bound to a runtime (RubyContext) or not. Bound sites don't emit context check, unbound need to. Bound sites don't take RubyContext as the first parameter any more. They can still take RubyScope if needed (such sites have HasScope flag set). Replaces SiteLocalStorage with RubyCallSiteStorage that holds on the context so that it is not necessary to pass RubyContext to the sites stored in the storage. Updates all sites in libraries accordingly. Adds -ER command line option that enables tracing of meta-objects (rules) created by Ruby. Refactors MetaObjectBuilder to use type restrictions rather than expression restrictions. Removes RubyClassAttribute.MixinInterfaces - it didn't work correctly and was almost unused. Also improves handling of BOM in 1.8 mode - we previously did exactly what Ruby does, i.e. report a syntax error from which it is not obvious what's wrong. If -KU is not specified and UTF8 BOM is found at the beginning of the source code, the tokenizer reports a level 2 warning, skips the BOM as if it was whitespace and continues reading the file. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: RuntimeBoundRules.diff Type: application/octet-stream Size: 797016 bytes Desc: RuntimeBoundRules.diff URL: From jb at nurv.fr Thu Mar 26 10:08:53 2009 From: jb at nurv.fr (Jb Evain) Date: Thu, 26 Mar 2009 15:08:53 +0100 Subject: [Ironruby-core] Silverlight Debug out of the box. Message-ID: <69f7d8470903260708w60c51699ma6e1eb3d79452956@mail.gmail.com> Hey, Trying to build the ?Silverlight Debug? target fails on a fresh checkout. Apparently it's still trying to use the desktop mscorlib. Anything I missed? -- Jb Evain From lists at ruby-forum.com Thu Mar 26 11:57:06 2009 From: lists at ruby-forum.com (Michael Delaney) Date: Thu, 26 Mar 2009 16:57:06 +0100 Subject: [Ironruby-core] require 'spec' not working Message-ID: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Thu Mar 26 12:06:30 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 26 Mar 2009 16:06:30 +0000 Subject: [Ironruby-core] Silverlight Debug out of the box. In-Reply-To: <69f7d8470903260708w60c51699ma6e1eb3d79452956@mail.gmail.com> References: <69f7d8470903260708w60c51699ma6e1eb3d79452956@mail.gmail.com> Message-ID: It looks for silverlight in C:\Program files\Microsoft Silverlight \2.0.xxxxx.x\, which can change depending on the version of SL you have installed. It does this so you can build for SL without having the SLTools installed. I suspect we have the version of SL wrong in those project files. ~Jimmy Sent from my phone On Mar 26, 2009, at 7:31 AM, "Jb Evain" wrote: > Hey, > > Trying to build the ?Silverlight Debug? target fails on a fresh > checkout. Apparently it's still trying to use the desktop mscorlib. > > Anything I missed? > > -- > Jb Evain > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From curth at microsoft.com Thu Mar 26 12:07:46 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 26 Mar 2009 09:07:46 -0700 Subject: [Ironruby-core] Code Review: RuntimeBoundRules In-Reply-To: References: Message-ID: Looks good! I like the use of Key.Create to allow construction of a templated class without providing the template types :). But why is Key<,> a reference type instead of a value type? And I think the name "Pair" would be better than the name "Key"... "BOM can be used as an identifier in 1.8 -KU mode" -- good grief! -----Original Message----- From: Tomas Matousek Sent: Wednesday, March 25, 2009 8:50 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: RuntimeBoundRules tfpt review "/shelveset:RuntimeBoundRules;REDMOND\tomat" Comment : Implements atomizer for Ruby call site binders: A new class RubyMetaBinderFactory creates sites and caches them in dictionaries. Sites are either bound to a runtime (RubyContext) or not. Bound sites don't emit context check, unbound need to. Bound sites don't take RubyContext as the first parameter any more. They can still take RubyScope if needed (such sites have HasScope flag set). Replaces SiteLocalStorage with RubyCallSiteStorage that holds on the context so that it is not necessary to pass RubyContext to the sites stored in the storage. Updates all sites in libraries accordingly. Adds -ER command line option that enables tracing of meta-objects (rules) created by Ruby. Refactors MetaObjectBuilder to use type restrictions rather than expression restrictions. Removes RubyClassAttribute.MixinInterfaces - it didn't work correctly and was almost unused. Also improves handling of BOM in 1.8 mode - we previously did exactly what Ruby does, i.e. report a syntax error from which it is not obvious what's wrong. If -KU is not specified and UTF8 BOM is found at the beginning of the source code, the tokenizer reports a level 2 warning, skips the BOM as if it was whitespace and continues reading the file. Tomas From jb at nurv.fr Thu Mar 26 12:20:05 2009 From: jb at nurv.fr (Jb Evain) Date: Thu, 26 Mar 2009 17:20:05 +0100 Subject: [Ironruby-core] Silverlight Debug out of the box. In-Reply-To: References: <69f7d8470903260708w60c51699ma6e1eb3d79452956@mail.gmail.com> Message-ID: <69f7d8470903260920v1a1ae781j3cf2254d0dbe8ab4@mail.gmail.com> On 3/26/09, Jimmy Schementi wrote: > It looks for silverlight in C:\Program files\Microsoft Silverlight > \2.0.xxxxx.x\, which can change depending on the version of SL you > have installed. It does this so you can build for SL without having > the SLTools installed. I suspect we have the version of SL wrong in > those project files. Right: ..\..\..\..\..\..\Merlin\Main\Utilities\Silverlight\x86ret\ -- Jb Evain From thibaut.barrere at gmail.com Thu Mar 26 12:25:33 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Thu, 26 Mar 2009 17:25:33 +0100 Subject: [Ironruby-core] Flagged enums In-Reply-To: References: <4a68b8cf0903250239h5a39245y5892ba5c9ff3b358@mail.gmail.com> Message-ID: <4a68b8cf0903260925p26627421w88798d47fa319662@mail.gmail.com> > > Yes, we can do that. > > thanks for the answer. I'll try to create some code to handle that manually until then. cheers, -- Thibaut > > > Tomas > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Thibaut Barr?re > *Sent:* Wednesday, March 25, 2009 2:39 AM > *To:* ironruby-core > *Subject:* [Ironruby-core] Flagged enums > > > > Hi, > > > > it seems that the following code isn't supported: > > > > AnchorStyles.Bottom | AnchorStyles.Left > > > > I believe IronPython supports this (see EnumOps.cs). > > > > Is that syntax planned ? > > > > -- Thibaut > > _______________________________________________ > 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 Tomas.Matousek at microsoft.com Thu Mar 26 13:01:10 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 26 Mar 2009 10:01:10 -0700 Subject: [Ironruby-core] Code Review: RuntimeBoundRules In-Reply-To: References: Message-ID: As Dino pointed out if Key was a struct Dictionary would be jitted for each instantiation of Key. I didn't named it "Pair", since we might need triples, quadruples, etc. as well (i.e. Key<,,>, Key<,,,>, etc.) We might use Tuple in future - if it had Equals and GetHashCode implemented. Tomas -----Original Message----- From: Curt Hagenlocher Sent: Thursday, March 26, 2009 9:08 AM To: Tomas Matousek; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: RuntimeBoundRules Looks good! I like the use of Key.Create to allow construction of a templated class without providing the template types :). But why is Key<,> a reference type instead of a value type? And I think the name "Pair" would be better than the name "Key"... "BOM can be used as an identifier in 1.8 -KU mode" -- good grief! -----Original Message----- From: Tomas Matousek Sent: Wednesday, March 25, 2009 8:50 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: RuntimeBoundRules tfpt review "/shelveset:RuntimeBoundRules;REDMOND\tomat" Comment : Implements atomizer for Ruby call site binders: A new class RubyMetaBinderFactory creates sites and caches them in dictionaries. Sites are either bound to a runtime (RubyContext) or not. Bound sites don't emit context check, unbound need to. Bound sites don't take RubyContext as the first parameter any more. They can still take RubyScope if needed (such sites have HasScope flag set). Replaces SiteLocalStorage with RubyCallSiteStorage that holds on the context so that it is not necessary to pass RubyContext to the sites stored in the storage. Updates all sites in libraries accordingly. Adds -ER command line option that enables tracing of meta-objects (rules) created by Ruby. Refactors MetaObjectBuilder to use type restrictions rather than expression restrictions. Removes RubyClassAttribute.MixinInterfaces - it didn't work correctly and was almost unused. Also improves handling of BOM in 1.8 mode - we previously did exactly what Ruby does, i.e. report a syntax error from which it is not obvious what's wrong. If -KU is not specified and UTF8 BOM is found at the beginning of the source code, the tokenizer reports a level 2 warning, skips the BOM as if it was whitespace and continues reading the file. Tomas From Jimmy.Schementi at microsoft.com Thu Mar 26 13:26:42 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 26 Mar 2009 17:26:42 +0000 Subject: [Ironruby-core] Silverlight Debug out of the box. In-Reply-To: <69f7d8470903260920v1a1ae781j3cf2254d0dbe8ab4@mail.gmail.com> References: <69f7d8470903260708w60c51699ma6e1eb3d79452956@mail.gmail.com> , <69f7d8470903260920v1a1ae781j3cf2254d0dbe8ab4@mail.gmail.com> Message-ID: Ah yes, a change hasn't gone through TFS yet which builds out of that location if it exists, otherwise goes out of program files. Easiest thing you can do for now is create that directory, and copy the Silverlight binaries from program files into there. Then it should build. ~js ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Jb Evain [jb at nurv.fr] Sent: Thursday, March 26, 2009 9:20 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Silverlight Debug out of the box. On 3/26/09, Jimmy Schementi wrote: > It looks for silverlight in C:\Program files\Microsoft Silverlight > \2.0.xxxxx.x\, which can change depending on the version of SL you > have installed. It does this so you can build for SL without having > the SLTools installed. I suspect we have the version of SL wrong in > those project files. Right: ..\..\..\..\..\..\Merlin\Main\Utilities\Silverlight\x86ret\ -- Jb Evain _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Shri.Borde at microsoft.com Thu Mar 26 15:17:53 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 12:17:53 -0700 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From jdeville at microsoft.com Thu Mar 26 15:41:46 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Mar 2009 19:41:46 +0000 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0983E607@TK5EX14MBXC101.redmond.corp.microsoft.com> Spec.rb is the main RSpec require. JD > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Shri Borde > Sent: Thursday, March 26, 2009 12:18 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] require 'spec' not working > > Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do > you expect spec.rb to be loaded from? I don't have spec.rb on my > machine. > > Thanks, > Shri > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Michael Delaney > Sent: Thursday, March 26, 2009 8:57 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] require 'spec' not working > > hi, > i've downloaded the latest ironruby 0.3 and built it locally. > its in my path > > GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems > PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug > > File: product_spec.rb > > require 'rubygems' > require 'spec' > require File.dirname(__FILE__) + > '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' > > describe IronRubyInterop::Product do > > it "should have a name" do end > it "should have a category" > it "should have product lines" > > end > > running ir product_spec.rb > > i get: > > D:\IronRuby\RSpec>ir product_spec.rb > :0:in `require': no such file to load -- spec (LoadError) > from custom_require.rb:26:in `require' > from product_spec.rb:0 > > > Is there anything I'm missing??? > > Regards. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 From ivan at flanders.co.nz Thu Mar 26 15:59:02 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 26 Mar 2009 20:59:02 +0100 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde wrote: > Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you > expect spec.rb to be loaded from? I don't have spec.rb on my machine. > > Thanks, > Shri > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney > Sent: Thursday, March 26, 2009 8:57 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] require 'spec' not working > > hi, > i've downloaded the latest ironruby 0.3 and built it locally. > its in my path > > GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems > PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug > > File: product_spec.rb > > require 'rubygems' > require 'spec' > require File.dirname(__FILE__) + > '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' > > describe IronRubyInterop::Product do > > it "should have a name" do end > it "should have a category" > it "should have product lines" > > end > > running ir product_spec.rb > > i get: > > D:\IronRuby\RSpec>ir product_spec.rb > :0:in `require': no such file to load -- spec (LoadError) > from custom_require.rb:26:in `require' > from product_spec.rb:0 > > > Is there anything I'm missing??? > > Regards. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 Shri.Borde at microsoft.com Thu Mar 26 16:03:21 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 13:03:21 -0700 Subject: [Ironruby-core] CR: IronRuby tests for IDMOP, and ir_wrap.cmd Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FBB9@NA-EXMSG-C104.redmond.corp.microsoft.com> tfpt review "/shelveset:iridmop;REDMOND\sborde" Comment : Adding unit tests for Ruby's IDynamicMetaObjectProvider support. Failing scenarios are tagged with AreEqualBug and AssertExceptionThrownBug Added Languages\Ruby\Scripts\ir_wrap.cmd as the replacement for Test\Scripts\ir.cmd which does not exist in GIT. Most of the files are changed because of this. -------------- next part -------------- A non-text attachment was scrubbed... Name: iridmop.diff Type: application/octet-stream Size: 36767 bytes Desc: iridmop.diff URL: From Shri.Borde at microsoft.com Thu Mar 26 16:36:57 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 13:36:57 -0700 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 ivan at flanders.co.nz Thu Mar 26 16:41:41 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 26 Mar 2009 21:41:41 +0100 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: *igem env* gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new > paths for every new library you want to use, which would not be a good > thing. Using GEM_PATH is the right solution as you would be using the power > of rubygems to find the gems. > > > > You should run ?igem query --local --name-matches spec? to make sure that > RubyGems will indeed be able to find the gem. I wish there was a verbose > mode where gem could tell you the paths it looked in, but I don?t see > anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone > know of a verbose option? > > > > Thanks, > > Shri > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, March 26, 2009 12:59 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] require 'spec' not working > > > > Hi > > Did you edit your ir.exe.config to point to the right gems dir? > > I don't think you still need to set the GEM_PATH do you? > > It works for me and all I do is edit the ir.exe.config to point to the > right directories. I am on the git layout so my paths won't make sense for > you. > > When I did that I could do > > >> igem list > > *** LOCAL GEMS *** > > >> igem install rspec > ************************************************ > > Thank you for installing rspec-1.2.2 > > Please be sure to read History.rdoc and Upgrade.rdoc > for useful information about this release. > > ************************************************* > Successfully installed rspec-1.2.2 > 1 gem installed > Installing ri documentation for rspec-1.2.2... > Installing RDoc documentation for rspec-1.2.2... > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > > >> ir > IronRuby 0.3.0.0 on .NET 2.0.50727.3074 > > >>> require 'rubygems' > => true > >>> require 'spec' > => true > >>> true.should == true > => true > >>> exit > > > On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: > > Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you > expect spec.rb to be loaded from? I don't have spec.rb on my machine. > > Thanks, > Shri > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney > Sent: Thursday, March 26, 2009 8:57 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] require 'spec' not working > > hi, > i've downloaded the latest ironruby 0.3 and built it locally. > its in my path > > GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems > PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug > > File: product_spec.rb > > require 'rubygems' > require 'spec' > require File.dirname(__FILE__) + > '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' > > describe IronRubyInterop::Product do > > it "should have a name" do end > it "should have a category" > it "should have product lines" > > end > > running ir product_spec.rb > > i get: > > D:\IronRuby\RSpec>ir product_spec.rb > :0:in `require': no such file to load -- spec (LoadError) > from custom_require.rb:26:in `require' > from product_spec.rb:0 > > > Is there anything I'm missing??? > > Regards. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 > > > > _______________________________________________ > 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 Shri.Borde at microsoft.com Thu Mar 26 16:47:40 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 13:47:40 -0700 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FC14@NA-EXMSG-C104.redmond.corp.microsoft.com> Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having different GEM_PATHs for MRI and for IronRuby. @echo off setlocal if defined IRONRUBY_GEM_PATH ( set GEM_PATH=%IRONRUBY_GEM_PATH% ) @"ir.exe" "%~dpn0" %* Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 Jimmy.Schementi at microsoft.com Thu Mar 26 16:52:22 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Thu, 26 Mar 2009 20:52:22 +0000 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Doesn't gem do that already? It'll look in a directory based on the implementation name, which is why you see gems/ruby and gems/ironruby ...? ~Jimmy Sent from my phone On Mar 26, 2009, at 1:43 PM, "Ivan Porto Carrero" > wrote: igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde <Shri.Borde at microsoft.com> You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde <Shri.Borde at microsoft.com> wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 jdeville at microsoft.com Thu Mar 26 16:53:55 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Mar 2009 20:53:55 +0000 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0983EEE0@TK5EX14MBXC101.redmond.corp.microsoft.com> Should we have a IGEM_PATH that defaults to GEM_PATH to allow for this usage? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 Shri.Borde at microsoft.com Thu Mar 26 17:05:32 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 14:05:32 -0700 Subject: [Ironruby-core] require 'spec' not working References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FC47@NA-EXMSG-C104.redmond.corp.microsoft.com> I realized that this would only work for the igem.bat command and not while running a program which does ?require rubygems?. We can figure out some way to get ir.exe to pick this up as well, like adding code to %HOME%\.irconfig.rb. Tomas, do we still support .irconfig.rb? I couldn?t find anything while grepping the sources. Thanks, Shri From: Shri Borde Sent: Thursday, March 26, 2009 1:48 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having different GEM_PATHs for MRI and for IronRuby. @echo off setlocal if defined IRONRUBY_GEM_PATH ( set GEM_PATH=%IRONRUBY_GEM_PATH% ) @"ir.exe" "%~dpn0" %* Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 jdeville at microsoft.com Thu Mar 26 17:14:45 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Mar 2009 21:14:45 +0000 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FC14@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC14@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0983F0D4@TK5EX14MBXC101.redmond.corp.microsoft.com> That won?t work, because you don?t always use igem to use Rubygems. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Thursday, March 26, 2009 1:48 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having different GEM_PATHs for MRI and for IronRuby. @echo off setlocal if defined IRONRUBY_GEM_PATH ( set GEM_PATH=%IRONRUBY_GEM_PATH% ) @"ir.exe" "%~dpn0" %* Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 Tomas.Matousek at microsoft.com Thu Mar 26 17:22:52 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Thu, 26 Mar 2009 14:22:52 -0700 Subject: [Ironruby-core] CR: IronRuby tests for IDMOP, and ir_wrap.cmd In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FBB9@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E15A3FBB9@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: DLR interop tests look good. Tomas -----Original Message----- From: Shri Borde Sent: Thursday, March 26, 2009 1:03 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: CR: IronRuby tests for IDMOP, and ir_wrap.cmd tfpt review "/shelveset:iridmop;REDMOND\sborde" Comment : Adding unit tests for Ruby's IDynamicMetaObjectProvider support. Failing scenarios are tagged with AreEqualBug and AssertExceptionThrownBug Added Languages\Ruby\Scripts\ir_wrap.cmd as the replacement for Test\Scripts\ir.cmd which does not exist in GIT. Most of the files are changed because of this. From ivan at flanders.co.nz Thu Mar 26 17:47:14 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 26 Mar 2009 22:47:14 +0100 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD0983EEE0@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> <0AB34E2BFBE88245B073D2D83B4245FD0983EEE0@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: For MRI I also don't have to set a GEM_PATH variable. I would prefer to keep it that way for ironruby too. Isn't the default lib and it's children added to the ir.exe.config ? I just saw that the ironruby gems install in an ironruby folder so they are already separated. 2009/3/26 Jim Deville > Should we have a IGEM_PATH that defaults to GEM_PATH to allow for this > usage? > > > > JD > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, March 26, 2009 1:42 PM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] require 'spec' not working > > > > *igem env* gives you all the paths rubygems look in > > I actually want a separate list of gems for IronRuby and my Ruby install > hence I added a different subdir as my gem path for ironruby. > > 2009/3/26 Shri Borde > > You should not be editing ir.exe.config as you would end up adding new > paths for every new library you want to use, which would not be a good > thing. Using GEM_PATH is the right solution as you would be using the power > of rubygems to find the gems. > > > > You should run ?igem query --local --name-matches spec? to make sure that > RubyGems will indeed be able to find the gem. I wish there was a verbose > mode where gem could tell you the paths it looked in, but I don?t see > anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone > know of a verbose option? > > > > Thanks, > > Shri > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, March 26, 2009 12:59 PM > > > *To:* ironruby-core at rubyforge.org > > *Subject:* Re: [Ironruby-core] require 'spec' not working > > > > Hi > > Did you edit your ir.exe.config to point to the right gems dir? > > I don't think you still need to set the GEM_PATH do you? > > It works for me and all I do is edit the ir.exe.config to point to the > right directories. I am on the git layout so my paths won't make sense for > you. > > When I did that I could do > > >> igem list > > *** LOCAL GEMS *** > > >> igem install rspec > ************************************************ > > Thank you for installing rspec-1.2.2 > > Please be sure to read History.rdoc and Upgrade.rdoc > for useful information about this release. > > ************************************************* > Successfully installed rspec-1.2.2 > 1 gem installed > Installing ri documentation for rspec-1.2.2... > Installing RDoc documentation for rspec-1.2.2... > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > > >> ir > IronRuby 0.3.0.0 on .NET 2.0.50727.3074 > > >>> require 'rubygems' > => true > >>> require 'spec' > => true > >>> true.should == true > => true > >>> exit > > On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: > > Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you > expect spec.rb to be loaded from? I don't have spec.rb on my machine. > > Thanks, > Shri > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney > Sent: Thursday, March 26, 2009 8:57 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] require 'spec' not working > > hi, > i've downloaded the latest ironruby 0.3 and built it locally. > its in my path > > GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems > PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug > > File: product_spec.rb > > require 'rubygems' > require 'spec' > require File.dirname(__FILE__) + > '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' > > describe IronRubyInterop::Product do > > it "should have a name" do end > it "should have a category" > it "should have product lines" > > end > > running ir product_spec.rb > > i get: > > D:\IronRuby\RSpec>ir product_spec.rb > :0:in `require': no such file to load -- spec (LoadError) > from custom_require.rb:26:in `require' > from product_spec.rb:0 > > > Is there anything I'm missing??? > > Regards. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 > > > > > _______________________________________________ > 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 jdeville at microsoft.com Thu Mar 26 17:42:42 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Mar 2009 21:42:42 +0000 Subject: [Ironruby-core] CR: IronRuby tests for IDMOP, and ir_wrap.cmd In-Reply-To: References: <710DF26F214D2B4BB94287123FFE980A2E15A3FBB9@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0983F3AD@TK5EX14MBXC101.redmond.corp.microsoft.com> + [DebuggerHiddenAttribute] + internal void AreEqualBug(object x, object y, object buggyResult) { + AreEqual(x, buggyResult); + } + + [DebuggerHiddenAttribute] + internal void AreEqualBug(Action f, object y) where T : Exception { + AssertExceptionThrown(f); + } + + [DebuggerHiddenAttribute] + internal void AssertExceptionThrownBug(Action f) where T : Exception { + f(); + } At the risk of asking a dumb question: Is it expected that y doesn't get used in these? I'm guessing yes, but I want to a) make sure, b) suggest a comment so that future users don't think something is missing. Also, the Exception doesn't get checked in AssertExceptionThrownBug. Am I missing something? In ir_wrap.cmd, we shouldn't unconditionally set HOME. We may overwrite a custom setting, and we can probably expect that this script will be called from a Dev.bat cmd prompt, so HOME should already be set. Other than that, looks good. JD > -----Original Message----- > From: Tomas Matousek > Sent: Thursday, March 26, 2009 2:23 PM > To: Shri Borde; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > DLR interop tests look good. > > Tomas > > -----Original Message----- > From: Shri Borde > Sent: Thursday, March 26, 2009 1:03 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > tfpt review "/shelveset:iridmop;REDMOND\sborde" > > Comment : > Adding unit tests for Ruby's IDynamicMetaObjectProvider support. > Failing scenarios are tagged with AreEqualBug and > AssertExceptionThrownBug > Added Languages\Ruby\Scripts\ir_wrap.cmd as the replacement for > Test\Scripts\ir.cmd which does not exist in GIT. Most of the files are > changed because of this. > From Shri.Borde at microsoft.com Thu Mar 26 17:52:10 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 14:52:10 -0700 Subject: [Ironruby-core] require 'spec' not working References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FCF1@NA-EXMSG-C104.redmond.corp.microsoft.com> The solution seems to be using a gemrc file. http://blogs.sun.com/mandy/entry/rubygems_etc_gemrc describes the file, but says that it is only used by the gem command, and not honored by a ?require ?somgem??. However, http://rubyforge.org/pipermail/rubygems-developers/2008-September/004056.html says that this was a bug and has been fixed. From: Shri Borde Sent: Thursday, March 26, 2009 2:06 PM To: Shri Borde; 'ironruby-core at rubyforge.org' Subject: RE: [Ironruby-core] require 'spec' not working I realized that this would only work for the igem.bat command and not while running a program which does ?require rubygems?. We can figure out some way to get ir.exe to pick this up as well, like adding code to %HOME%\.irconfig.rb. Tomas, do we still support .irconfig.rb? I couldn?t find anything while grepping the sources. Thanks, Shri From: Shri Borde Sent: Thursday, March 26, 2009 1:48 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having different GEM_PATHs for MRI and for IronRuby. @echo off setlocal if defined IRONRUBY_GEM_PATH ( set GEM_PATH=%IRONRUBY_GEM_PATH% ) @"ir.exe" "%~dpn0" %* Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 orion.edwards at gmail.com Thu Mar 26 17:59:06 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Fri, 27 Mar 2009 10:59:06 +1300 Subject: [Ironruby-core] Force a .NET cast (COM Interop) Message-ID: <7c1b59c00903261459n6b9a6cfax1ca6dd811b22f27a@mail.gmail.com> I have an Interop'ed COM object (System.__ComObject) that I'm trying to use from an IronRuby script. Because the way that you seem to QueryInterface from .NET is to use casting, I therefore need to cast from within IronRuby. Basically: comobject = Activator.create_instance(base_com_type) # returns a base type which is IUnknown + not much else comobject.do_stuff # throws NoMethodError. In C#, I'd then do ((ICanDoStuff)comObject).do_stuff; which calls QueryInterface, so the do_stuff method will now actually exist. Is there any way I can do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Thu Mar 26 17:59:32 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 14:59:32 -0700 Subject: [Ironruby-core] CR: IronRuby tests for IDMOP, and ir_wrap.cmd In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD0983F3AD@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E15A3FBB9@NA-EXMSG-C104.redmond.corp.microsoft.com> <0AB34E2BFBE88245B073D2D83B4245FD0983F3AD@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FD08@NA-EXMSG-C104.redmond.corp.microsoft.com> I will add comments. The code should be as shown. The reason y exists for now is to document the expected result. However, because the IDMOP support isn't baked, IronRuby produces "buggyResult" today. Say 1+2 give 300 today. In that case, I have added "AreEqual(1+2, 3, 300) to document what the result should be once the bug is fixed, and what the result is today. I did wonder about HOME being set. However, I just copied the old ir.cmd. I don't want to change this for now to reduce the chance of breaking something inadvertently. Once the change is in, I can look into cleaning it up as a separate change. Thanks, Shri -----Original Message----- From: Jim Deville Sent: Thursday, March 26, 2009 2:43 PM To: Tomas Matousek; Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: CR: IronRuby tests for IDMOP, and ir_wrap.cmd + [DebuggerHiddenAttribute] + internal void AreEqualBug(object x, object y, object buggyResult) { + AreEqual(x, buggyResult); + } + + [DebuggerHiddenAttribute] + internal void AreEqualBug(Action f, object y) where T : Exception { + AssertExceptionThrown(f); + } + + [DebuggerHiddenAttribute] + internal void AssertExceptionThrownBug(Action f) where T : Exception { + f(); + } At the risk of asking a dumb question: Is it expected that y doesn't get used in these? I'm guessing yes, but I want to a) make sure, b) suggest a comment so that future users don't think something is missing. Also, the Exception doesn't get checked in AssertExceptionThrownBug. Am I missing something? In ir_wrap.cmd, we shouldn't unconditionally set HOME. We may overwrite a custom setting, and we can probably expect that this script will be called from a Dev.bat cmd prompt, so HOME should already be set. Other than that, looks good. JD > -----Original Message----- > From: Tomas Matousek > Sent: Thursday, March 26, 2009 2:23 PM > To: Shri Borde; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > DLR interop tests look good. > > Tomas > > -----Original Message----- > From: Shri Borde > Sent: Thursday, March 26, 2009 1:03 PM > To: IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > tfpt review "/shelveset:iridmop;REDMOND\sborde" > > Comment : > Adding unit tests for Ruby's IDynamicMetaObjectProvider support. > Failing scenarios are tagged with AreEqualBug and > AssertExceptionThrownBug > Added Languages\Ruby\Scripts\ir_wrap.cmd as the replacement for > Test\Scripts\ir.cmd which does not exist in GIT. Most of the files are > changed because of this. > From jdeville at microsoft.com Thu Mar 26 17:55:57 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Mar 2009 21:55:57 +0000 Subject: [Ironruby-core] require 'spec' not working References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0983F56F@TK5EX14MBXC101.redmond.corp.microsoft.com> Gemrc gets used by both gem and igem, so that might still not work. Jimmy?s solution might be the best so far (leaving it with the separate directories). JD From: Shri Borde Sent: Thursday, March 26, 2009 2:52 PM To: Shri Borde; ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working The solution seems to be using a gemrc file. http://blogs.sun.com/mandy/entry/rubygems_etc_gemrc describes the file, but says that it is only used by the gem command, and not honored by a ?require ?somgem??. However, http://rubyforge.org/pipermail/rubygems-developers/2008-September/004056.html says that this was a bug and has been fixed. From: Shri Borde Sent: Thursday, March 26, 2009 2:06 PM To: Shri Borde; 'ironruby-core at rubyforge.org' Subject: RE: [Ironruby-core] require 'spec' not working I realized that this would only work for the igem.bat command and not while running a program which does ?require rubygems?. We can figure out some way to get ir.exe to pick this up as well, like adding code to %HOME%\.irconfig.rb. Tomas, do we still support .irconfig.rb? I couldn?t find anything while grepping the sources. Thanks, Shri From: Shri Borde Sent: Thursday, March 26, 2009 1:48 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having different GEM_PATHs for MRI and for IronRuby. @echo off setlocal if defined IRONRUBY_GEM_PATH ( set GEM_PATH=%IRONRUBY_GEM_PATH% ) @"ir.exe" "%~dpn0" %* Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 jdeville at microsoft.com Thu Mar 26 18:01:19 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 26 Mar 2009 22:01:19 +0000 Subject: [Ironruby-core] CR: IronRuby tests for IDMOP, and ir_wrap.cmd In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FD08@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E15A3FBB9@NA-EXMSG-C104.redmond.corp.microsoft.com> <0AB34E2BFBE88245B073D2D83B4245FD0983F3AD@TK5EX14MBXC101.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FD08@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0983F634@TK5EX14MBXC101.redmond.corp.microsoft.com> Sounds good. JD > -----Original Message----- > From: Shri Borde > Sent: Thursday, March 26, 2009 3:00 PM > To: Jim Deville; Tomas Matousek; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > I will add comments. The code should be as shown. The reason y exists > for now is to document the expected result. However, because the IDMOP > support isn't baked, IronRuby produces "buggyResult" today. Say 1+2 > give 300 today. In that case, I have added "AreEqual(1+2, 3, 300) to > document what the result should be once the bug is fixed, and what the > result is today. > > I did wonder about HOME being set. However, I just copied the old > ir.cmd. I don't want to change this for now to reduce the chance of > breaking something inadvertently. Once the change is in, I can look > into cleaning it up as a separate change. > > Thanks, > Shri > > > -----Original Message----- > From: Jim Deville > Sent: Thursday, March 26, 2009 2:43 PM > To: Tomas Matousek; Shri Borde; IronRuby External Code Reviewers > Cc: ironruby-core at rubyforge.org > Subject: RE: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > + [DebuggerHiddenAttribute] > + internal void AreEqualBug(object x, object y, object > buggyResult) { > + AreEqual(x, buggyResult); > + } > + > + [DebuggerHiddenAttribute] > + internal void AreEqualBug(Action f, object y) where T : > Exception { > + AssertExceptionThrown(f); > + } > + > + [DebuggerHiddenAttribute] > + internal void AssertExceptionThrownBug(Action f) where T : > Exception { > + f(); > + } > At the risk of asking a dumb question: Is it expected that y doesn't > get used in these? I'm guessing yes, but I want to a) make sure, b) > suggest a comment so that future users don't think something is > missing. Also, the Exception doesn't get checked in > AssertExceptionThrownBug. Am I missing something? > > In ir_wrap.cmd, we shouldn't unconditionally set HOME. We may overwrite > a custom setting, and we can probably expect that this script will be > called from a Dev.bat cmd prompt, so HOME should already be set. > > Other than that, looks good. > > JD > > > -----Original Message----- > > From: Tomas Matousek > > Sent: Thursday, March 26, 2009 2:23 PM > > To: Shri Borde; IronRuby External Code Reviewers > > Cc: ironruby-core at rubyforge.org > > Subject: RE: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > > > DLR interop tests look good. > > > > Tomas > > > > -----Original Message----- > > From: Shri Borde > > Sent: Thursday, March 26, 2009 1:03 PM > > To: IronRuby External Code Reviewers > > Cc: ironruby-core at rubyforge.org > > Subject: CR: IronRuby tests for IDMOP, and ir_wrap.cmd > > > > tfpt review "/shelveset:iridmop;REDMOND\sborde" > > > > Comment : > > Adding unit tests for Ruby's IDynamicMetaObjectProvider support. > > Failing scenarios are tagged with AreEqualBug and > > AssertExceptionThrownBug > > Added Languages\Ruby\Scripts\ir_wrap.cmd as the replacement for > > Test\Scripts\ir.cmd which does not exist in GIT. Most of the files > are > > changed because of this. > > From Shri.Borde at microsoft.com Thu Mar 26 18:14:04 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 15:14:04 -0700 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD0983F56F@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> <0AB34E2BFBE88245B073D2D83B4245FD0983F56F@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FD57@NA-EXMSG-C104.redmond.corp.microsoft.com> Ah yes, gemrc is declarative, not Ruby code which could do things differently depending on the ruby implementation. I got distracted about it not working with ?require ?some_gem??, and forgot about this fact. Leaving it with separate directories does not allow IronRuby to use gems installed by Ruby, which would be nice. Ivan?s scenario is where he wants IronRuby to use a gem installed by MRI, but not vice versa. It does beg the question why you would want to do such a thing? Ivan, can you explain your motivation? Today people can either keep their gems completely separate (the default behavior if GEM_PATH is not set), or can chose to share everything in both directions. This should work reasonably well most of the time. Would be nice to just leave it at that since it?s a simple solution. For scenarios where you want more control, the user can do something specific to the solution. For example, http://www.mail-archive.com/rubygems-developers at rubyforge.org/msg02295.html describes how you could copy lib\rubygems\default.rb. Thanks, Shri From: Jim Deville Sent: Thursday, March 26, 2009 2:56 PM To: Shri Borde; ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working Gemrc gets used by both gem and igem, so that might still not work. Jimmy?s solution might be the best so far (leaving it with the separate directories). JD From: Shri Borde Sent: Thursday, March 26, 2009 2:52 PM To: Shri Borde; ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working The solution seems to be using a gemrc file. http://blogs.sun.com/mandy/entry/rubygems_etc_gemrc describes the file, but says that it is only used by the gem command, and not honored by a ?require ?somgem??. However, http://rubyforge.org/pipermail/rubygems-developers/2008-September/004056.html says that this was a bug and has been fixed. From: Shri Borde Sent: Thursday, March 26, 2009 2:06 PM To: Shri Borde; 'ironruby-core at rubyforge.org' Subject: RE: [Ironruby-core] require 'spec' not working I realized that this would only work for the igem.bat command and not while running a program which does ?require rubygems?. We can figure out some way to get ir.exe to pick this up as well, like adding code to %HOME%\.irconfig.rb. Tomas, do we still support .irconfig.rb? I couldn?t find anything while grepping the sources. Thanks, Shri From: Shri Borde Sent: Thursday, March 26, 2009 1:48 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having different GEM_PATHs for MRI and for IronRuby. @echo off setlocal if defined IRONRUBY_GEM_PATH ( set GEM_PATH=%IRONRUBY_GEM_PATH% ) @"ir.exe" "%~dpn0" %* Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 orion.edwards at gmail.com Thu Mar 26 18:22:26 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Fri, 27 Mar 2009 11:22:26 +1300 Subject: [Ironruby-core] Casting Objects (COM Interop) addendum Message-ID: <7c1b59c00903261522m5ff9da4dweb53cfb42259759b@mail.gmail.com> As a follow up to my last message, I wrote a small util method, as follows: public static class Util { public static T Cast(object o) { return (T)o; } } And then try to call it from ruby: x = Util.method(:cast).of(ICanDoStuff).call(mycomobject) However, the Util.method(:cast).of(ICanDoStuff) fails with this error: c:\NB\DLR\18015\Languages\Ruby\Src\IronRuby.Libraries\Protocols.cs:405:in `ToType': invalid value for Class: ProxyLi b::ICanDoStuff (ArgumentError) from c:\NB\DLR\18015\Languages\Ruby\Src\IronRuby.Libraries\Protocols.cs:386:in `ToTypes' from c:\NB\DLR\18015\Languages\Ruby\Src\IronRuby.Libraries\Builtins\MethodOps.cs:75:in `BindGenericParameters' from :0:in `of' from :0 Util.method(:cast).of(String) works fine however - is this because I'm trying to pass in a .NET interface (which lives in an auto-generated interop dll built by tlbimp) rather than a class? Any help is much appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Thu Mar 26 18:23:20 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 26 Mar 2009 23:23:20 +0100 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FD57@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> <0AB34E2BFBE88245B073D2D83B4245FD0983F56F@TK5EX14MBXC101.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FD57@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Actually I don't want to use gems installed by ruby.. that doesn't make sense to me. I will install duplicates if I need it. I actually want the default behavior :) I was replying to the question of Michael Delaney on how he couldn't get the rspec gem to run :) And because he was setting GEM_PATH I tried to explain that he doesn't need to do that anymore. And then showed how it just works for me without setting a gem_path or anything. It seems that there is confusion on how people need to use gems with ironruby, because of earlier blog posts when you needed to use the gems from ruby. There is also a wiki on github for a gem that explains it to do it that way. Also if I wanted to use a non-standard layout for my dirs it would make sense to me to have to set GEM_PATH or IGEM_PATH. 2009/3/26 Shri Borde > Ah yes, gemrc is declarative, not Ruby code which could do things > differently depending on the ruby implementation. I got distracted about it > not working with ?require ?some_gem??, and forgot about this fact. > > > > Leaving it with separate directories does not allow IronRuby to use gems > installed by Ruby, which would be nice. Ivan?s scenario is where he wants > IronRuby to use a gem installed by MRI, but not vice versa. > > > > It does beg the question why you would want to do such a thing? Ivan, can > you explain your motivation? Today people can either keep their gems > completely separate (the default behavior if GEM_PATH is not set), or can > chose to share everything in both directions. This should work reasonably > well most of the time. Would be nice to just leave it at that since it?s a > simple solution. For scenarios where you want more control, the user can do > something specific to the solution. For example, > http://www.mail-archive.com/rubygems-developers at rubyforge.org/msg02295.htmldescribes how you could copy lib\rubygems\default.rb. > > > > Thanks, > > Shri > > > > *From:* Jim Deville > *Sent:* Thursday, March 26, 2009 2:56 PM > > *To:* Shri Borde; ironruby-core at rubyforge.org > *Subject:* RE: [Ironruby-core] require 'spec' not working > > > > Gemrc gets used by both gem and igem, so that might still not work. Jimmy?s > solution might be the best so far (leaving it with the separate > directories). > > > > JD > > > > *From:* Shri Borde > *Sent:* Thursday, March 26, 2009 2:52 PM > *To:* Shri Borde; ironruby-core at rubyforge.org > *Subject:* RE: [Ironruby-core] require 'spec' not working > > > > The solution seems to be using a gemrc file. > http://blogs.sun.com/mandy/entry/rubygems_etc_gemrc describes the file, > but says that it is only used by the gem command, and not honored by a > ?require ?somgem??. However, > http://rubyforge.org/pipermail/rubygems-developers/2008-September/004056.htmlsays that this was a bug and has been fixed. > > > > *From:* Shri Borde > *Sent:* Thursday, March 26, 2009 2:06 PM > *To:* Shri Borde; 'ironruby-core at rubyforge.org' > *Subject:* RE: [Ironruby-core] require 'spec' not working > > > > I realized that this would only work for the igem.bat command and not while > running a program which does ?require rubygems?. We can figure out some way > to get ir.exe to pick this up as well, like adding code to > %HOME%\.irconfig.rb. Tomas, do we still support .irconfig.rb? I couldn?t > find anything while grepping the sources. > > > > Thanks, > > Shri > > > > *From:* Shri Borde > *Sent:* Thursday, March 26, 2009 1:48 PM > *To:* ironruby-core at rubyforge.org > *Subject:* RE: [Ironruby-core] require 'spec' not working > > > > Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, > and then see if it works as you like? This would allow having different > GEM_PATHs for MRI and for IronRuby. > > > > @echo off > > setlocal > > if defined IRONRUBY_GEM_PATH ( > > set GEM_PATH=%IRONRUBY_GEM_PATH% > > ) > > @"ir.exe" "%~dpn0" %* > > > > Thanks, > > Shri > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, March 26, 2009 1:42 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] require 'spec' not working > > > > *igem env* gives you all the paths rubygems look in > > I actually want a separate list of gems for IronRuby and my Ruby install > hence I added a different subdir as my gem path for ironruby. > > 2009/3/26 Shri Borde > > You should not be editing ir.exe.config as you would end up adding new > paths for every new library you want to use, which would not be a good > thing. Using GEM_PATH is the right solution as you would be using the power > of rubygems to find the gems. > > > > You should run ?igem query --local --name-matches spec? to make sure that > RubyGems will indeed be able to find the gem. I wish there was a verbose > mode where gem could tell you the paths it looked in, but I don?t see > anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone > know of a verbose option? > > > > Thanks, > > Shri > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Thursday, March 26, 2009 12:59 PM > > > *To:* ironruby-core at rubyforge.org > > *Subject:* Re: [Ironruby-core] require 'spec' not working > > > > Hi > > Did you edit your ir.exe.config to point to the right gems dir? > > I don't think you still need to set the GEM_PATH do you? > > It works for me and all I do is edit the ir.exe.config to point to the > right directories. I am on the git layout so my paths won't make sense for > you. > > When I did that I could do > > >> igem list > > *** LOCAL GEMS *** > > >> igem install rspec > ************************************************ > > Thank you for installing rspec-1.2.2 > > Please be sure to read History.rdoc and Upgrade.rdoc > for useful information about this release. > > ************************************************* > Successfully installed rspec-1.2.2 > 1 gem installed > Installing ri documentation for rspec-1.2.2... > Installing RDoc documentation for rspec-1.2.2... > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > Could not find main page README.rdoc > > >> ir > IronRuby 0.3.0.0 on .NET 2.0.50727.3074 > > >>> require 'rubygems' > => true > >>> require 'spec' > => true > >>> true.should == true > => true > >>> exit > > On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: > > Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you > expect spec.rb to be loaded from? I don't have spec.rb on my machine. > > Thanks, > Shri > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney > Sent: Thursday, March 26, 2009 8:57 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] require 'spec' not working > > hi, > i've downloaded the latest ironruby 0.3 and built it locally. > its in my path > > GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems > PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug > > File: product_spec.rb > > require 'rubygems' > require 'spec' > require File.dirname(__FILE__) + > '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' > > describe IronRubyInterop::Product do > > it "should have a name" do end > it "should have a category" > it "should have product lines" > > end > > running ir product_spec.rb > > i get: > > D:\IronRuby\RSpec>ir product_spec.rb > :0:in `require': no such file to load -- spec (LoadError) > from custom_require.rb:26:in `require' > from product_spec.rb:0 > > > Is there anything I'm missing??? > > Regards. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > 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 > > > > > _______________________________________________ > 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 Shri.Borde at microsoft.com Thu Mar 26 18:27:01 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 15:27:01 -0700 Subject: [Ironruby-core] Casting Objects (COM Interop) addendum In-Reply-To: <7c1b59c00903261522m5ff9da4dweb53cfb42259759b@mail.gmail.com> References: <7c1b59c00903261522m5ff9da4dweb53cfb42259759b@mail.gmail.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FD86@NA-EXMSG-C104.redmond.corp.microsoft.com> COM Interop is not supported in IronRuby. COM objects are not easily reflectable. It *can* be supported. See http://blogs.msdn.com/shrib/archive/2008/07/30/idispatch-support-on-in-ironpython-beta-4.aspx for how IronPython does it. However, IronRuby has not done the equivalent work yet. We will get to it at some point, but as noted in http://www.ironruby.net/About/Roadmap, its low priority for now as there are more important scenarios we need to nail first. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Orion Edwards Sent: Thursday, March 26, 2009 3:22 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Casting Objects (COM Interop) addendum As a follow up to my last message, I wrote a small util method, as follows: public static class Util { public static T Cast(object o) { return (T)o; } } And then try to call it from ruby: x = Util.method(:cast).of(ICanDoStuff).call(mycomobject) However, the Util.method(:cast).of(ICanDoStuff) fails with this error: c:\NB\DLR\18015\Languages\Ruby\Src\IronRuby.Libraries\Protocols.cs:405:in `ToType': invalid value for Class: ProxyLi b::ICanDoStuff (ArgumentError) from c:\NB\DLR\18015\Languages\Ruby\Src\IronRuby.Libraries\Protocols.cs:386:in `ToTypes' from c:\NB\DLR\18015\Languages\Ruby\Src\IronRuby.Libraries\Builtins\MethodOps.cs:75:in `BindGenericParameters' from :0:in `of' from :0 Util.method(:cast).of(String) works fine however - is this because I'm trying to pass in a .NET interface (which lives in an auto-generated interop dll built by tlbimp) rather than a class? Any help is much appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From brannon at iterator.net Thu Mar 26 18:33:34 2009 From: brannon at iterator.net (Brannon Jones) Date: Thu, 26 Mar 2009 15:33:34 -0700 Subject: [Ironruby-core] Force a .NET cast (COM Interop) In-Reply-To: <7c1b59c00903261459n6b9a6cfax1ca6dd811b22f27a@mail.gmail.com> References: <7c1b59c00903261459n6b9a6cfax1ca6dd811b22f27a@mail.gmail.com> Message-ID: <1653092d0903261533q5cc4a424vfd59b6ae504f4c2d@mail.gmail.com> Does the COM object implement IDispatch? Does the DLR / IronRuby invoke operations against IDispatch automagically? 2009/3/26 Orion Edwards > I have an Interop'ed COM object (System.__ComObject) that I'm trying to use > from an IronRuby script. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From orion.edwards at gmail.com Thu Mar 26 18:44:09 2009 From: orion.edwards at gmail.com (Orion Edwards) Date: Fri, 27 Mar 2009 11:44:09 +1300 Subject: [Ironruby-core] Force a .NET cast (COM Interop) In-Reply-To: <1653092d0903261533q5cc4a424vfd59b6ae504f4c2d@mail.gmail.com> References: <7c1b59c00903261459n6b9a6cfax1ca6dd811b22f27a@mail.gmail.com> <1653092d0903261533q5cc4a424vfd59b6ae504f4c2d@mail.gmail.com> Message-ID: <7c1b59c00903261544rb6459d0n223c7a7673cb28bd@mail.gmail.com> I'm not using IDispatch here. These are all statically generated proxy classes from some custom C++ COM Interfaces. Hopefully if I can get casting to work, I'll be good to go 2009/3/27 Brannon Jones > Does the COM object implement IDispatch? > > Does the DLR / IronRuby invoke operations against IDispatch automagically? > > 2009/3/26 Orion Edwards > >> I have an Interop'ed COM object (System.__ComObject) that I'm trying to >> use from an IronRuby script. >> > > > _______________________________________________ > 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 Shri.Borde at microsoft.com Thu Mar 26 19:06:12 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 16:06:12 -0700 Subject: [Ironruby-core] Pair debugging Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FDE9@NA-EXMSG-C104.redmond.corp.microsoft.com> I spent a couple of hours this morning debugging RubyGems unit test failures along with Jirapong Nanta. It was a fun exercise. We tracked down two issues and hopefully Jirapong found the experience useful to jump start his exploration of the IronRuby code base. I am open to helping others too. I have put the following notes at the bottom of http://wiki.github.com/ironruby/ironruby/debugging to ensure that we can have a productive session. Jirapong had done his homework, gotten RubyGems to work cleanly with MRI, and done a bit of debugging himself, which is why we had a productive session. Pair debugging with experienced IronRuby developers Some experienced IronRuby developers may be available to debug a problem with you. Watching over their shoulder can help a newcomer to the code base learn debugging tips and techniques. To make this a fruitful exercise, please follow the following guidelines: * Send email to ironruby-core at rubyforge.org asking if any experienced developer is available to help you * Ensure that you can build and successfully run all of the RubySpec tests. * Restrict the problems to pure Ruby code which is known to work with MRI. Ensuring a clean working baseline functionality in MRI ensures that the problem truly in IronRuby. Without a known clean MRI baseline, the problem can be in a component other than IronRuby which you are as well-equipped to diagnose as anyone else. * Set up a clean repro. Spend time ensuring that it is not a configuration issue, and that the problem can be easily reproduced on other machines. Document detailed information about your platform, version of IronRuby, and the steps to repro the problem. * Do basic debugging by yourself beforehand. This will ensure that you get the most out of the session and can keep up with what's going on over Live Meeting. * Set up Live Meeting on your machine, which will allow you to watch the debugging session. * Add the experienced developer as a friend/buddy in some Chat program so that you can ask questions during the debugging session. Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Thu Mar 26 19:34:59 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 16:34:59 -0700 Subject: [Ironruby-core] Review: Marshal bug Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FE0C@NA-EXMSG-C104.redmond.corp.microsoft.com> GitDiff.bat a90a89465f3b9c178507f83e4797481463989059 119b056332b270164eaf2b1f9cd2956387e38636 http://github.com/shri/ironruby/commit/119b056332b270164eaf2b1f9cd2956387e38636 YAML should allow spaces. eg the trailing \s\t in YAML.load("!timestamp '2009-03-22 00:00:00\s\t'") is allowed Changed igem.bat, irake.bat, etc to work in dev environment where ir.exe is not in the path File.expand_path("~") should throw ArgumentError is HOME is not set * Merlin/External/Languages/IronRuby/Yaml/IronRuby.Libraries.Yaml/Engine/BaseConstructor.cs * Merlin/External/Languages/IronRuby/Yaml/IronRuby.Libraries.Yaml/Engine/Scanner.cs * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/file/expand_path_spec.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/marshal/fixtures/marshal_data.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/library/yaml/load_spec.rb * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/FileOps.cs * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/Marshal.cs * Merlin/Main/Languages/Ruby/Scripts/bin/igem.bat * Merlin/Main/Languages/Ruby/Scripts/bin/iirb.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irails.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irake.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irdoc.bat * Merlin/Main/Languages/Ruby/Scripts/bin/iri.bat Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Thu Mar 26 19:43:45 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Thu, 26 Mar 2009 16:43:45 -0700 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> <0AB34E2BFBE88245B073D2D83B4245FD0983F56F@TK5EX14MBXC101.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FD57@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A3FE14@NA-EXMSG-C104.redmond.corp.microsoft.com> I changed http://www.ironruby.net/index.php?title=Documentation/How_do_I_install_additional_gems%3F as such: * Do not share gems with MRI - By default, RubyGems looks in different locations for each Ruby implementation. For IronRuby, it would look in c:\ironruby\lib\ironruby\gems\1.8 assuming ir.exe exists in c:\ironruby\bin. In this case, you will need to install all gems you want to use with IronRuby using igem.bat (c:\ironruby\bin\igem.bat). * Share gems with MRI - Set the GEM_PATH environment variable in your user profile to point to your \lib\ruby\gems\1.8 directory, e.g. c:\ruby\lib\ruby\gems\1.8. This allows sharing of gems with MRI. IronRuby also includes igem.bat which runs gems with IronRuby. This can be used to install IronRuby-specific gems. * Note that the GEM_HOME environment variables controls where new gems will be installed by running igem.bat. Unless you set this to match GEM_PATH, note that gems installed by "igem.bat" may not be usable from IronRuby [need to check if this is true or not]. And if you set GEM_PATH to include the location of IronRuby gems, MRI will be able to find them as well. Either option is valid. Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 3:23 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Actually I don't want to use gems installed by ruby.. that doesn't make sense to me. I will install duplicates if I need it. I actually want the default behavior :) I was replying to the question of Michael Delaney on how he couldn't get the rspec gem to run :) And because he was setting GEM_PATH I tried to explain that he doesn't need to do that anymore. And then showed how it just works for me without setting a gem_path or anything. It seems that there is confusion on how people need to use gems with ironruby, because of earlier blog posts when you needed to use the gems from ruby. There is also a wiki on github for a gem that explains it to do it that way. Also if I wanted to use a non-standard layout for my dirs it would make sense to me to have to set GEM_PATH or IGEM_PATH. 2009/3/26 Shri Borde > Ah yes, gemrc is declarative, not Ruby code which could do things differently depending on the ruby implementation. I got distracted about it not working with ?require ?some_gem??, and forgot about this fact. Leaving it with separate directories does not allow IronRuby to use gems installed by Ruby, which would be nice. Ivan?s scenario is where he wants IronRuby to use a gem installed by MRI, but not vice versa. It does beg the question why you would want to do such a thing? Ivan, can you explain your motivation? Today people can either keep their gems completely separate (the default behavior if GEM_PATH is not set), or can chose to share everything in both directions. This should work reasonably well most of the time. Would be nice to just leave it at that since it?s a simple solution. For scenarios where you want more control, the user can do something specific to the solution. For example, http://www.mail-archive.com/rubygems-developers at rubyforge.org/msg02295.html describes how you could copy lib\rubygems\default.rb. Thanks, Shri From: Jim Deville Sent: Thursday, March 26, 2009 2:56 PM To: Shri Borde; ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working Gemrc gets used by both gem and igem, so that might still not work. Jimmy?s solution might be the best so far (leaving it with the separate directories). JD From: Shri Borde Sent: Thursday, March 26, 2009 2:52 PM To: Shri Borde; ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working The solution seems to be using a gemrc file. http://blogs.sun.com/mandy/entry/rubygems_etc_gemrc describes the file, but says that it is only used by the gem command, and not honored by a ?require ?somgem??. However, http://rubyforge.org/pipermail/rubygems-developers/2008-September/004056.html says that this was a bug and has been fixed. From: Shri Borde Sent: Thursday, March 26, 2009 2:06 PM To: Shri Borde; 'ironruby-core at rubyforge.org' Subject: RE: [Ironruby-core] require 'spec' not working I realized that this would only work for the igem.bat command and not while running a program which does ?require rubygems?. We can figure out some way to get ir.exe to pick this up as well, like adding code to %HOME%\.irconfig.rb. Tomas, do we still support .irconfig.rb? I couldn?t find anything while grepping the sources. Thanks, Shri From: Shri Borde Sent: Thursday, March 26, 2009 1:48 PM To: ironruby-core at rubyforge.org Subject: RE: [Ironruby-core] require 'spec' not working Could you change your igem.bat to the following, and set IRONRUBY_GEM_PATH, and then see if it works as you like? This would allow having different GEM_PATHs for MRI and for IronRuby. @echo off setlocal if defined IRONRUBY_GEM_PATH ( set GEM_PATH=%IRONRUBY_GEM_PATH% ) @"ir.exe" "%~dpn0" %* Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 1:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working igem env gives you all the paths rubygems look in I actually want a separate list of gems for IronRuby and my Ruby install hence I added a different subdir as my gem path for ironruby. 2009/3/26 Shri Borde > You should not be editing ir.exe.config as you would end up adding new paths for every new library you want to use, which would not be a good thing. Using GEM_PATH is the right solution as you would be using the power of rubygems to find the gems. You should run ?igem query --local --name-matches spec? to make sure that RubyGems will indeed be able to find the gem. I wish there was a verbose mode where gem could tell you the paths it looked in, but I don?t see anything at http://docs.rubygems.org/read/chapter/10#page35. Does anyone know of a verbose option? Thanks, Shri From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, March 26, 2009 12:59 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] require 'spec' not working Hi Did you edit your ir.exe.config to point to the right gems dir? I don't think you still need to set the GEM_PATH do you? It works for me and all I do is edit the ir.exe.config to point to the right directories. I am on the git layout so my paths won't make sense for you. When I did that I could do >> igem list *** LOCAL GEMS *** >> igem install rspec ************************************************ Thank you for installing rspec-1.2.2 Please be sure to read History.rdoc and Upgrade.rdoc for useful information about this release. ************************************************* Successfully installed rspec-1.2.2 1 gem installed Installing ri documentation for rspec-1.2.2... Installing RDoc documentation for rspec-1.2.2... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc >> ir IronRuby 0.3.0.0 on .NET 2.0.50727.3074 >>> require 'rubygems' => true >>> require 'spec' => true >>> true.should == true => true >>> exit On Thu, Mar 26, 2009 at 8:17 PM, Shri Borde > wrote: Does it work with MRI (not the IronRubyInteorp part ofcourse)? Where do you expect spec.rb to be loaded from? I don't have spec.rb on my machine. Thanks, Shri -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Thursday, March 26, 2009 8:57 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] require 'spec' not working hi, i've downloaded the latest ironruby 0.3 and built it locally. its in my path GEM_PATH C:\ruby\lib\ruby\gems\1.8\gems PATH c:\ruby\bin;C:\ironruby\Merlin\Main\bin\Debug File: product_spec.rb require 'rubygems' require 'spec' require File.dirname(__FILE__) + '/IronRubyInterop/IronRubyInterop/bin/Debug/IronRubyInterop.dll' describe IronRubyInterop::Product do it "should have a name" do end it "should have a category" it "should have product lines" end running ir product_spec.rb i get: D:\IronRuby\RSpec>ir product_spec.rb :0:in `require': no such file to load -- spec (LoadError) from custom_require.rb:26:in `require' from product_spec.rb:0 Is there anything I'm missing??? Regards. -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 _______________________________________________ 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 Jimmy.Schementi at microsoft.com Fri Mar 27 00:21:13 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 27 Mar 2009 04:21:13 +0000 Subject: [Ironruby-core] Pair debugging In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FDE9@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E15A3FDE9@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Awesome idea! We don't use these newfangled collaboration tools enough, so I'm all for whatever can make collaboration easier =) From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Thursday, March 26, 2009 4:06 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Pair debugging I spent a couple of hours this morning debugging RubyGems unit test failures along with Jirapong Nanta. It was a fun exercise. We tracked down two issues and hopefully Jirapong found the experience useful to jump start his exploration of the IronRuby code base. I am open to helping others too. I have put the following notes at the bottom of http://wiki.github.com/ironruby/ironruby/debugging to ensure that we can have a productive session. Jirapong had done his homework, gotten RubyGems to work cleanly with MRI, and done a bit of debugging himself, which is why we had a productive session. Pair debugging with experienced IronRuby developers Some experienced IronRuby developers may be available to debug a problem with you. Watching over their shoulder can help a newcomer to the code base learn debugging tips and techniques. To make this a fruitful exercise, please follow the following guidelines: * Send email to ironruby-core at rubyforge.org asking if any experienced developer is available to help you * Ensure that you can build and successfully run all of the RubySpec tests. * Restrict the problems to pure Ruby code which is known to work with MRI. Ensuring a clean working baseline functionality in MRI ensures that the problem truly in IronRuby. Without a known clean MRI baseline, the problem can be in a component other than IronRuby which you are as well-equipped to diagnose as anyone else. * Set up a clean repro. Spend time ensuring that it is not a configuration issue, and that the problem can be easily reproduced on other machines. Document detailed information about your platform, version of IronRuby, and the steps to repro the problem. * Do basic debugging by yourself beforehand. This will ensure that you get the most out of the session and can keep up with what's going on over Live Meeting. * Set up Live Meeting on your machine, which will allow you to watch the debugging session. * Add the experienced developer as a friend/buddy in some Chat program so that you can ask questions during the debugging session. Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From jirapong.nanta at gmail.com Fri Mar 27 00:40:47 2009 From: jirapong.nanta at gmail.com (jirapong.nanta at gmail.com) Date: Fri, 27 Mar 2009 11:40:47 +0700 Subject: [Ironruby-core] Pair debugging In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FDE9@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E15A3FDE9@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <2F76C79B-8A78-48C7-897B-4698E7B28DE8@gmail.com> Yes!, It has been very helpful to me. I can see what i need to prepare and looking for when get an error. I found the debugger method is very powerful - http://gist.github.com/61605 >> and would be nice if It can auto load when Ruby.Console is start? encourage everyone to try & contribute Thank you, -Jirapong On Mar 27, 2009, at 6:06 AM, Shri Borde wrote: > I spent a couple of hours this morning debugging RubyGems unit test > failures along with Jirapong Nanta. It was a fun exercise. We > tracked down two issues and hopefully Jirapong found the experience > useful to jump start his exploration of the IronRuby code base. > > I am open to helping others too. I have put the following notes at > the bottom ofhttp://wiki.github.com/ironruby/ironruby/debugging to > ensure that we can have a productive session. Jirapong had done his > homework, gotten RubyGems to work cleanly with MRI, and done a bit > of debugging himself, which is why we had a productive session. > Pair debugging with experienced IronRuby developers > > Some experienced IronRuby developers may be available to debug a > problem with you. Watching over their shoulder can help a newcomer > to the code base learn debugging tips and techniques. To make this a > fruitful exercise, please follow the following guidelines: > > ? Send email to ironruby-core at rubyforge.org asking if any > experienced developer is available to help you > ? Ensure that you can build and successfully run all of the > RubySpec tests. > ? Restrict the problems to pure Ruby code which is known to > work with MRI. Ensuring a clean working baseline functionality in > MRI ensures that the problem truly in IronRuby. Without a known > clean MRI baseline, the problem can be in a component other than > IronRuby which you are as well-equipped to diagnose as anyone else. > ? Set up a clean repro. Spend time ensuring that it is not a > configuration issue, and that the problem can be easily reproduced > on other machines. Document detailed information about your > platform, version of IronRuby, and the steps to repro the problem. > ? Do basic debugging by yourself beforehand. This will > ensure that you get the most out of the session and can keep up with > what?s going on over Live Meeting. > ? Set up Live Meeting on your machine, which will allow you > to watch the debugging session. > ? Add the experienced developer as a friend/buddy in some > Chat program so that you can ask questions during the debugging > session. > Thanks, > Shri > > _______________________________________________ > 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 Fri Mar 27 06:35:12 2009 From: lists at ruby-forum.com (Michael Delaney) Date: Fri, 27 Mar 2009 11:35:12 +0100 Subject: [Ironruby-core] require 'spec' not working In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FE14@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0d1291da0d57088200f2049548ee1449@ruby-forum.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FB59@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FC04@NA-EXMSG-C104.redmond.corp.microsoft.com> <0AB34E2BFBE88245B073D2D83B4245FD0983F56F@TK5EX14MBXC101.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FD57@NA-EXMSG-C104.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15A3FE14@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <587a0c23bd866be8079660c566b00062@ruby-forum.com> thanks guys for all the help, i removed the GEM_PATH env variable, reinstalled rspec using igem install rspec. and it worked. :-) -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Fri Mar 27 09:50:14 2009 From: lists at ruby-forum.com (Michael Delaney) Date: Fri, 27 Mar 2009 14:50:14 +0100 Subject: [Ironruby-core] expand_path & Rspec Message-ID: Hi, I getting the expand path problem when trying to run some rspec examples. Ben Hall mentioned it before. http://www.ruby-forum.com/topic/167568#new I have a spec: ----------------------------------------------------------------------------- require File.dirname(__FILE__) + '/Domain.dll' require 'rubygems' require 'spec' module ProductSpecHelper def valid_attributes { :Name => 'Test' } end end describe Domain::Product, "When saving" do include ProductSpecHelper before(:each) do @product = Domain::Product.new end it "should have a name" do @product.attributes = @valid_attributes @product.name.should_not be_nil end it "should have product lines" end and run: ----------------------------------------------------------------------------- D:\IronRuby\RSpec>ir product_spec.rb c:\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\FileOps .cs:522:in `ExpandPath': Invalid argument - product_spec.rb:0 (Errno::EINVAL) from :0:in `expand_path' from example_group_methods.rb:108:in `set_description' from example_group_methods.rb:171:in `subclass' from example_group_methods.rb:48:in `describe' from example_group_factory.rb:25:in `create_example_group' from main.rb:22:in `describe' from product_spec.rb:0 Is there a work around people are using at the moment? Cheers. -- Posted via http://www.ruby-forum.com/. From Tomas.Matousek at microsoft.com Fri Mar 27 12:22:23 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 27 Mar 2009 09:22:23 -0700 Subject: [Ironruby-core] expand_path & Rspec In-Reply-To: References: Message-ID: Or would anyone like to contribute a better implementation of expand_path? We know the current one is wrong and needs to rewritten. This is an ideal opportunity (not only) for first time contributors - it's an isolated piece of code, easy testable and you'll actually help to fix something others care about! Contribute today! :) http://wiki.github.com/ironruby/ironruby Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Friday, March 27, 2009 6:50 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] expand_path & Rspec Hi, I getting the expand path problem when trying to run some rspec examples. Ben Hall mentioned it before. http://www.ruby-forum.com/topic/167568#new I have a spec: ----------------------------------------------------------------------------- require File.dirname(__FILE__) + '/Domain.dll' require 'rubygems' require 'spec' module ProductSpecHelper def valid_attributes { :Name => 'Test' } end end describe Domain::Product, "When saving" do include ProductSpecHelper before(:each) do @product = Domain::Product.new end it "should have a name" do @product.attributes = @valid_attributes @product.name.should_not be_nil end it "should have product lines" end and run: ----------------------------------------------------------------------------- D:\IronRuby\RSpec>ir product_spec.rb c:\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\FileOps .cs:522:in `ExpandPath': Invalid argument - product_spec.rb:0 (Errno::EINVAL) from :0:in `expand_path' from example_group_methods.rb:108:in `set_description' from example_group_methods.rb:171:in `subclass' from example_group_methods.rb:48:in `describe' from example_group_factory.rb:25:in `create_example_group' from main.rb:22:in `describe' from product_spec.rb:0 Is there a work around people are using at the moment? Cheers. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From lists at ruby-forum.com Fri Mar 27 14:42:23 2009 From: lists at ruby-forum.com (Michael Delaney) Date: Fri, 27 Mar 2009 19:42:23 +0100 Subject: [Ironruby-core] expand_path & Rspec In-Reply-To: References: Message-ID: so its a bug then. ok, i'll take a look at it. any tips for a first time contributor ;-) -- Posted via http://www.ruby-forum.com/. From jdeville at microsoft.com Fri Mar 27 14:40:20 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 27 Mar 2009 18:40:20 +0000 Subject: [Ironruby-core] Code Review: Various .NET interop tests Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0984370A@TK5EX14MBXC101.redmond.corp.microsoft.com> This is one of the weak areas for our Git setup. I have multiple commits that need review. I honestly feel that Git needs the concept of a push object, so I could say look at this, or these pushes. So, options to help you review: * Click on each of these links and leave comments * Use git however you want * Use Git Extensions (if you clone git://github.com/jredville/ironruby.git, and setup Git Extensions, you should be able to click on each commit, and each file at your leisure) * GitDiff 17de3f82 8a54299 (Unfortuneately, this will include commits and files from IronRuby's main repo's pushes) We're trying to figure something better out, including possibly using Review Board (http://review-board.org). So, now for the actual review: This a some work on Generic Method specs, as well as more general work on a first pass of the test plan (http://ironruby.net/.NET_Testing_plans). * modify .gitignore to ignore Bin in addition to bin * add dlr_config to IronRuby object * csc describe handles shared specs (multiple arguments) and we now emit #line pragmas instead of comments * adding some generic tests and fixing tags, also make default.mspec load ir.exe instead of ir.cmd * adding some constrained generic specs * added generic error messages specs. Fixed tag locations * split pragma warning to make sure I do not disable unintended warnings. Refactor conflicting methods * added class param and conflicting type param specs * adding specs for ruby classes with type constraints and for a secondary (base class) type constraint) * array conversion specs * array instantiation specs * redid IronRuby.dlr_config after Tomas' IronRuby changes * adding a default conversion spec and a little bit of refactoring * more array tests * spec for a static method caching bug i found * spec method overriding maintains .NET supermethod * refactor to add some metaclass helpers * class instantiation specs * some more class instantiation specs * sealed class instantiation specs * generic instantiation specs * make GenericClass have a method so it isn't EmptyGenericClass * more generic instantiation specs * -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Fri Mar 27 15:40:15 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Fri, 27 Mar 2009 12:40:15 -0700 Subject: [Ironruby-core] expand_path & Rspec In-Reply-To: References: Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15A40191@NA-EXMSG-C104.redmond.corp.microsoft.com> I fixed this particular issue. See attached. Its not in the main GIT repo though. The workaround for running the rubyspecs is to set HOME manually to %USERPROFILE%. We are also fixing dev.bat to set HOME for you, so you won't have to worry about it. There are plenty of other tags (which disables a failing test) in http://github.com/ironruby/ironruby/tree/17de3f8220b0aa9da96f9c8f0c132db954721375/Merlin/External/Languages/IronRuby/mspec/ironruby-tags/core/file. Delete anyone of them, run "mspec ci core\file" to see the test start failing (since the tag is gone), and then work on a fix. Once you have drilled into the issue a bit, I can help you as mentioned in the attached email. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Friday, March 27, 2009 11:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] expand_path & Rspec so its a bug then. ok, i'll take a look at it. any tips for a first time contributor ;-) -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An embedded message was scrubbed... From: Shri Borde Subject: Review: Marshal bug Date: Thu, 26 Mar 2009 16:34:59 -0700 Size: 14563 URL: From Tomas.Matousek at microsoft.com Fri Mar 27 15:42:54 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 27 Mar 2009 12:42:54 -0700 Subject: [Ironruby-core] expand_path & Rspec In-Reply-To: References: Message-ID: You'll find them here: http://wiki.github.com/ironruby/ironruby Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Friday, March 27, 2009 11:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] expand_path & Rspec so its a bug then. ok, i'll take a look at it. any tips for a first time contributor ;-) -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Fri Mar 27 15:56:15 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 27 Mar 2009 12:56:15 -0700 Subject: [Ironruby-core] expand_path & Rspec In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A40191@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E15A40191@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: There will be issues with expand_path as long as it uses Path.GetFullPath and Path.Combine. These methods check for invalid path characters while expand_path doesn't. So we need an implementation that doesn't use Path.* methods. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Friday, March 27, 2009 12:40 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] expand_path & Rspec I fixed this particular issue. See attached. Its not in the main GIT repo though. The workaround for running the rubyspecs is to set HOME manually to %USERPROFILE%. We are also fixing dev.bat to set HOME for you, so you won't have to worry about it. There are plenty of other tags (which disables a failing test) in http://github.com/ironruby/ironruby/tree/17de3f8220b0aa9da96f9c8f0c132db954721375/Merlin/External/Languages/IronRuby/mspec/ironruby-tags/core/file. Delete anyone of them, run "mspec ci core\file" to see the test start failing (since the tag is gone), and then work on a fix. Once you have drilled into the issue a bit, I can help you as mentioned in the attached email. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Michael Delaney Sent: Friday, March 27, 2009 11:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] expand_path & Rspec so its a bug then. ok, i'll take a look at it. any tips for a first time contributor ;-) -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Fri Mar 27 15:59:17 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Fri, 27 Mar 2009 12:59:17 -0700 Subject: [Ironruby-core] Review: Marshal bug In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15A3FE0C@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <710DF26F214D2B4BB94287123FFE980A2E15A3FE0C@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: Library changes look good. Tomas From: Shri Borde Sent: Thursday, March 26, 2009 4:35 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: Marshal bug GitDiff.bat a90a89465f3b9c178507f83e4797481463989059 119b056332b270164eaf2b1f9cd2956387e38636 http://github.com/shri/ironruby/commit/119b056332b270164eaf2b1f9cd2956387e38636 YAML should allow spaces. eg the trailing \s\t in YAML.load("!timestamp '2009-03-22 00:00:00\s\t'") is allowed Changed igem.bat, irake.bat, etc to work in dev environment where ir.exe is not in the path File.expand_path("~") should throw ArgumentError is HOME is not set * Merlin/External/Languages/IronRuby/Yaml/IronRuby.Libraries.Yaml/Engine/BaseConstructor.cs * Merlin/External/Languages/IronRuby/Yaml/IronRuby.Libraries.Yaml/Engine/Scanner.cs * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/file/expand_path_spec.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/marshal/fixtures/marshal_data.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/library/yaml/load_spec.rb * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/FileOps.cs * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/Marshal.cs * Merlin/Main/Languages/Ruby/Scripts/bin/igem.bat * Merlin/Main/Languages/Ruby/Scripts/bin/iirb.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irails.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irake.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irdoc.bat * Merlin/Main/Languages/Ruby/Scripts/bin/iri.bat Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Mar 27 16:18:51 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 27 Mar 2009 20:18:51 +0000 Subject: [Ironruby-core] Review: Marshal bug In-Reply-To: References: <710DF26F214D2B4BB94287123FFE980A2E15A3FE0C@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD0984424C@TK5EX14MBXC101.redmond.corp.microsoft.com> Test and batch changes look good. JD From: Tomas Matousek Sent: Friday, March 27, 2009 12:59 PM To: Shri Borde; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Review: Marshal bug Library changes look good. Tomas From: Shri Borde Sent: Thursday, March 26, 2009 4:35 PM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Review: Marshal bug GitDiff.bat a90a89465f3b9c178507f83e4797481463989059 119b056332b270164eaf2b1f9cd2956387e38636 http://github.com/shri/ironruby/commit/119b056332b270164eaf2b1f9cd2956387e38636 YAML should allow spaces. eg the trailing \s\t in YAML.load("!timestamp '2009-03-22 00:00:00\s\t'") is allowed Changed igem.bat, irake.bat, etc to work in dev environment where ir.exe is not in the path File.expand_path("~") should throw ArgumentError is HOME is not set * Merlin/External/Languages/IronRuby/Yaml/IronRuby.Libraries.Yaml/Engine/BaseConstructor.cs * Merlin/External/Languages/IronRuby/Yaml/IronRuby.Libraries.Yaml/Engine/Scanner.cs * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/file/expand_path_spec.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/core/marshal/fixtures/marshal_data.rb * Merlin/External/Languages/IronRuby/mspec/rubyspec/library/yaml/load_spec.rb * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/FileOps.cs * Merlin/Main/Languages/Ruby/Libraries.LCA_RESTRICTED/Builtins/Marshal.cs * Merlin/Main/Languages/Ruby/Scripts/bin/igem.bat * Merlin/Main/Languages/Ruby/Scripts/bin/iirb.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irails.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irake.bat * Merlin/Main/Languages/Ruby/Scripts/bin/irdoc.bat * Merlin/Main/Languages/Ruby/Scripts/bin/iri.bat Thanks, Shri -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Fri Mar 27 16:22:29 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 27 Mar 2009 20:22:29 +0000 Subject: [Ironruby-core] Code Review: Various .NET interop tests In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD0984370A@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <0AB34E2BFBE88245B073D2D83B4245FD0984370A@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: Looks good to me. I left comments where appropriate, but nothing stopping you from checking in. From: Jim Deville Sent: Friday, March 27, 2009 11:40 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Various .NET interop tests This is one of the weak areas for our Git setup. I have multiple commits that need review. I honestly feel that Git needs the concept of a push object, so I could say look at this, or these pushes. So, options to help you review: * Click on each of these links and leave comments * Use git however you want * Use Git Extensions (if you clone git://github.com/jredville/ironruby.git, and setup Git Extensions, you should be able to click on each commit, and each file at your leisure) * GitDiff 17de3f82 8a54299 (Unfortuneately, this will include commits and files from IronRuby's main repo's pushes) We're trying to figure something better out, including possibly using Review Board (http://review-board.org). So, now for the actual review: This a some work on Generic Method specs, as well as more general work on a first pass of the test plan (http://ironruby.net/.NET_Testing_plans). * modify .gitignore to ignore Bin in addition to bin * add dlr_config to IronRuby object * csc describe handles shared specs (multiple arguments) and we now emit #line pragmas instead of comments * adding some generic tests and fixing tags, also make default.mspec load ir.exe instead of ir.cmd * adding some constrained generic specs * added generic error messages specs. Fixed tag locations * split pragma warning to make sure I do not disable unintended warnings. Refactor conflicting methods * added class param and conflicting type param specs * adding specs for ruby classes with type constraints and for a secondary (base class) type constraint) * array conversion specs * array instantiation specs * redid IronRuby.dlr_config after Tomas' IronRuby changes * adding a default conversion spec and a little bit of refactoring * more array tests * spec for a static method caching bug i found * spec method overriding maintains .NET supermethod * refactor to add some metaclass helpers * class instantiation specs * some more class instantiation specs * sealed class instantiation specs * generic instantiation specs * make GenericClass have a method so it isn't EmptyGenericClass * more generic instantiation specs * -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Mar 27 16:26:41 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 27 Mar 2009 20:26:41 +0000 Subject: [Ironruby-core] Code Review: Various .NET interop tests In-Reply-To: References: <0AB34E2BFBE88245B073D2D83B4245FD0984370A@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD09844587@TK5EX14MBXC101.redmond.corp.microsoft.com> Cool. As part of pulling this into TFS, I'm going to add ClrAssembly to Ruby.sln so that we build it from VS. JD From: Jimmy Schementi Sent: Friday, March 27, 2009 1:22 PM To: Jim Deville; IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: RE: Code Review: Various .NET interop tests Looks good to me. I left comments where appropriate, but nothing stopping you from checking in. From: Jim Deville Sent: Friday, March 27, 2009 11:40 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Various .NET interop tests This is one of the weak areas for our Git setup. I have multiple commits that need review. I honestly feel that Git needs the concept of a push object, so I could say look at this, or these pushes. So, options to help you review: * Click on each of these links and leave comments * Use git however you want * Use Git Extensions (if you clone git://github.com/jredville/ironruby.git, and setup Git Extensions, you should be able to click on each commit, and each file at your leisure) * GitDiff 17de3f82 8a54299 (Unfortuneately, this will include commits and files from IronRuby's main repo's pushes) We're trying to figure something better out, including possibly using Review Board (http://review-board.org). So, now for the actual review: This a some work on Generic Method specs, as well as more general work on a first pass of the test plan (http://ironruby.net/.NET_Testing_plans). * modify .gitignore to ignore Bin in addition to bin * add dlr_config to IronRuby object * csc describe handles shared specs (multiple arguments) and we now emit #line pragmas instead of comments * adding some generic tests and fixing tags, also make default.mspec load ir.exe instead of ir.cmd * adding some constrained generic specs * added generic error messages specs. Fixed tag locations * split pragma warning to make sure I do not disable unintended warnings. Refactor conflicting methods * added class param and conflicting type param specs * adding specs for ruby classes with type constraints and for a secondary (base class) type constraint) * array conversion specs * array instantiation specs * redid IronRuby.dlr_config after Tomas' IronRuby changes * adding a default conversion spec and a little bit of refactoring * more array tests * spec for a static method caching bug i found * spec method overriding maintains .NET supermethod * refactor to add some metaclass helpers * class instantiation specs * some more class instantiation specs * sealed class instantiation specs * generic instantiation specs * make GenericClass have a method so it isn't EmptyGenericClass * more generic instantiation specs * -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Fri Mar 27 17:19:42 2009 From: jdeville at microsoft.com (Jim Deville) Date: Fri, 27 Mar 2009 21:19:42 +0000 Subject: [Ironruby-core] Code Review: gitpull2 Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD098456CA@TK5EX14MBXC101.redmond.corp.microsoft.com> FYI code review. Already reviewed by Jimmy tfpt review "/shelveset:gitpull2;REDMOND\jdeville" Comment : * modify .gitignore to ignore Bin in addition to bin * Adds ClrAssembly to Ruby.sln * add dlr_config to IronRuby object * csc describe handles shared specs (multiple arguments) and we now emit #line pragmas instead of comments * adding some generic tests and fixing tags, also make default.mspec load ir.exe instead of ir.cmd * adding some constrained generic specs * added generic error messages specs. Fixed tag locations * split pragma warning to make sure I do not disable unintended warnings. Refactor conflicting methods * added class param and conflicting type param specs * adding specs for ruby classes with type constraints and for a secondary (base class) type constraint) * array conversion specs * array instantiation specs * redid IronRuby.dlr_config after Tomas' IronRuby changes * adding a default conversion spec and a little bit of refactoring * more array tests * spec for a static method caching bug i found * spec method overriding maintains .NET supermethod * refactor to add some metaclass helpers * class instantiation specs * some more class instantiation specs * sealed class instantiation specs * generic instantiation specs * make GenericClass have a method so it isn't EmptyGenericClass * more generic instantiation specs -------------- next part -------------- A non-text attachment was scrubbed... Name: gitpull2.diff Type: application/octet-stream Size: 58707 bytes Desc: gitpull2.diff URL: From Tomas.Matousek at microsoft.com Sat Mar 28 14:46:51 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sat, 28 Mar 2009 11:46:51 -0700 Subject: [Ironruby-core] Code Review: DefaultBinderRefactoring2 Message-ID: tfpt review "/shelveset:DefaultBinderRefactoring2;REDMOND\tomat" Outer DLR, Python: Refactors default method call binder: - Moves SiteLocalStorage to Python. Ruby uses a different storage class and it's very simple for languages to define and use their own. - ActionBinder.BindSpecialParameter shouldn't deal with CodeContext and SiteLocalStorage - moved to PythonBinder. - Moved ContextArgBuilder and SiteLocalStorageArgbuilder to Python. - ArgBuilder.CanGenerateDelegate needs to be protected so that custom ArgBuilders can override it. - Renames various identifiers to make naming consistent and more meaningful. - Simplifies some methods in MethodBinder and MethodCandidate, removes dependency on CodeContext - this was only used by JScript (disables a couple of JS tests). Ruby: - Replaces calls to obsolete methods of default method binder with those using meta-objects. Tomas -------------- next part -------------- A non-text attachment was scrubbed... Name: DefaultBinderRefactoring2.diff Type: application/octet-stream Size: 61838 bytes Desc: DefaultBinderRefactoring2.diff URL: From thibaut.barrere at gmail.com Sun Mar 29 17:53:17 2009 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Sun, 29 Mar 2009 23:53:17 +0200 Subject: [Ironruby-core] Flagged enums In-Reply-To: <4a68b8cf0903260925p26627421w88798d47fa319662@mail.gmail.com> References: <4a68b8cf0903250239h5a39245y5892ba5c9ff3b358@mail.gmail.com> <4a68b8cf0903260925p26627421w88798d47fa319662@mail.gmail.com> Message-ID: <4a68b8cf0903291453l4c37d69bka677667adaedb96f@mail.gmail.com> In case it's useful to someone else (until flagged enums combination is supported by IronRuby), I wrote some custom code to support that. I'm now allowing code like :anchor => [:bottom,:top] in Magic. Relevant code is here: - http://github.com/thbar/magic/commit/e236e6fa455ea783b42dd08513dea7d80b4705d5 - http://github.com/thbar/magic/blob/e236e6fa455ea783b42dd08513dea7d80b4705d5/lib/magic/enum_support.rb cheers, -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Mon Mar 30 19:43:44 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Mon, 30 Mar 2009 16:43:44 -0700 Subject: [Ironruby-core] Mapping multiple pushes to a single review In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD0984370A@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <0AB34E2BFBE88245B073D2D83B4245FD0984370A@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15EEC239@NA-EXMSG-C104.redmond.corp.microsoft.com> Could you have avoided doing pulls from the main repo? Not ideal but given the tools we have, we will have to figure out a solution that balances all interests. You could have a separate branch for active work if you do need pulls for main for some other reason like doing code reviews for others, just keeping on top of whats going on, etc. Also, if you can manage to avoid pulls from the main repo, should rebasing be recommended? You want to do frequent pushes maily to back up your changes in the cloud, and so rebasing sounds like a good option once you are finally happy with the changes and want to push it into your master branch. It will be easier to browse file histories... Also, I suppose this issue is not unique to IronRuby. How do other projects deal with code reviews, keeping file history less noisy, etc? Thanks, Shri From: Jim Deville Sent: Friday, March 27, 2009 11:40 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Various .NET interop tests This is one of the weak areas for our Git setup. I have multiple commits that need review. I honestly feel that Git needs the concept of a push object, so I could say look at this, or these pushes. So, options to help you review: * Click on each of these links and leave comments * Use git however you want * Use Git Extensions (if you clone git://github.com/jredville/ironruby.git, and setup Git Extensions, you should be able to click on each commit, and each file at your leisure) * GitDiff 17de3f82 8a54299 (Unfortuneately, this will include commits and files from IronRuby's main repo's pushes) We're trying to figure something better out, including possibly using Review Board (http://review-board.org). So, now for the actual review: This a some work on Generic Method specs, as well as more general work on a first pass of the test plan (http://ironruby.net/.NET_Testing_plans). * modify .gitignore to ignore Bin in addition to bin * add dlr_config to IronRuby object * csc describe handles shared specs (multiple arguments) and we now emit #line pragmas instead of comments * adding some generic tests and fixing tags, also make default.mspec load ir.exe instead of ir.cmd * adding some constrained generic specs * added generic error messages specs. Fixed tag locations * split pragma warning to make sure I do not disable unintended warnings. Refactor conflicting methods * added class param and conflicting type param specs * adding specs for ruby classes with type constraints and for a secondary (base class) type constraint) * array conversion specs * array instantiation specs * redid IronRuby.dlr_config after Tomas' IronRuby changes * adding a default conversion spec and a little bit of refactoring * more array tests * spec for a static method caching bug i found * spec method overriding maintains .NET supermethod * refactor to add some metaclass helpers * class instantiation specs * some more class instantiation specs * sealed class instantiation specs * generic instantiation specs * make GenericClass have a method so it isn't EmptyGenericClass * more generic instantiation specs * -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Mon Mar 30 20:35:32 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 31 Mar 2009 00:35:32 +0000 Subject: [Ironruby-core] Mapping multiple pushes to a single review Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD09851827@TK5EX14MBXC101.redmond.corp.microsoft.com> I'm currently trying the branch technique to see if I can rebase back to master and delete the topic branch at the same time. I will report back midweek when I pull my stuff into IronRuby's repo. I t would be interesting to see how others do it. JD -----Original Message----- From: Shri Borde Sent: March 30, 2009 4:43 PM To: Jim Deville Cc: ironruby-core at rubyforge.org Subject: Mapping multiple pushes to a single review Could you have avoided doing pulls from the main repo? Not ideal but given the tools we have, we will have to figure out a solution that balances all interests. You could have a separate branch for active work if you do need pulls for main for some other reason like doing code reviews for others, just keeping on top of whats going on, etc. Also, if you can manage to avoid pulls from the main repo, should rebasing be recommended? You want to do frequent pushes maily to back up your changes in the cloud, and so rebasing sounds like a good option once you are finally happy with the changes and want to push it into your master branch. It will be easier to browse file histories? Also, I suppose this issue is not unique to IronRuby. How do other projects deal with code reviews, keeping file history less noisy, etc? Thanks, Shri From: Jim Deville Sent: Friday, March 27, 2009 11:40 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Various .NET interop tests This is one of the weak areas for our Git setup. I have multiple commits that need review. I honestly feel that Git needs the concept of a push object, so I could say look at this, or these pushes. So, options to help you review: ? Click on each of these links and leave comments ? Use git however you want ? Use Git Extensions (if you clone git://github.com/jredville/ironruby.git, and setup Git Extensions, you should be able to click on each commit, and each file at your leisure) ? GitDiff 17de3f82 8a54299 (Unfortuneately, this will include commits and files from IronRuby?s main repo?s pushes) We?re trying to figure something better out, including possibly using Review Board (http://review-board.org). So, now for the actual review: This a some work on Generic Method specs, as well as more general work on a first pass of the test plan (http://ironruby.net/.NET_Testing_plans). ? modify .gitignore to ignore Bin in addition to bin ? add dlr_config to IronRuby object ? csc describe handles shared specs (multiple arguments) and we now emit #line pragmas instead of comments ? adding some generic tests and fixing tags, also make default.mspec load ir.exe instead of ir.cmd ? adding some constrained generic specs ? added generic error messages specs. Fixed tag locations ? split pragma warning to make sure I do not disable unintended warnings. Refactor conflicting methods ? added class param and conflicting type param specs ? adding specs for ruby classes with type constraints and for a secondary (base class) type constraint) ? array conversion specs ? array instantiation specs ? redid IronRuby.dlr_config after Tomas' IronRuby changes ? adding a default conversion spec and a little bit of refactoring ? more array tests ? spec for a static method caching bug i found ? spec method overriding maintains .NET supermethod ? refactor to add some metaclass helpers ? class instantiation specs ? some more class instantiation specs ? sealed class instantiation specs ? generic instantiation specs ? make GenericClass have a method so it isn't EmptyGenericClass ? more generic instantiation specs ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Mar 30 21:19:35 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 31 Mar 2009 01:19:35 +0000 Subject: [Ironruby-core] Mapping multiple pushes to a single review In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15EEC239@NA-EXMSG-C104.redmond.corp.microsoft.com> References: <0AB34E2BFBE88245B073D2D83B4245FD0984370A@TK5EX14MBXC101.redmond.corp.microsoft.com> <710DF26F214D2B4BB94287123FFE980A2E15EEC239@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: As a slight variation/summarization, I'd suggest making a branch for any specific change you'll be making, especially if it'll be made up of multiple commits. Pulls could be made on master, and merged into the branch as needed. Then, you could rebase and present the change as one commit to your master branch, which then could go out for code review. Though, I liked having many small changes, since the modified-file-count was small per link, so it was almost like having a file list. Though github makes it a bit irritating that it doesn't show the diffs of new or deleted files, so you have to click on each one of those. ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shri Borde Sent: Monday, March 30, 2009 4:44 PM To: Jim Deville Cc: ironruby-core at rubyforge.org Subject: [Ironruby-core] Mapping multiple pushes to a single review Could you have avoided doing pulls from the main repo? Not ideal but given the tools we have, we will have to figure out a solution that balances all interests. You could have a separate branch for active work if you do need pulls for main for some other reason like doing code reviews for others, just keeping on top of whats going on, etc. Also, if you can manage to avoid pulls from the main repo, should rebasing be recommended? You want to do frequent pushes maily to back up your changes in the cloud, and so rebasing sounds like a good option once you are finally happy with the changes and want to push it into your master branch. It will be easier to browse file histories... Also, I suppose this issue is not unique to IronRuby. How do other projects deal with code reviews, keeping file history less noisy, etc? Thanks, Shri From: Jim Deville Sent: Friday, March 27, 2009 11:40 AM To: IronRuby External Code Reviewers Cc: ironruby-core at rubyforge.org Subject: Code Review: Various .NET interop tests This is one of the weak areas for our Git setup. I have multiple commits that need review. I honestly feel that Git needs the concept of a push object, so I could say look at this, or these pushes. So, options to help you review: * Click on each of these links and leave comments * Use git however you want * Use Git Extensions (if you clone git://github.com/jredville/ironruby.git, and setup Git Extensions, you should be able to click on each commit, and each file at your leisure) * GitDiff 17de3f82 8a54299 (Unfortuneately, this will include commits and files from IronRuby's main repo's pushes) We're trying to figure something better out, including possibly using Review Board (http://review-board.org). So, now for the actual review: This a some work on Generic Method specs, as well as more general work on a first pass of the test plan (http://ironruby.net/.NET_Testing_plans). * modify .gitignore to ignore Bin in addition to bin * add dlr_config to IronRuby object * csc describe handles shared specs (multiple arguments) and we now emit #line pragmas instead of comments * adding some generic tests and fixing tags, also make default.mspec load ir.exe instead of ir.cmd * adding some constrained generic specs * added generic error messages specs. Fixed tag locations * split pragma warning to make sure I do not disable unintended warnings. Refactor conflicting methods * added class param and conflicting type param specs * adding specs for ruby classes with type constraints and for a secondary (base class) type constraint) * array conversion specs * array instantiation specs * redid IronRuby.dlr_config after Tomas' IronRuby changes * adding a default conversion spec and a little bit of refactoring * more array tests * spec for a static method caching bug i found * spec method overriding maintains .NET supermethod * refactor to add some metaclass helpers * class instantiation specs * some more class instantiation specs * sealed class instantiation specs * generic instantiation specs * make GenericClass have a method so it isn't EmptyGenericClass * more generic instantiation specs * -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Tue Mar 31 06:21:43 2009 From: lists at ruby-forum.com (Chamini Gallage) Date: Tue, 31 Mar 2009 12:21:43 +0200 Subject: [Ironruby-core] Error when running Cucumber examples with IronRuby Message-ID: Hi, I have been putting all my might to get the simple examples working with IronRuby and Cucumber. I followed ironruby-and-net guidlines in the following link. http://wiki.github.com/aslakhellesoy/cucumber/ironruby-and-net All the steps were successful up to the point of running the cucumber examples. when I run "icucumber features" after cd to the i18n\en I get the follwing error. (eval):220:in `_nt_keyword_space': unexpected break (LocalJumpError) from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from (eval):211:in `_nt_keyword_space' from feature.rb:900:in `_nt_step' from feature.rb:848:in `_nt_steps' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from feature.rb:839:in `_nt_steps' from feature.rb:763:in `_nt_scenario_outline' from feature.rb:96:in `_nt_feature' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from feature.rb:71:in `_nt_feature' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:1259:in `send' from compiled_parser.rb:15:in `parse' from treetop_ext.rb:39:in `parse_or_fail' from treetop_ext.rb:28:in `parse_file' from treetop_ext.rb:19:in `parse_file' from main.rb:54:in `load_plain_text_features' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Extensions\IListOps.cs:700:in `each' from main.rb:49:in `load_plain_text_features' from main.rb:30:in `execute!' from main.rb:19:in `execute' from :0 from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:390:in `load' from :0 Thank u very much if somebody can help me on this :) Cheers!!! -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Tue Mar 31 12:09:38 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 31 Mar 2009 18:09:38 +0200 Subject: [Ironruby-core] community chapter In-Reply-To: <53194650933664488F3F0C3A0AB56832EE2F05@nw60.napa.fi> References: <53194650933664488F3F0C3A0AB56832EE2F05@nw60.napa.fi> Message-ID: Hi Robert, Sorry for waiting this long to reply to your email. Before it was pretty far in the future but now my deadline is approaching :). Anyway I'd be most interested to read and hear about your experiences surrounding your project. The work you've been doing definitely sounds pretty interesting from our past conversations. So I set a deadline for the community stuff in the last week of April because I will have to put it in the book and my publisher wants me to write it to keep the tone at a consistent level. I will give everybody credit and include a short description of who submitted what and who they are. I will also give credit at the beginning of your contribution and at the end so that it is really clear that I only copied what you gave me. Would that be doable for you by the end of April? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim On Thu, Feb 19, 2009 at 10:47 AM, Robert Brotherus wrote: > Hi Ivan, > > > > Yes, I can also write about our (still ongoing) path to WPF + XAML + > IronRuby enlightment > > > > Any deadline you want to set for contributions? > > > > Let?s continue in private emails. > > > > Robert Brotherus > > > ------------------------------ > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero > *Sent:* Wednesday, February 18, 2009 2:14 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] community chapter > > > > Great! > > > > Other people I thought about were > > Thibaut Barr?re > > Robert Brotherus > > > > Cheers > > > > On Wed, Feb 18, 2009 at 11:54 AM, Ben Hall > wrote: > > Hi Ivan, > > Sounds like a great idea! I would be interested in writing a couple of > pages, i'll contact you offline - if I don't, nudge me ;) > > Ben > > > On Wed, Feb 18, 2009 at 6:49 AM, Ivan Porto Carrero > wrote: > > Hi > > > > I would like to put a "real-world" IronRuby chapter in my book that is > > created by people from the community. People that are interested in > writing > > a short piece (2-5 pages in word) on how IronRuby made their live easier > > because of ... > > > > Michael has a thing about ActiveDirectory > > Daniele also has a topic. > > > > I was thinking Ben???? > > > > if anybody else is interested just let me know and I'll give you access > to > > the repository in which we stick all our stuff around that. > > 2 pages would be an average blog post :) > > > > Also I took over the rubydoes.net website. If somebody wants to blog > there > > => email me :) > > > > Cheers > > Ivan > > > > > _______________________________________________ > > 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 > > > > _______________________________________________ > 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 ivan at flanders.co.nz Tue Mar 31 12:11:13 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Tue, 31 Mar 2009 18:11:13 +0200 Subject: [Ironruby-core] lol.. google undo send definitely is a fad Message-ID: It took me more than the 2 seconds I get from google to realize that I sent the previous email to the wrong address. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Tue Mar 31 12:49:39 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 31 Mar 2009 16:49:39 +0000 Subject: [Ironruby-core] lol.. google undo send definitely is a fad In-Reply-To: References: Message-ID: <0AB34E2BFBE88245B073D2D83B4245FD09855454@TK5EX14MBXC101.redmond.corp.microsoft.com> As was pointed out by some people around here, Outlook has had a similar feature for a while, that gives more customization. It just requires you to make a rule ;) JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Tuesday, March 31, 2009 9:11 AM To: ironruby-core Subject: [Ironruby-core] lol.. google undo send definitely is a fad It took me more than the 2 seconds I get from google to realize that I sent the previous email to the wrong address. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shri.Borde at microsoft.com Tue Mar 31 17:19:47 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Tue, 31 Mar 2009 14:19:47 -0700 Subject: [Ironruby-core] Error when running Cucumber examples with IronRuby In-Reply-To: References: Message-ID: <710DF26F214D2B4BB94287123FFE980A2E15EEC7EF@NA-EXMSG-C104.redmond.corp.microsoft.com> src\IronRuby.Libraries is no longer a valid path in the sources. You must have the old sources. We have moved from SVN to GIT. See http://wiki.github.com/ironruby/ironruby for the latest instructions. Jimmy, were you going to delete the SVN sources and put a pointer to the GIT repo? This is the second instance someone has used the old sources, so we should go ahead and nuke the SVN sources. Chamini, do keep us updated on how things go with the latest sources. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Chamini Gallage Sent: Tuesday, March 31, 2009 3:22 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Error when running Cucumber examples with IronRuby Hi, I have been putting all my might to get the simple examples working with IronRuby and Cucumber. I followed ironruby-and-net guidlines in the following link. http://wiki.github.com/aslakhellesoy/cucumber/ironruby-and-net All the steps were successful up to the point of running the cucumber examples. when I run "icucumber features" after cd to the i18n\en I get the follwing error. (eval):220:in `_nt_keyword_space': unexpected break (LocalJumpError) from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from (eval):211:in `_nt_keyword_space' from feature.rb:900:in `_nt_step' from feature.rb:848:in `_nt_steps' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from feature.rb:839:in `_nt_steps' from feature.rb:763:in `_nt_scenario_outline' from feature.rb:96:in `_nt_feature' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from feature.rb:71:in `_nt_feature' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:1259:in `send' from compiled_parser.rb:15:in `parse' from treetop_ext.rb:39:in `parse_or_fail' from treetop_ext.rb:28:in `parse_file' from treetop_ext.rb:19:in `parse_file' from main.rb:54:in `load_plain_text_features' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Extensions\IListOps.cs:700:in `each' from main.rb:49:in `load_plain_text_features' from main.rb:30:in `execute!' from main.rb:19:in `execute' from :0 from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:390:in `load' from :0 Thank u very much if somebody can help me on this :) Cheers!!! -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Tue Mar 31 23:17:50 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 1 Apr 2009 03:17:50 +0000 Subject: [Ironruby-core] Error when running Cucumber examples with IronRuby In-Reply-To: <710DF26F214D2B4BB94287123FFE980A2E15EEC7EF@NA-EXMSG-C104.redmond.corp.microsoft.com> References: , <710DF26F214D2B4BB94287123FFE980A2E15EEC7EF@NA-EXMSG-C104.redmond.corp.microsoft.com> Message-ID: The svn sources have been nuked from /trunk. I left the /tags directory just in case anyone needs the sources to a previous build that isn't in git. /trunk now only have one file in it ... a README that directs people to github: http://ironruby.rubyforge.org/svn/trunk. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Shri Borde [Shri.Borde at microsoft.com] Sent: Tuesday, March 31, 2009 2:19 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Error when running Cucumber examples with IronRuby src\IronRuby.Libraries is no longer a valid path in the sources. You must have the old sources. We have moved from SVN to GIT. See http://wiki.github.com/ironruby/ironruby for the latest instructions. Jimmy, were you going to delete the SVN sources and put a pointer to the GIT repo? This is the second instance someone has used the old sources, so we should go ahead and nuke the SVN sources. Chamini, do keep us updated on how things go with the latest sources. -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Chamini Gallage Sent: Tuesday, March 31, 2009 3:22 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Error when running Cucumber examples with IronRuby Hi, I have been putting all my might to get the simple examples working with IronRuby and Cucumber. I followed ironruby-and-net guidlines in the following link. http://wiki.github.com/aslakhellesoy/cucumber/ironruby-and-net All the steps were successful up to the point of running the cucumber examples. when I run "icucumber features" after cd to the i18n\en I get the follwing error. (eval):220:in `_nt_keyword_space': unexpected break (LocalJumpError) from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from (eval):211:in `_nt_keyword_space' from feature.rb:900:in `_nt_step' from feature.rb:848:in `_nt_steps' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from feature.rb:839:in `_nt_steps' from feature.rb:763:in `_nt_scenario_outline' from feature.rb:96:in `_nt_feature' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:432:in `loop' from feature.rb:71:in `_nt_feature' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:1259:in `send' from compiled_parser.rb:15:in `parse' from treetop_ext.rb:39:in `parse_or_fail' from treetop_ext.rb:28:in `parse_file' from treetop_ext.rb:19:in `parse_file' from main.rb:54:in `load_plain_text_features' from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Extensions\IListOps.cs:700:in `each' from main.rb:49:in `load_plain_text_features' from main.rb:30:in `execute!' from main.rb:19:in `execute' from :0 from c:\ironruby_source\ironruby\src\IronRuby.Libraries\Builtins\kernelops.cs:390:in `load' from :0 Thank u very much if somebody can help me on this :) Cheers!!! -- Posted via http://www.ruby-forum.com/. _______________________________________________ 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 From charles.nutter at sun.com Tue Mar 31 23:41:21 2009 From: charles.nutter at sun.com (Charles Oliver Nutter) Date: Tue, 31 Mar 2009 22:41:21 -0500 Subject: [Ironruby-core] lol.. google undo send definitely is a fad In-Reply-To: <0AB34E2BFBE88245B073D2D83B4245FD09855454@TK5EX14MBXC101.redmond.corp.microsoft.com> References: <0AB34E2BFBE88245B073D2D83B4245FD09855454@TK5EX14MBXC101.redmond.corp.microsoft.com> Message-ID: <49D2E261.1020605@sun.com> Jim Deville wrote: > As was pointed out by some people around here, Outlook has had a similar > feature for a while, that gives more customization. It just requires you > to make a rule ;) And requires the receiver to accept the retraction if it's already been delivered, if I remember right...which of course I never did. - Charlie