From martin.smith.jr at gmail.com Tue Sep 1 14:36:38 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Tue, 1 Sep 2009 11:36:38 -0700 Subject: [Ironruby-core] Guidance on embedding scripting in my Application Message-ID: <21192f970909011136j107aa51eieb4eddb6aec5745b@mail.gmail.com> Hello IronRubistas, I'm looking (as you can see in my subject line) for a little guidance on the best way to embed IronRuby into my Application.? I've already successfully embedded ruby into the application, so these questions are more about the nitty gritty details of embedding.? The application is mostly written in C# and occasionally calls out to ruby to create UI components that are placed on other UI components themselves created in either C# or ruby.? Generally, but not always, the C# code will need to call into ruby to do the initialization. I can think of a few ways to do this: (1) At app startup spawn up a RubyEngine, execute a file that "warms up" the engine and "requires" all or most of the ruby files that contain the classes that will create the UI components (2)?At app startup create a new RubyEngine and do nothing. Then, as needed, issue commands to the runtime with a ScriptScope that require and initialize UI components. (3) Every time I need to execute new ruby code, create a new engine. Really, I'm mostly thinking about 1 vs 2. Are class definitions "shared" between script scopes? More specifically, if I require the same file twice in different script scopes will they point to the same code or will the runtime need to recompile and re-jit the code for each individual script scope? I've been trying to get a real handle on the internals of IronRuby... I'll probably need to dive into the source soon :) Best regards, Martin From Jimmy.Schementi at microsoft.com Tue Sep 1 15:39:38 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 1 Sep 2009 19:39:38 +0000 Subject: [Ironruby-core] Guidance on embedding scripting in my Application In-Reply-To: <21192f970909011136j107aa51eieb4eddb6aec5745b@mail.gmail.com> References: <21192f970909011136j107aa51eieb4eddb6aec5745b@mail.gmail.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC19BFBDF0@tk5ex14mbxc105.redmond.corp.microsoft.com> Martin Smith wrote: > I'm looking (as you can see in my subject line) for a little guidance on the best > way to embed IronRuby into my Application.? I've already successfully > embedded ruby into the application, so these questions are more about the > nitty gritty details of embedding.? The application is mostly written in C# and > occasionally calls out to ruby to create UI components that are placed on > other UI components themselves created in either C# or ruby.? Generally, > but not always, the C# code will need to call into ruby to do the initialization. > > I can think of a few ways to do this: > (1) At app startup spawn up a RubyEngine, execute a file that "warms up" the > engine and "requires" all or most of the ruby files that contain the classes > that will create the UI components > (2)?At app startup create a new RubyEngine and do nothing. Then, as > needed, issue commands to the runtime with a ScriptScope that require and > initialize UI components. > (3) Every time I need to execute new ruby code, create a new engine. Depends on what performance characteristics you want :) The DLR's isolation mechanism is a "ScriptRuntime", and actually only creates one ScriptEngine per language per ScriptRuntime. So you're option #3 would create a new ScriptRuntime to get any type of isolation between ruby-code executions. Option #1 and #2 are really no different, other than that #1 will be warmed up and just compile the code you give it, which #2 will have to compile dependencies. > Really, I'm mostly thinking about 1 vs 2. Are class definitions "shared" > between script scopes? More specifically, if I require the same file twice in > different script scopes will they point to the same code or will the runtime > need to recompile and re-jit the code for each individual script scope? Ruby constants, which includes classes and modules, are essentially globals, so they are stored on the global scope, which means they are accessible anywhere, especially between scopes. ScriptScope only isolates top-level locals and methods. From sanxiyn at gmail.com Tue Sep 1 21:18:04 2009 From: sanxiyn at gmail.com (Seo Sanghyeon) Date: Wed, 2 Sep 2009 10:18:04 +0900 Subject: [Ironruby-core] IronRuby and LessCss Message-ID: <5b0248170909011818w6cbc170akb597dba6303662f5@mail.gmail.com> LessCss extends CSS with variables, arithmetic operators, nested rules and other neat stuffs. There is a compiler written in Ruby which turns this "better CSS" to CSS browsers can understand. http://lesscss.org/ This is a blog post discussing using LessCss through IronRuby in ASP.NET. I didn't see discussion about this on the list, but I think there should be, as he goes on to some pain points he experienced. http://www.tigraine.at/2009/08/24/introducing-ironlessnet-your-duct-tape-solution-to-lesscss-in-aspnet/ -- Seo Sanghyeon From Jimmy.Schementi at microsoft.com Tue Sep 1 21:31:30 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 2 Sep 2009 01:31:30 +0000 Subject: [Ironruby-core] IronRuby and LessCss In-Reply-To: <5b0248170909011818w6cbc170akb597dba6303662f5@mail.gmail.com> References: <5b0248170909011818w6cbc170akb597dba6303662f5@mail.gmail.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC19BFC1C1@tk5ex14mbxc105.redmond.corp.microsoft.com> > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Seo Sanghyeon > Sent: Tuesday, September 01, 2009 6:18 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] IronRuby and LessCss > > LessCss extends CSS with variables, arithmetic operators, nested rules and > other neat stuffs. There is a compiler written in Ruby which turns this "better > CSS" to CSS browsers can understand. > http://lesscss.org/ LessCss is pretty cool. I like Sass personally, but they both accomplish the same thing. > This is a blog post discussing using LessCss through IronRuby in ASP.NET. I > didn't see discussion about this on the list, but I think there should be, as he > goes on to some pain points he experienced. > http://www.tigraine.at/2009/08/24/introducing-ironlessnet-your-duct-tape- > solution-to-lesscss-in-aspnet/ I didn't hear anything about this either, even though I did something similar with Sass and tweeted about it (maybe too quietly): http://github.com/jschementi/orphanage/tree/master/aspnet-haml I'll weigh in on the author's pain points in a bit ... I need to actually read it. > -- > Seo Sanghyeon > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From martin.smith.jr at gmail.com Wed Sep 2 02:39:43 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Tue, 1 Sep 2009 23:39:43 -0700 Subject: [Ironruby-core] Guidance on embedding scripting in my Application In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC19BFBDF0@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <21192f970909011136j107aa51eieb4eddb6aec5745b@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC19BFBDF0@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <21192f970909012339r17ff6633xce2d4ffc05a36ef2@mail.gmail.com> Thanks Jimmy! This was quite helpful. I've actually decided to go with 1 and 2. Actually, this isn't strictly speaking true... If I'm running in debug, I recreate the runtime with every invocation so I can test/run on the fly. Thanks for your help! Best, Martin On Tue, Sep 1, 2009 at 12:39 PM, Jimmy Schementi wrote: > Martin Smith wrote: > >> I'm looking (as you can see in my subject line) for a little guidance on the best >> way to embed IronRuby into my Application.? I've already successfully >> embedded ruby into the application, so these questions are more about the >> nitty gritty details of embedding.? The application is mostly written in C# and >> occasionally calls out to ruby to create UI components that are placed on >> other UI components themselves created in either C# or ruby.? Generally, >> but not always, the C# code will need to call into ruby to do the initialization. >> >> I can think of a few ways to do this: >> (1) At app startup spawn up a RubyEngine, execute a file that "warms up" the >> engine and "requires" all or most of the ruby files that contain the classes >> that will create the UI components >> (2)?At app startup create a new RubyEngine and do nothing. ?Then, as >> needed, issue commands to the runtime with a ScriptScope that require and >> initialize UI components. >> (3) Every time I need to execute new ruby code, create a new engine. > > Depends on what performance characteristics you want :) The DLR's isolation mechanism is a "ScriptRuntime", and actually only creates one ScriptEngine per language per ScriptRuntime. So you're option #3 would create a new ScriptRuntime to get any type of isolation between ruby-code executions. Option #1 and #2 are really no different, other than that #1 will be warmed up and just compile the code you give it, which #2 will have to compile dependencies. > >> Really, I'm mostly thinking about 1 vs 2. ?Are class definitions "shared" >> between script scopes? More specifically, if I require the same file twice in >> different script scopes will they point to the same code or will the runtime >> need to recompile and re-jit the code for each individual script scope? > > Ruby constants, which includes classes and modules, are essentially globals, so they are stored on the global scope, which means they are accessible anywhere, especially between scopes. ScriptScope only isolates top-level locals and methods. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > From ivan at flanders.co.nz Wed Sep 2 03:12:58 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 2 Sep 2009 09:12:58 +0200 Subject: [Ironruby-core] Guidance on embedding scripting in my Application In-Reply-To: <21192f970909012339r17ff6633xce2d4ffc05a36ef2@mail.gmail.com> References: <21192f970909011136j107aa51eieb4eddb6aec5745b@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC19BFBDF0@tk5ex14mbxc105.redmond.corp.microsoft.com> <21192f970909012339r17ff6633xce2d4ffc05a36ef2@mail.gmail.com> Message-ID: What I did in IronrubyMVC to allow controller classes etc to be reloaded was look in the globals if a class already exists and if it does remove the constant. That way it will always reload some the class. http://github.com/casualjim/ironrubymvc/blob/79efbd0f5baf52d3fbfe8f21a0349d6343dc994b/IronRubyMvc/Core/RubyEngine.cs#L92 That being said. This a pretty naive way of forcing reloads, I'm sure there is a better way but that one works for me atm. I create scopes per request, so that would be your option #2 I guess --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 2, 2009 at 8:39 AM, Martin Smith wrote: > Thanks Jimmy! This was quite helpful. > > I've actually decided to go with 1 and 2. Actually, this isn't > strictly speaking true... If I'm running in debug, I recreate the > runtime with every invocation so I can test/run on the fly. Thanks > for your help! > > Best, > Martin > > On Tue, Sep 1, 2009 at 12:39 PM, Jimmy > Schementi wrote: > > Martin Smith wrote: > > > >> I'm looking (as you can see in my subject line) for a little guidance on > the best > >> way to embed IronRuby into my Application. I've already successfully > >> embedded ruby into the application, so these questions are more about > the > >> nitty gritty details of embedding. The application is mostly written in > C# and > >> occasionally calls out to ruby to create UI components that are placed > on > >> other UI components themselves created in either C# or ruby. Generally, > >> but not always, the C# code will need to call into ruby to do the > initialization. > >> > >> I can think of a few ways to do this: > >> (1) At app startup spawn up a RubyEngine, execute a file that "warms up" > the > >> engine and "requires" all or most of the ruby files that contain the > classes > >> that will create the UI components > >> (2) At app startup create a new RubyEngine and do nothing. Then, as > >> needed, issue commands to the runtime with a ScriptScope that require > and > >> initialize UI components. > >> (3) Every time I need to execute new ruby code, create a new engine. > > > > Depends on what performance characteristics you want :) The DLR's > isolation mechanism is a "ScriptRuntime", and actually only creates one > ScriptEngine per language per ScriptRuntime. So you're option #3 would > create a new ScriptRuntime to get any type of isolation between ruby-code > executions. Option #1 and #2 are really no different, other than that #1 > will be warmed up and just compile the code you give it, which #2 will have > to compile dependencies. > > > >> Really, I'm mostly thinking about 1 vs 2. Are class definitions > "shared" > >> between script scopes? More specifically, if I require the same file > twice in > >> different script scopes will they point to the same code or will the > runtime > >> need to recompile and re-jit the code for each individual script scope? > > > > Ruby constants, which includes classes and modules, are essentially > globals, so they are stored on the global scope, which means they are > accessible anywhere, especially between scopes. ScriptScope only isolates > top-level locals and methods. > > _______________________________________________ > > 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 martin.smith.jr at gmail.com Thu Sep 3 15:54:46 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Thu, 3 Sep 2009 12:54:46 -0700 Subject: [Ironruby-core] Time bug? Message-ID: <21192f970909031254r1d7db4d4rb02c24bfa0e5957f@mail.gmail.com> Hello, I've filed a new bug: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2217 I think that times are off by an hour when converting to/from ints: If I type this into IronRuby: >>> Time.at(1252006743) => Thu Sep 03 11:39:03 -07:00 2009 and into irb: >> Time.at(1252006743) => Thu Sep 03 12:39:03 -0700 2009 Thanks, Martin From robert.brotherus at napa.fi Fri Sep 4 03:45:45 2009 From: robert.brotherus at napa.fi (Robert Brotherus) Date: Fri, 4 Sep 2009 10:45:45 +0300 Subject: [Ironruby-core] Getting initialize called for already-constructed dotnet-classes In-Reply-To: <8E45365BECA665489F3CB8878A6C1B7D04779F@TK5EX14MBXC134.redmond.corp.microsoft.com> References: <8E45365BECA665489F3CB8878A6C1B7D04779F@TK5EX14MBXC134.redmond.corp.microsoft.com> Message-ID: <16A7DD08F0425648AB80B28A3453C40B3C3E29@NW60R2.napa.fi> I have a simple XAML that is compiled to Napa.Gui.MotifSupport.SpinBoxWidget CLR class: At IR-side, I monket-patch initialize-methods for SpinBoxWidget and one of its parts: include Napa::Gui::MotifSupport def test_initialize SpinBoxWidget.class_eval do def initialize puts "SpinBoxWidget.initialize" end end InputField.class_eval do def initialize puts "InputField.initialize" end end puts 'Creating InputField' InputField.new # Prints "InputField.initialize" puts "Creating SpinBoxWidget" s = SpinBoxWidget.new # Prints "SpinBoxWidget.initialize" but *not* "InputField.initialize" end So the InputField initialize is not executed when the InputField is created as part of the larger XAML. This is understandable, but still problem for us. Trying to call InputFields initialize afterwards fails as well with "initialize is private method" error. Our current solution is to use non-standard name "initializer" and manually execute that for all widgets and sub-widgets after construction. This does not feel very nice solution. Any other ideas out there? Robert Brotherus Napa Inc. From martin.smith.jr at gmail.com Sat Sep 5 18:53:25 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Sat, 5 Sep 2009 15:53:25 -0700 Subject: [Ironruby-core] Rails script\console Message-ID: <21192f970909051553m2ebae15er77d844bc99f6656b@mail.gmail.com> Hello, When I run ir script\console for a rails app with ironruby-0-9-0, I get the message: Loading development environment (Rails 2.3.3) And then ir shuts down. Is this an issue with the console, or a rails 2.3.3 with ironruby issue? Should I file a bug? Thanks, Martin From Jimmy.Schementi at microsoft.com Sat Sep 5 19:53:46 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sat, 5 Sep 2009 23:53:46 +0000 Subject: [Ironruby-core] Rails script\console In-Reply-To: <21192f970909051553m2ebae15er77d844bc99f6656b@mail.gmail.com> References: <21192f970909051553m2ebae15er77d844bc99f6656b@mail.gmail.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC19BFF081@tk5ex14mbxc105.redmond.corp.microsoft.com> Feel free to file a bug, but things should just work. I do remember this happening in a much older version, but I don't remember what caused it. Have you tried on the latest sources? I'll make sure the latest instructions on our website still work as expected too ... ~js ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith [martin.smith.jr at gmail.com] Sent: Saturday, September 05, 2009 3:53 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Rails script\console Hello, When I run ir script\console for a rails app with ironruby-0-9-0, I get the message: Loading development environment (Rails 2.3.3) And then ir shuts down. Is this an issue with the console, or a rails 2.3.3 with ironruby issue? Should I file a bug? Thanks, Martin _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From martin.smith.jr at gmail.com Sat Sep 5 23:02:22 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Sat, 5 Sep 2009 20:02:22 -0700 Subject: [Ironruby-core] Rails script\console In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC19BFF081@tk5ex14mbxc105.redmond.corp.microsoft.com> References: <21192f970909051553m2ebae15er77d844bc99f6656b@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC19BFF081@tk5ex14mbxc105.redmond.corp.microsoft.com> Message-ID: <21192f970909052002j638a8c72j2462116ad1daa26a@mail.gmail.com> Hi Jimmy, I''ve been doing some more digging on rails, and i haven't actually gotten anything to work. I keep getting the following error: Showing app/views/stuphs/new.html.erb where line #4 raised: Collection was modified; enumeration operation may not execute. Extracted source (around line #4): 1:

New stuph

2: 3: <% form_for(@stuph) do |f| %> 4: <%= f.error_messages %> 5: 6:

7: <%= f.submit 'Create' %> It's actually failing on the form_for(@stuff) line where @stuff is an ActiveRecord class. The (snipped) full path is: mscorlib:0:in `ThrowInvalidOperationException' mscorlib:0:in `MoveNext' :0:in `inspect' (eval):1:in `stuphs_path' :0:in `inspect' C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/polymorphic_routes.rb:116:in `polymorphic_url' C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/polymorphic_routes.rb:123:in `polymorphic_path' :0:in `inspect' C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_helper.rb:298:in `apply_form_for_options!' C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_helper.rb:277:in `form_for' C:/temp/other-test/app/views/stuphs/new.html.erb:4:in `_run_erb_app47views47stuphs47new46html46erb' C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:34:in `render' C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:301:in `with_template' C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:30:in `render' ...... actually, i looked into the rails code, but i've been digging for a couple hours now, and haven't gotten anywhere. Unfortunately, I don't seem to be able to get rails 2.3.2 working as: igem install rails -v2.3.2 fails. I appreciate the help. Thanks, Martin On Sat, Sep 5, 2009 at 4:53 PM, Jimmy Schementi wrote: > Feel free to file a bug, but things should just work. I do remember this happening in a much older version, but I don't remember what caused it. Have you tried on the latest sources? > > I'll make sure the latest instructions on our website still work as expected too ... > > ~js > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith [martin.smith.jr at gmail.com] > Sent: Saturday, September 05, 2009 3:53 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Rails script\console > > Hello, > > When I run ir script\console for a rails app with ironruby-0-9-0, I > get the message: > > Loading development environment (Rails 2.3.3) > > And then ir shuts down. ?Is this an issue with the console, or a rails > 2.3.3 with ironruby issue? ?Should I file a bug? > > Thanks, > Martin > _______________________________________________ > 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 martin.smith.jr at gmail.com Sat Sep 5 23:45:56 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Sat, 5 Sep 2009 20:45:56 -0700 Subject: [Ironruby-core] Rails script\console In-Reply-To: <21192f970909052002j638a8c72j2462116ad1daa26a@mail.gmail.com> References: <21192f970909051553m2ebae15er77d844bc99f6656b@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC19BFF081@tk5ex14mbxc105.redmond.corp.microsoft.com> <21192f970909052002j638a8c72j2462116ad1daa26a@mail.gmail.com> Message-ID: <21192f970909052045p3a859064r494dfff6888bdf87@mail.gmail.com> Hi again, It's time to put my dunce cap on... I added this to the wrong file: public :default_url_options However, I still can't get the console to work. Thanks, Martin On Sat, Sep 5, 2009 at 8:02 PM, Martin Smith wrote: > Hi Jimmy, > > I''ve been doing some more digging on rails, and i haven't actually > gotten anything to work. I keep getting the following error: > > ?Showing app/views/stuphs/new.html.erb where line #4 raised: > > Collection was modified; enumeration operation may not execute. > > Extracted source (around line #4): > > 1:

New stuph

> 2: > 3: <% form_for(@stuph) do |f| %> > 4: ? <%= f.error_messages %> > 5: > 6: ?

> 7: ? ? <%= f.submit 'Create' %> > > It's actually failing on the form_for(@stuff) line where @stuff is an > ActiveRecord class. > > The (snipped) full path is: > > mscorlib:0:in `ThrowInvalidOperationException' > mscorlib:0:in `MoveNext' > :0:in `inspect' > (eval):1:in `stuphs_path' > :0:in `inspect' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/polymorphic_routes.rb:116:in > `polymorphic_url' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/polymorphic_routes.rb:123:in > `polymorphic_path' > :0:in `inspect' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_helper.rb:298:in > `apply_form_for_options!' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_helper.rb:277:in > `form_for' > C:/temp/other-test/app/views/stuphs/new.html.erb:4:in > `_run_erb_app47views47stuphs47new46html46erb' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:34:in > `render' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:301:in > `with_template' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:30:in > `render' > ...... > > actually, i looked into the rails code, but i've been digging for a > couple hours now, and haven't gotten anywhere. > > Unfortunately, I don't seem to be able to get rails 2.3.2 working as: > igem install rails -v2.3.2 > > fails. > > I appreciate the help. > > Thanks, > Martin > > On Sat, Sep 5, 2009 at 4:53 PM, Jimmy > Schementi wrote: >> Feel free to file a bug, but things should just work. I do remember this happening in a much older version, but I don't remember what caused it. Have you tried on the latest sources? >> >> I'll make sure the latest instructions on our website still work as expected too ... >> >> ~js >> ________________________________________ >> From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith [martin.smith.jr at gmail.com] >> Sent: Saturday, September 05, 2009 3:53 PM >> To: ironruby-core at rubyforge.org >> Subject: [Ironruby-core] Rails script\console >> >> Hello, >> >> When I run ir script\console for a rails app with ironruby-0-9-0, I >> get the message: >> >> Loading development environment (Rails 2.3.3) >> >> And then ir shuts down. ?Is this an issue with the console, or a rails >> 2.3.3 with ironruby issue? ?Should I file a bug? >> >> Thanks, >> Martin >> _______________________________________________ >> 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 martin.smith.jr at gmail.com Thu Sep 10 17:38:47 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Thu, 10 Sep 2009 14:38:47 -0700 Subject: [Ironruby-core] Profiling IronRuby Message-ID: <21192f970909101438k1bb8c77cwfca135d64ab020b1@mail.gmail.com> Hello, Does anybody have any suggestions for profiling ruby code? I've been trying to use Profiler__ , but have been running into problems because it basically ignores any C# method invocations. I'll find out that all my ruby-only code runs quite fast and it's slow where it's calling C#(.NET) code. Is there any good way of hunting that down? I've also tried looking for any information about Clr.profiler as well, but I'm not sure what that's for. Thanks, Martin From martin.smith.jr at gmail.com Fri Sep 11 03:41:53 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Fri, 11 Sep 2009 00:41:53 -0700 Subject: [Ironruby-core] IronRuby Rack IIS6 TOPLEVEL_BINDING Message-ID: <21192f970909110041h271355fdr32bd8895a031cb07@mail.gmail.com> Hi, This is just a public service announcement. If you're trying to run Rails on IIS6, you'll need to require 'hacks' at the top of your config.ru file. Here's mine: ------------------- config.ru ----------------------- require 'hacks' # required to avoid the ERB::TOPLEVEL_BINDING error. require "config/environment" use Rails::Rack::LogTailer use Rails::Rack::Static run ActionController::Dispatcher.new -------------------- end ------------------------------ Hope this helps, Martin From martin.smith.jr at gmail.com Sat Sep 12 05:58:48 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Sat, 12 Sep 2009 02:58:48 -0700 Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup Message-ID: <21192f970909120258m49fede16r27623ef7b7f1d648@mail.gmail.com> Hello, I wanted to let you know I was having all sorts of troubles getting Rails to start reliably running on IIS6 (though I don't think IIS6 has anything to do with it) and I had to increase the script timeout for the very first load of the application. I changed HttpHandler to the one i've included below. I think the locking is right, but has the side effect of possibly a few of the early scripts getting a longer timeout than expected. That's probably ok, but I'm not sure it's an "enterprise ready" solution. What do you guys think? Source included below. Thanks, Martin --------------- begin -------------------- internal sealed class HttpHandler : IHttpHandler { private readonly Stopwatch _watch = new Stopwatch(); private static bool _isFirstRequest = true; // added this public bool IsReusable { get { return true; } } public void ProcessRequest(HttpContext context) { lock (this) { if (_isFirstRequest) // added this if block { context.Server.ScriptTimeout = 600; _isFirstRequest = false; } Utils.Log(""); Utils.Log("=== Request started at " + DateTime.Now.ToString()); _watch.Reset(); _watch.Start(); Handler.IIS.Current.Handle(new Request(new HttpRequestWrapper(context.Request)), new Response(new HttpResponseWrapper(context.Response))); _watch.Stop(); Utils.Log(">>> Request finished (" + _watch.ElapsedMilliseconds.ToString() + "ms)"); } } } ------------- end -------------------------- From jdeville at microsoft.com Sun Sep 13 03:31:17 2009 From: jdeville at microsoft.com (Jim Deville) Date: Sun, 13 Sep 2009 07:31:17 +0000 Subject: [Ironruby-core] Profiling IronRuby In-Reply-To: <21192f970909101438k1bb8c77cwfca135d64ab020b1@mail.gmail.com> References: <21192f970909101438k1bb8c77cwfca135d64ab020b1@mail.gmail.com> Message-ID: Tomas should be able to help with this. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith Sent: Thursday, September 10, 2009 2:39 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Profiling IronRuby Hello, Does anybody have any suggestions for profiling ruby code? I've been trying to use Profiler__ , but have been running into problems because it basically ignores any C# method invocations. I'll find out that all my ruby-only code runs quite fast and it's slow where it's calling C#(.NET) code. Is there any good way of hunting that down? I've also tried looking for any information about Clr.profiler as well, but I'm not sure what that's for. Thanks, Martin _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Sun Sep 13 12:37:20 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Sun, 13 Sep 2009 16:37:20 +0000 Subject: [Ironruby-core] Profiling IronRuby In-Reply-To: References: <21192f970909101438k1bb8c77cwfca135d64ab020b1@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C024A7EC2@TK5EX14MBXC129.redmond.corp.microsoft.com> You can use Visual Studio Profiler (see http://www.microsoft.com/downloads/details.aspx?familyid=fd02c7d6-5306-41f2-a1be-b7dcb74c9c0b&displaylang=en, http://blogs.msdn.com/profiler/, http://msdn.microsoft.com/en-us/teamsystem/aa718868.aspx) to look at C# methods. You can also run "ir.exe -profile" to get inclusive times for Ruby methods. This command creates profile.log file in the current directory containing the results. We haven't tested this command much so you may find some issues with it. Use NGen'd release build of IronRuby. If you run into any issues let us know. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Sunday, September 13, 2009 12:31 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Profiling IronRuby Tomas should be able to help with this. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith Sent: Thursday, September 10, 2009 2:39 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Profiling IronRuby Hello, Does anybody have any suggestions for profiling ruby code? I've been trying to use Profiler__ , but have been running into problems because it basically ignores any C# method invocations. I'll find out that all my ruby-only code runs quite fast and it's slow where it's calling C#(.NET) code. Is there any good way of hunting that down? I've also tried looking for any information about Clr.profiler as well, but I'm not sure what that's for. Thanks, Martin _______________________________________________ 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 lists at ruby-forum.com Sun Sep 13 18:03:34 2009 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 14 Sep 2009 00:03:34 +0200 Subject: [Ironruby-core] IronRuby VS Project Messed up my Visual Studio Message-ID: Hi, I tried to build the IronRuby project and it gave the following error while opening the project. visual C# 2008 compiler could not be created. I tried to reset the settings but it did not work! Any ideas?? -- Posted via http://www.ruby-forum.com/. From Jimmy.Schementi at microsoft.com Sun Sep 13 19:15:18 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Sun, 13 Sep 2009 23:15:18 +0000 Subject: [Ironruby-core] IronRuby VS Project Messed up my Visual Studio In-Reply-To: References: Message-ID: <0DCE8685-CB58-4CE1-BEF3-043687EB95BA@microsoft.com> Strange indeed. Can you provide more details about what you did to cause this error? what solution file did you open? What version of vs do you have. Things like that ... Does it not build from the command line either? Run Merlin/main/ languages/ruby/scripts/dev.bat from cmd.exe, and then run "brbd" to build ironruby. You might want to re-download the sources, because maybe one of the projects got corrupted while downloading? Seems unlikely, but without more info I'm just pulling stuff out of the air. Opening a sln or csproj file should not change any VS settings, so I'm also not sure why VS isn't working anymore. More info may be helpful. ~Jimmy On Sep 13, 2009, at 3:20 PM, "Mohammad Azam" wrote: > Hi, > > I tried to build the IronRuby project and it gave the following error > while opening the project. > > > visual C# 2008 compiler could not be created. > > I tried to reset the settings but it did not work! > > Any ideas?? > -- > 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 Sun Sep 13 22:35:06 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Mon, 14 Sep 2009 02:35:06 +0000 Subject: [Ironruby-core] IronRuby VS Project Messed up my Visual Studio In-Reply-To: <0DCE8685-CB58-4CE1-BEF3-043687EB95BA@microsoft.com> References: <0DCE8685-CB58-4CE1-BEF3-043687EB95BA@microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C024AC64D@TK5EX14MBXC122.redmond.corp.microsoft.com> Do you have VS 2008 SP1, Pro or Team edition? Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Sunday, September 13, 2009 4:15 PM To: Subject: Re: [Ironruby-core] IronRuby VS Project Messed up my Visual Studio Strange indeed. Can you provide more details about what you did to cause this error? what solution file did you open? What version of vs do you have. Things like that ... Does it not build from the command line either? Run Merlin/main/ languages/ruby/scripts/dev.bat from cmd.exe, and then run "brbd" to build ironruby. You might want to re-download the sources, because maybe one of the projects got corrupted while downloading? Seems unlikely, but without more info I'm just pulling stuff out of the air. Opening a sln or csproj file should not change any VS settings, so I'm also not sure why VS isn't working anymore. More info may be helpful. ~Jimmy On Sep 13, 2009, at 3:20 PM, "Mohammad Azam" wrote: > Hi, > > I tried to build the IronRuby project and it gave the following error > while opening the project. > > > visual C# 2008 compiler could not be created. > > I tried to reset the settings but it did not work! > > Any ideas?? > -- > 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 greg.hauptmann.ruby at gmail.com Mon Sep 14 17:01:56 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Tue, 15 Sep 2009 07:01:56 +1000 Subject: [Ironruby-core] whats the best way to package deploy a Ruby app to windows??? (no UI, also standalone if possible) Message-ID: Hi, Whats the best way to package deploy a Ruby app to windows??? (no UI, also standalone if possible) Does ironruby help out here? (I'm guess no, and that ironruby would be more for if you wanted to hook into the .net classes?) In other words a tools I can create a normal windows installation package, or self extracting package, so that non-techo's who get the installation can run it in seemlessly. Would need to be stand alone (i.e. no requirement for them to have installed Ruby themselves). Thanks From greg.hauptmann.ruby at gmail.com Mon Sep 14 17:04:26 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Tue, 15 Sep 2009 07:04:26 +1000 Subject: [Ironruby-core] does Visual Studio Express support ironruby Message-ID: Hi, Does visual studio express support ironruby? (i.e. you don't require a higher paid edition of visual studio do you) -- Greg http://blog.gregnet.org/ From Jimmy.Schementi at microsoft.com Mon Sep 14 17:42:34 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 14 Sep 2009 21:42:34 +0000 Subject: [Ironruby-core] does Visual Studio Express support ironruby In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EE69DF5@tk5ex14mbxc106.redmond.corp.microsoft.com> Actually, NO version of Visual Studio supports IronRuby today. Please vote for IronRuby support in Visual Studio 2010 here: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=479957. ~js > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Greg Hauptmann > Sent: Monday, September 14, 2009 2:04 PM > To: ironruby-core > Subject: [Ironruby-core] does Visual Studio Express support ironruby > > Hi, > > Does visual studio express support ironruby? (i.e. you don't require a higher > paid edition of visual studio do you) > > > > -- > Greg > http://blog.gregnet.org/ > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From Jimmy.Schementi at microsoft.com Mon Sep 14 17:46:18 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 14 Sep 2009 21:46:18 +0000 Subject: [Ironruby-core] whats the best way to package deploy a Ruby app to windows??? (no UI, also standalone if possible) In-Reply-To: References: Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EE69E14@tk5ex14mbxc106.redmond.corp.microsoft.com> Both IronRuby and Ruby are fairly stand-alone, so an installer could just put the necessary DLLs, exe, and any needed libraries/gems into the installation directory, along with the application being installed. The One-Click installer gives you a bunch of other stuff, but all you should need for Ruby is here: ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.7-p72-i386-mswin32.zip. And IronRuby's latest release is here: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30914#DownloadId=77408. ~Jimmy > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Greg Hauptmann > Sent: Monday, September 14, 2009 2:02 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] whats the best way to package deploy a Ruby app to > windows??? (no UI, also standalone if possible) > > Hi, > > Whats the best way to package deploy a Ruby app to windows??? (no UI, > also standalone if possible) Does ironruby help out here? (I'm > guess no, and that ironruby would be more for if you wanted to hook into > the .net classes?) > > In other words a tools I can create a normal windows installation package, or > self extracting package, so that non-techo's who get the installation can run it > in seemlessly. Would need to be stand alone (i.e. no requirement for them > to have installed Ruby themselves). > > Thanks > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core From martin.smith.jr at gmail.com Tue Sep 15 13:42:16 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Tue, 15 Sep 2009 10:42:16 -0700 Subject: [Ironruby-core] Profiling IronRuby In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C024A7EC2@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <21192f970909101438k1bb8c77cwfca135d64ab020b1@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C024A7EC2@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <21192f970909151042y60b44fa9gbaed5db6ba4968b1@mail.gmail.com> Hi Tomas, Thanks for your response. I'm actually embedding IronRuby ta add scripting to my application. I've tried creating the engine this way: _Engine = Ruby.CreateEngine(x => { x.Options["EnableTracing"] = ScriptingRuntimeHelpers.True; x.Options["Profile"] = ScriptingRuntimeHelpers.True; }); For some reason, it doesn't seem to be giving me any information about the CLR profile. The problem with using the Visual Studio Profiler for us is that (and I'm assuming here) it wont step into the ruby code. Thanks again for your help, Martin On Sun, Sep 13, 2009 at 9:37 AM, Tomas Matousek wrote: > You can use Visual Studio Profiler (see http://www.microsoft.com/downloads/details.aspx?familyid=fd02c7d6-5306-41f2-a1be-b7dcb74c9c0b&displaylang=en, http://blogs.msdn.com/profiler/, http://msdn.microsoft.com/en-us/teamsystem/aa718868.aspx) to look at C# methods. > You can also run "ir.exe -profile" to get inclusive times for Ruby methods. This command creates profile.log file in the current directory containing the results. We haven't tested this command much so you may find some issues with it. > Use NGen'd ?release build of IronRuby. > If you run into any issues let us know. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Sunday, September 13, 2009 12:31 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Profiling IronRuby > > Tomas should be able to help with this. > > JD > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith > Sent: Thursday, September 10, 2009 2:39 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Profiling IronRuby > > Hello, > > Does anybody have any suggestions for profiling ruby code? ?I've been trying to use Profiler__ , but have been running into problems because it basically ignores any C# method invocations. ?I'll find out that all my ruby-only code runs quite fast and it's slow where it's calling > C#(.NET) code. ?Is there any good way of hunting that down? > > I've also tried looking for any information about Clr.profiler as well, but I'm not sure what that's for. > > Thanks, > Martin > _______________________________________________ > 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 Tue Sep 15 14:05:56 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 15 Sep 2009 18:05:56 +0000 Subject: [Ironruby-core] Profiling IronRuby In-Reply-To: <21192f970909151042y60b44fa9gbaed5db6ba4968b1@mail.gmail.com> References: <21192f970909101438k1bb8c77cwfca135d64ab020b1@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C024A7EC2@TK5EX14MBXC129.redmond.corp.microsoft.com> <21192f970909151042y60b44fa9gbaed5db6ba4968b1@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C024C2F6B@TK5EX14MBXC122.redmond.corp.microsoft.com> I see. There is currently no remedy for this. You can separately get numbers for all C# methods (including those called from Ruby code) using VS profiler and for Ruby methods using "Profile" option. But there is currently no tool that would get you both into the same report. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith Sent: Tuesday, September 15, 2009 10:42 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Profiling IronRuby Hi Tomas, Thanks for your response. I'm actually embedding IronRuby ta add scripting to my application. I've tried creating the engine this way: _Engine = Ruby.CreateEngine(x => { x.Options["EnableTracing"] = ScriptingRuntimeHelpers.True; x.Options["Profile"] = ScriptingRuntimeHelpers.True; }); For some reason, it doesn't seem to be giving me any information about the CLR profile. The problem with using the Visual Studio Profiler for us is that (and I'm assuming here) it wont step into the ruby code. Thanks again for your help, Martin On Sun, Sep 13, 2009 at 9:37 AM, Tomas Matousek wrote: > You can use Visual Studio Profiler (see http://www.microsoft.com/downloads/details.aspx?familyid=fd02c7d6-5306-41f2-a1be-b7dcb74c9c0b&displaylang=en, http://blogs.msdn.com/profiler/, http://msdn.microsoft.com/en-us/teamsystem/aa718868.aspx) to look at C# methods. > You can also run "ir.exe -profile" to get inclusive times for Ruby methods. This command creates profile.log file in the current directory containing the results. We haven't tested this command much so you may find some issues with it. > Use NGen'd ?release build of IronRuby. > If you run into any issues let us know. > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville > Sent: Sunday, September 13, 2009 12:31 AM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Profiling IronRuby > > Tomas should be able to help with this. > > JD > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith > Sent: Thursday, September 10, 2009 2:39 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] Profiling IronRuby > > Hello, > > Does anybody have any suggestions for profiling ruby code? ?I've been > trying to use Profiler__ , but have been running into problems because > it basically ignores any C# method invocations. ?I'll find out that > all my ruby-only code runs quite fast and it's slow where it's calling > C#(.NET) code. ?Is there any good way of hunting that down? > > I've also tried looking for any information about Clr.profiler as well, but I'm not sure what that's for. > > Thanks, > Martin > _______________________________________________ > 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 lists at ruby-forum.com Tue Sep 15 23:59:10 2009 From: lists at ruby-forum.com (Mohammad Azam) Date: Wed, 16 Sep 2009 05:59:10 +0200 Subject: [Ironruby-core] Installing Spec on IronRuby 0.9 Message-ID: Hi, I am having trouble install spec on my machine. I was able to download spec using igem in IronRuby 0.6 but in 0.9 it is giving problems. First, where is igem file. Even if I am in the directory of igem.bat it gives me error: 2 Dir(s) 119,577,133,056 bytes free C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>igem instal l spec '"C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin\ir.exe"' is not recognized as an internal or external command, operable program or batch file. C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin> I have put environment variable in windows as: C:\DevTools\IronRuby\ironruby\Merlin\Main\bin\Debug Thanks, Azam -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Sep 16 00:26:47 2009 From: lists at ruby-forum.com (Mohammad Azam) Date: Wed, 16 Sep 2009 06:26:47 +0200 Subject: [Ironruby-core] Change to how igem, irdoc, and iri work (stuff in Merlin In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC18AFB5E3@tk5ex14mbxc106.redmond.corp.microsoft.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC18AFB5E3@tk5ex14mbxc106.redmond.corp.microsoft.com> Message-ID: <73cbb791ef73030a4de1e7841937d0dd@ruby-forum.com> I ran dev.bat and nothing happened. No paths were created in windows environment. -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Sep 16 00:33:36 2009 From: lists at ruby-forum.com (Mohammad Azam) Date: Wed, 16 Sep 2009 06:33:36 +0200 Subject: [Ironruby-core] Installing Spec on IronRuby 0.9 In-Reply-To: References: Message-ID: <67914bad1684ec51e55863c575860ec4@ruby-forum.com> I think I got it to download the gem. IronRuby is changing fast and it is hard to keep up. Here is the command: ir.exe igem install rspec -- Posted via http://www.ruby-forum.com/. From Shri.Borde at microsoft.com Wed Sep 16 02:56:32 2009 From: Shri.Borde at microsoft.com (Shri Borde) Date: Wed, 16 Sep 2009 06:56:32 +0000 Subject: [Ironruby-core] Change to how igem, irdoc, and iri work (stuff in Merlin In-Reply-To: <73cbb791ef73030a4de1e7841937d0dd@ruby-forum.com> References: <0047ECBFA2E0DF4A834AA369282A5AFC18AFB5E3@tk5ex14mbxc106.redmond.corp.microsoft.com>, <73cbb791ef73030a4de1e7841937d0dd@ruby-forum.com> Message-ID: <8E45365BECA665489F3CB8878A6C1B7D09F569@TK5EX14MBXC134.redmond.corp.microsoft.com> Can you provide a full log of your Command Prompt session? Is the %PATH% environment variable not updated after running dev.bat? Is %MERLIN_ROOT% not set? igem.bat etc check if %MERLIN_ROOT% is set. If so, they expect ir.exe to have been built from source by running "brbd". If not, they expect it to be an unzipped binary drop with ir.exe in the bin folder. The batch files are pretty trivial, so you should be able to debug any problems you run into without too much difficulty. When did you last pull from GIT? ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [lists at ruby-forum.com] Sent: Tuesday, September 15, 2009 9:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Change to how igem, irdoc, and iri work (stuff in Merlin I ran dev.bat and nothing happened. No paths were created in windows environment. -- 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 Wed Sep 16 22:40:09 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 17 Sep 2009 02:40:09 +0000 Subject: [Ironruby-core] Installing Spec on IronRuby 0.9 In-Reply-To: References: Message-ID: It looks like you don't have %MERLIN_ROOT% set. In this example, %MERLIN_ROOT% should be set to c:\DevTools\IronRuby\ironruby\Merlin\Main. Setting the path won't work because igem.bat uses %~dp0 which is the directory that igem.bat lives in. The other option is to copy the contents of Merlin\Main\Languages\Ruby\Scripts\bin into Merlin\Main\bin\Debug. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Tuesday, September 15, 2009 8:59 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Installing Spec on IronRuby 0.9 Hi, I am having trouble install spec on my machine. I was able to download spec using igem in IronRuby 0.6 but in 0.9 it is giving problems. First, where is igem file. Even if I am in the directory of igem.bat it gives me error: 2 Dir(s) 119,577,133,056 bytes free C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>igem instal l spec '"C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin\ir.exe"' is not recognized as an internal or external command, operable program or batch file. C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin> I have put environment variable in windows as: C:\DevTools\IronRuby\ironruby\Merlin\Main\bin\Debug Thanks, Azam -- 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 Thu Sep 17 15:23:21 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 17 Sep 2009 21:23:21 +0200 Subject: [Ironruby-core] Pull In-Reply-To: References: Message-ID: Something went wrong I guess: (in C:/dev/ironruby) Utils\Action.cs(422,33): error CS1031: Type expected Utils\Action.cs(448,33): error CS1031: Type expected Utils\Action.cs(476,33): error CS1031: Type expected Utils\Action.cs(506,33): error CS1031: Type expected Utils\Action.cs(538,33): error CS1031: Type expected Utils\Action.cs(572,33): error CS1031: Type expected Utils\Action.cs(608,33): error CS1031: Type expected Utils\Action.cs(646,33): error CS1031: Type expected Utils\Action.cs(448,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(476,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(506,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(538,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(572,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(608,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(646,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Function.cs(464,34): error CS1031: Type expected Utils\Function.cs(492,34): error CS1031: Type expected Utils\Function.cs(522,34): error CS1031: Type expected Utils\Function.cs(554,34): error CS1031: Type expected Utils\Function.cs(588,34): error CS1031: Type expected Utils\Function.cs(624,34): error CS1031: Type expected Utils\Function.cs(662,34): error CS1031: Type expected Utils\Function.cs(702,34): error CS1031: Type expected Utils\Function.cs(492,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(522,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(554,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(588,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(624,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(662,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(702,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Sep 17, 2009 at 8:47 PM, Jim Deville wrote: > I?ve pushed the latest. Please re-sync, push to your remote, and let me > know. If you need a code review, send it out and we?ll get that done too. > > > > JD > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Thursday, September 17, 2009 10:54 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] Pull > > > > Hi folks, > > > > Remember that pull I was going to do last week? Well, I?m ready to do it. I > was out sick for a few days, and then we had some project changes here in > some of the DLR assemblies that left me in an un-pushable state for a few > days. I?ll be pushing shortly, and I need anyone who is ready for a pull to > sync up to master and let me know when they are ready. I have the following > people slated to pull, so I need them to sync up (at the least): > > > > ? Myself > > ? Tim Chen > > ? Shri Borde > > > > If anyone else is ready, please let me know. I?d like to get this pull done > this afternoon, so if you have a chance to sync up real quick I?d appreciate > it. If all else fails, I?ll do the pull first thing tomorrow. > > > > Thanks, > > JD > > > > PS: I?ll reply to this thread when I have pushed and am ready for people to > start syncing. > > _______________________________________________ > 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 Sep 17 15:26:47 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 17 Sep 2009 21:26:47 +0200 Subject: [Ironruby-core] Pull In-Reply-To: References: Message-ID: It works when I build with visual studio --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Sep 17, 2009 at 8:47 PM, Jim Deville wrote: > I?ve pushed the latest. Please re-sync, push to your remote, and let me > know. If you need a code review, send it out and we?ll get that done too. > > > > JD > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville > *Sent:* Thursday, September 17, 2009 10:54 AM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] Pull > > > > Hi folks, > > > > Remember that pull I was going to do last week? Well, I?m ready to do it. I > was out sick for a few days, and then we had some project changes here in > some of the DLR assemblies that left me in an un-pushable state for a few > days. I?ll be pushing shortly, and I need anyone who is ready for a pull to > sync up to master and let me know when they are ready. I have the following > people slated to pull, so I need them to sync up (at the least): > > > > ? Myself > > ? Tim Chen > > ? Shri Borde > > > > If anyone else is ready, please let me know. I?d like to get this pull done > this afternoon, so if you have a chance to sync up real quick I?d appreciate > it. If all else fails, I?ll do the pull first thing tomorrow. > > > > Thanks, > > JD > > > > PS: I?ll reply to this thread when I have pushed and am ready for people to > start syncing. > > _______________________________________________ > 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 Thu Sep 17 15:29:34 2009 From: curth at microsoft.com (Curt Hagenlocher) Date: Thu, 17 Sep 2009 19:29:34 +0000 Subject: [Ironruby-core] Pull In-Reply-To: References: Message-ID: <9DBDB52016D6F34AABBACF6C2876EA2803B765@TK5EX14MBXC137.redmond.corp.microsoft.com> It looks like the symbol CLR2 hasn?t been defined. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, September 17, 2009 12:23 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Pull Something went wrong I guess: (in C:/dev/ironruby) Utils\Action.cs(422,33): error CS1031: Type expected Utils\Action.cs(448,33): error CS1031: Type expected Utils\Action.cs(476,33): error CS1031: Type expected Utils\Action.cs(506,33): error CS1031: Type expected Utils\Action.cs(538,33): error CS1031: Type expected Utils\Action.cs(572,33): error CS1031: Type expected Utils\Action.cs(608,33): error CS1031: Type expected Utils\Action.cs(646,33): error CS1031: Type expected Utils\Action.cs(448,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(476,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(506,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(538,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(572,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(608,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(646,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Function.cs(464,34): error CS1031: Type expected Utils\Function.cs(492,34): error CS1031: Type expected Utils\Function.cs(522,34): error CS1031: Type expected Utils\Function.cs(554,34): error CS1031: Type expected Utils\Function.cs(588,34): error CS1031: Type expected Utils\Function.cs(624,34): error CS1031: Type expected Utils\Function.cs(662,34): error CS1031: Type expected Utils\Function.cs(702,34): error CS1031: Type expected Utils\Function.cs(492,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(522,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(554,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(588,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(624,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(662,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(702,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Sep 17, 2009 at 8:47 PM, Jim Deville > wrote: I?ve pushed the latest. Please re-sync, push to your remote, and let me know. If you need a code review, send it out and we?ll get that done too. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, September 17, 2009 10:54 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Pull Hi folks, Remember that pull I was going to do last week? Well, I?m ready to do it. I was out sick for a few days, and then we had some project changes here in some of the DLR assemblies that left me in an un-pushable state for a few days. I?ll be pushing shortly, and I need anyone who is ready for a pull to sync up to master and let me know when they are ready. I have the following people slated to pull, so I need them to sync up (at the least): ? Myself ? Tim Chen ? Shri Borde If anyone else is ready, please let me know. I?d like to get this pull done this afternoon, so if you have a chance to sync up real quick I?d appreciate it. If all else fails, I?ll do the pull first thing tomorrow. Thanks, JD PS: I?ll reply to this thread when I have pushed and am ready for people to start syncing. _______________________________________________ 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 Sep 17 15:43:26 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 17 Sep 2009 19:43:26 +0000 Subject: [Ironruby-core] Pull In-Reply-To: <9DBDB52016D6F34AABBACF6C2876EA2803B765@TK5EX14MBXC137.redmond.corp.microsoft.com> References: <9DBDB52016D6F34AABBACF6C2876EA2803B765@TK5EX14MBXC137.redmond.corp.microsoft.com> Message-ID: Oh, I forgot to mention that rake compile was broken. I hadn?t had time to investigate it. I?ll fix that and push. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Thursday, September 17, 2009 12:30 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Pull It looks like the symbol CLR2 hasn?t been defined. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, September 17, 2009 12:23 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Pull Something went wrong I guess: (in C:/dev/ironruby) Utils\Action.cs(422,33): error CS1031: Type expected Utils\Action.cs(448,33): error CS1031: Type expected Utils\Action.cs(476,33): error CS1031: Type expected Utils\Action.cs(506,33): error CS1031: Type expected Utils\Action.cs(538,33): error CS1031: Type expected Utils\Action.cs(572,33): error CS1031: Type expected Utils\Action.cs(608,33): error CS1031: Type expected Utils\Action.cs(646,33): error CS1031: Type expected Utils\Action.cs(448,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(476,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(506,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(538,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(572,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(608,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(646,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Function.cs(464,34): error CS1031: Type expected Utils\Function.cs(492,34): error CS1031: Type expected Utils\Function.cs(522,34): error CS1031: Type expected Utils\Function.cs(554,34): error CS1031: Type expected Utils\Function.cs(588,34): error CS1031: Type expected Utils\Function.cs(624,34): error CS1031: Type expected Utils\Function.cs(662,34): error CS1031: Type expected Utils\Function.cs(702,34): error CS1031: Type expected Utils\Function.cs(492,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(522,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(554,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(588,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(624,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(662,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(702,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Sep 17, 2009 at 8:47 PM, Jim Deville > wrote: I?ve pushed the latest. Please re-sync, push to your remote, and let me know. If you need a code review, send it out and we?ll get that done too. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, September 17, 2009 10:54 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Pull Hi folks, Remember that pull I was going to do last week? Well, I?m ready to do it. I was out sick for a few days, and then we had some project changes here in some of the DLR assemblies that left me in an un-pushable state for a few days. I?ll be pushing shortly, and I need anyone who is ready for a pull to sync up to master and let me know when they are ready. I have the following people slated to pull, so I need them to sync up (at the least): ? Myself ? Tim Chen ? Shri Borde If anyone else is ready, please let me know. I?d like to get this pull done this afternoon, so if you have a chance to sync up real quick I?d appreciate it. If all else fails, I?ll do the pull first thing tomorrow. Thanks, JD PS: I?ll reply to this thread when I have pushed and am ready for people to start syncing. _______________________________________________ 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 Sep 17 16:27:51 2009 From: jdeville at microsoft.com (Jim Deville) Date: Thu, 17 Sep 2009 20:27:51 +0000 Subject: [Ironruby-core] Pull In-Reply-To: References: <9DBDB52016D6F34AABBACF6C2876EA2803B765@TK5EX14MBXC137.redmond.corp.microsoft.com> Message-ID: Fixed. Sorry about that. For some reason I thought that since irtests was working, all was fine. I forgot about the mono folks who can?t use irtests currently. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, September 17, 2009 12:43 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Pull Oh, I forgot to mention that rake compile was broken. I hadn?t had time to investigate it. I?ll fix that and push. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Curt Hagenlocher Sent: Thursday, September 17, 2009 12:30 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Pull It looks like the symbol CLR2 hasn?t been defined. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Thursday, September 17, 2009 12:23 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Pull Something went wrong I guess: (in C:/dev/ironruby) Utils\Action.cs(422,33): error CS1031: Type expected Utils\Action.cs(448,33): error CS1031: Type expected Utils\Action.cs(476,33): error CS1031: Type expected Utils\Action.cs(506,33): error CS1031: Type expected Utils\Action.cs(538,33): error CS1031: Type expected Utils\Action.cs(572,33): error CS1031: Type expected Utils\Action.cs(608,33): error CS1031: Type expected Utils\Action.cs(646,33): error CS1031: Type expected Utils\Action.cs(448,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(476,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(506,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(538,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(572,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(608,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Action.cs(646,26): error CS0101: The namespace 'System' already contains a definition for 'Action' Utils\Action.cs(422,26): (Location of symbol related to previous error) Utils\Function.cs(464,34): error CS1031: Type expected Utils\Function.cs(492,34): error CS1031: Type expected Utils\Function.cs(522,34): error CS1031: Type expected Utils\Function.cs(554,34): error CS1031: Type expected Utils\Function.cs(588,34): error CS1031: Type expected Utils\Function.cs(624,34): error CS1031: Type expected Utils\Function.cs(662,34): error CS1031: Type expected Utils\Function.cs(702,34): error CS1031: Type expected Utils\Function.cs(492,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(522,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(554,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(588,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(624,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(662,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) Utils\Function.cs(702,29): error CS0101: The namespace 'System' already contains a definition for 'Func' Utils\Function.cs(464,29): (Location of symbol related to previous error) --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Thu, Sep 17, 2009 at 8:47 PM, Jim Deville > wrote: I?ve pushed the latest. Please re-sync, push to your remote, and let me know. If you need a code review, send it out and we?ll get that done too. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Thursday, September 17, 2009 10:54 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Pull Hi folks, Remember that pull I was going to do last week? Well, I?m ready to do it. I was out sick for a few days, and then we had some project changes here in some of the DLR assemblies that left me in an un-pushable state for a few days. I?ll be pushing shortly, and I need anyone who is ready for a pull to sync up to master and let me know when they are ready. I have the following people slated to pull, so I need them to sync up (at the least): ? Myself ? Tim Chen ? Shri Borde If anyone else is ready, please let me know. I?d like to get this pull done this afternoon, so if you have a chance to sync up real quick I?d appreciate it. If all else fails, I?ll do the pull first thing tomorrow. Thanks, JD PS: I?ll reply to this thread when I have pushed and am ready for people to start syncing. _______________________________________________ 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 xerxesb at gmail.com Thu Sep 17 19:49:06 2009 From: xerxesb at gmail.com (Xerxes Battiwalla) Date: Fri, 18 Sep 2009 09:49:06 +1000 Subject: [Ironruby-core] Piping input from Kernel::open throws NotImplementedError Message-ID: Hi there, I'm trying to get the AutoTest/AutoSpec script for Cucumber to work under IronRuby. The cucumber_mixin.rb file (line 82) in Cucumber tries to pipe input from a call to Kernel::open, and IR throws a NotImplementedException when this line is hit. This is easily reproducible under iirb if you execute: open("| c:/windows/system32/notepad.exe") Is this something on your radar to be fixed soon? Many thanks, Xerxes. From Jimmy.Schementi at microsoft.com Fri Sep 18 16:34:18 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Fri, 18 Sep 2009 20:34:18 +0000 Subject: [Ironruby-core] [Spec and Code Review] Python and Ruby in HTML script-tags Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EE701BF@tk5ex14mbxc106.redmond.corp.microsoft.com> The write-up of "Bringing just-text back to Silverlight" is?available?at the link below, and I'll take any feedback on it. http://jimmy.schementi.com/silverlight/sl-back-to-just-text.pdf The implementation of the write-up is almost feature-complete, and I have hosted some pretty samples written by the Gestalt team here, so you can see the implementation in action (disclaimer, currently only tested in Firefox, some samples are known to not work in IE or CRASH Chrome =P ... I'm sure all my fault though): http://jimmy.schementi.com/silverlight/gestalt-port You can find the code in the "dev/scripttags2" branch of my IronRuby GitHub fork: http://github.com/jschementi/ironruby/commits/dev/scripttags2 Download the source code as a zip-file:?http://github.com/jschementi/ironruby/zipball/dev/scripttags2 If you find any bugs, please report them on MY FORK's Issues tab (I wanted to use GitHub's issue tracking a little ... eventually I'll move them over to CodePlex when it gets checked in): http://github.com/jschementi/ironruby/issues I'd like feedback on the code also, so feel free to code-review the commits so-far to enable this. They are in?chronological?order, so you can just click each link in order, and please leave your comments in the commit's "Comments" section at the bottom of each page. - Beginnings of "XAP-less" Silverlight application support: http://github.com/jschementi/ironruby/commit/7258169605613e4526b5273e609d0b416ee60119 - Basic script tag support: http://github.com/jschementi/ironruby/commit/c1086d9f37ba257a481e94780b1e4b940cb27dd4 - dlr.js - combination of Silverlight.js and support for DLR-specific options and adding a Silverlight control to the page automatically:? http://github.com/jschementi/ironruby/commit/f5ddf2c80e76c2b3e766e17470d2b69348cd2361 - language.config: http://github.com/jschementi/ironruby/commit/b7eccbd5a0d0e1688ce63f13d527e0370a34d962 - Remove localApplicationRoot setting from Chiron, and downloadScripts setting from Microsoft.Scripting.Silverlight: http://github.com/jschementi/ironruby/commit/2770a2ad5b11c37d5efcc0a55b1f3c45fe3c3a08 - Download languages as they are used: http://github.com/jschementi/ironruby/commit/30a55a53936c8064a720b22499b0175c1527e687 - Inline and external script-tags are now enabled for any DLR language: http://github.com/jschementi/ironruby/commit/e144cc67622a4ef930938cec6f75730c4b7dec1b - Remove margins from script-tags inline source, so white-space-sensitive languages like Python work as expected:? http://github.com/jschementi/ironruby/commit/4ac55b46a9e4fd074b3fc3a888ef787395df5e14 - XAML script tag support and gestalt samples porting: ?http://github.com/jschementi/ironruby/commit/42a252f1fdf6486a46161dddf3b86299a6a4dbc8 - Cleans up Tutorial by using new script-tag support, and enables desktop and Silverlight Tutorial tests to run with Tutorial/test.bat: ?http://github.com/jschementi/ironruby/commit/5467c428555888e3981e2a83126aa5d51196b907 - Fixes for Microsoft.Scripting.dll and Microsoft.Dynamic.dll shuffle: http://github.com/jschementi/ironruby/commit/a7dffdbdcee1a616eba71b6d5fd732adc1ed7c11 Thanks! ~Jimmy From lists at ruby-forum.com Sun Sep 20 22:57:39 2009 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Sep 2009 04:57:39 +0200 Subject: [Ironruby-core] Watir under IronRuby Error In-Reply-To: <3eb105b1fd81348e268bf08e01d53568@ruby-forum.com> References: <3eb105b1fd81348e268bf08e01d53568@ruby-forum.com> Message-ID: Can you share how you got it to work? -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Sep 21 00:15:38 2009 From: lists at ruby-forum.com (Mohammad Azam) Date: Mon, 21 Sep 2009 06:15:38 +0200 Subject: [Ironruby-core] Error when installing Watir for IronRuby Message-ID: I updated my gem for Ruby (Not IronRuby) to 1.3.5 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>ir igem -v 1.3.5 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>ir igem ins tall watir ERROR: While executing gem ... (RangeError) bignum too big to convert into Fixnum Any ideas about the above error? -- Posted via http://www.ruby-forum.com/. From ryan.riley at panesofglass.org Mon Sep 21 10:38:51 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 21 Sep 2009 09:38:51 -0500 Subject: [Ironruby-core] Installing Watir on IronRuby In-Reply-To: <3e04960909210730g3b7db6a3w84783056bbf3976c@mail.gmail.com> References: <3e04960909210730g3b7db6a3w84783056bbf3976c@mail.gmail.com> Message-ID: On Mon, Sep 21, 2009 at 9:30 AM, Mohammad Azam wrote: > Hi, > I am trying to install watir for IronRuby and trying to download this gem > but it keeps giving me the following error: > > "while executing gem... > bignum too big to convert into fixnum" > > I am using the following command: > > ir.exe igem install watir > > It seems like I have to install watir for Ruby and then use IronRuby > configurations to point to the libraries of the Ruby language. > I thought this got fixed already. Last I tried it on the latest, this was working. If you are using 0.9, I'm not sure it was fixed then. It had to do with computing hashes in a few libraries. Ryan Riley ryan.riley at panesofglass.org http://panesofglass.org/ http://wizardsofsmart.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Mon Sep 21 12:01:12 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Mon, 21 Sep 2009 19:01:12 +0300 Subject: [Ironruby-core] Manually Setting the Gems Path In-Reply-To: <3e04960909210838q16bea4c3i18df66d51986c5bc@mail.gmail.com> References: <3e04960909210838q16bea4c3i18df66d51986c5bc@mail.gmail.com> Message-ID: I managed to run RSpec without setting the GEM_PATH environment variable manually. Shay. ------------------------- Shay Friedman Author of "IronRuby Unleashed" http://www.IronShay.com Follow me: http://twitter.com/ironshay On 9/21/09, Mohammad Azam wrote: > Hi, > I just downloaded the RSpec gem. Previous times I have manually setup the > environment variable for IronRuby gems. If I am using IronRuby 0.9 do I have > to set up the path for gems manually. > > Thanks, > Azam > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > From ryan.riley at panesofglass.org Mon Sep 21 12:49:50 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 21 Sep 2009 11:49:50 -0500 Subject: [Ironruby-core] Manually Setting the Gems Path In-Reply-To: <3e04960909210926v632c1edfn30649fbd2e33a7b5@mail.gmail.com> References: <3e04960909210838q16bea4c3i18df66d51986c5bc@mail.gmail.com> <3e04960909210926v632c1edfn30649fbd2e33a7b5@mail.gmail.com> Message-ID: Can you echo your GEM_PATH? Ryan Riley ryan.riley at panesofglass.org http://panesofglass.org/ http://wizardsofsmart.net/ On Mon, Sep 21, 2009 at 11:26 AM, Mohammad Azam wrote: > Not sure what is wrong on my side! > I have already put the path to ir.exe.config in the environment variable. > But I am not able to run the igem command unless I put the path of igem in > the environment variable. > > > On Mon, Sep 21, 2009 at 11:01 AM, Shay Friedman wrote: > >> I managed to run RSpec without setting the GEM_PATH environment >> variable manually. >> >> Shay. >> ------------------------- >> Shay Friedman >> Author of "IronRuby Unleashed" >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> On 9/21/09, Mohammad Azam wrote: >> > Hi, >> > I just downloaded the RSpec gem. Previous times I have manually setup >> the >> > environment variable for IronRuby gems. If I am using IronRuby 0.9 do I >> have >> > to set up the path for gems manually. >> > >> > Thanks, >> > Azam >> > >> > -- >> > Mohammad Azam >> > MVP (Microsoft Valuable Professional) >> > www.highoncoding.com >> > www.azamsharp.com >> > >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.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 ryan.riley at panesofglass.org Mon Sep 21 13:34:23 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 21 Sep 2009 12:34:23 -0500 Subject: [Ironruby-core] Manually Setting the Gems Path In-Reply-To: <3e04960909211032r714d65cl32b2066a04837a43@mail.gmail.com> References: <3e04960909210838q16bea4c3i18df66d51986c5bc@mail.gmail.com> <3e04960909210926v632c1edfn30649fbd2e33a7b5@mail.gmail.com> <3e04960909211032r714d65cl32b2066a04837a43@mail.gmail.com> Message-ID: Are you using dev.bat? Ryan Riley ryan.riley at panesofglass.org http://panesofglass.org/ http://wizardsofsmart.net/ On Mon, Sep 21, 2009 at 12:32 PM, Mohammad Azam wrote: > I mean: > echo $GEM_PATH > > return > > $GEM_PATH > > Seems like it is not set! Not sure why! > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Mon Sep 21 13:43:55 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Mon, 21 Sep 2009 12:43:55 -0500 Subject: [Ironruby-core] Manually Setting the Gems Path In-Reply-To: <3e04960909211039y7a77cd68pfdaff85e36829882@mail.gmail.com> References: <3e04960909210838q16bea4c3i18df66d51986c5bc@mail.gmail.com> <3e04960909210926v632c1edfn30649fbd2e33a7b5@mail.gmail.com> <3e04960909211032r714d65cl32b2066a04837a43@mail.gmail.com> <3e04960909211039y7a77cd68pfdaff85e36829882@mail.gmail.com> Message-ID: Yes, dev.bat will inject the default environment variables for you. That's not the root of the problem necessarily, but it should help get your gems in the right place. Ryan Riley ryan.riley at panesofglass.org http://panesofglass.org/ http://wizardsofsmart.net/ On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam wrote: > No! > Do I have to click on dev.bat in order to inject the environment > variables? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Mon Sep 21 15:07:26 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 21 Sep 2009 21:07:26 +0200 Subject: [Ironruby-core] Manually Setting the Gems Path In-Reply-To: <3e04960909211125r381e0077s7e503a3ad5cc62cd@mail.gmail.com> References: <3e04960909210838q16bea4c3i18df66d51986c5bc@mail.gmail.com> <3e04960909211032r714d65cl32b2066a04837a43@mail.gmail.com> <3e04960909211039y7a77cd68pfdaff85e36829882@mail.gmail.com> <3e04960909211102r2d86c702u6b2022d8c09dd107@mail.gmail.com> <3e04960909211110s50a5c262x22e326d1ebd2157@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE998A3@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909211125r381e0077s7e503a3ad5cc62cd@mail.gmail.com> Message-ID: Hi I needed to do the following to get it to install in cmd.exe SET MERLIN_ROOT='' in powershell $env:merlin_root='' igem install watir but... I did install the user-choices gem from tar archive trying to find a way out. I'm using ironruby from the git HEAD Because it installs fine for me can you also give me the following env variables echo %PATH% echo %GEM_PATH% igem env location where you extracted the ironruby binaries maybe we can find a way out --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Sep 21, 2009 at 8:25 PM, Mohammad Azam wrote: > Yup! I ran that but nothing happened. So, I manually placed the gem > directory path in the environment variables. > > > On Mon, Sep 21, 2009 at 1:13 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> There is only one: Merlin/Main/Languages/Ruby/Scripts/Dev.bat >> http://wiki.github.com/ironruby/ironruby/devbat >> >> ------------------------------ >> *From:* ironruby-core-bounces at rubyforge.org [ >> ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ >> azamsharp at gmail.com] >> *Sent:* Monday, September 21, 2009 11:10 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Manually Setting the Gems Path >> >> Which dev.bat to use since there are three of them? >> >> On Mon, Sep 21, 2009 at 1:02 PM, Mohammad Azam wrote: >> >>> I am trying to hook up Watir with IronRuby but since I cannot use the >>> following >>> >>> ir.exe igem install watir >>> >>> I have downloaded Watir for Ruby (Not IronRuby). I have setup the path >>> to the ruby libraries in the ir.exe.config file with "c:\ruby" >>> >>> But still I am not able to run Watir. I get the exception >>> >>> require no such file to load ----- watir >>> >>> >>> >>> >>> >>> On Mon, Sep 21, 2009 at 12:43 PM, Ryan Riley < >>> ryan.riley at panesofglass.org> wrote: >>> >>>> Yes, dev.bat will inject the default environment variables for you. >>>> That's not the root of the problem necessarily, but it should help get your >>>> gems in the right place. >>>> >>>> >>>> Ryan Riley >>>> ryan.riley at panesofglass.org >>>> http://panesofglass.org/ >>>> http://wizardsofsmart.net/ >>>> >>>> >>>> On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam wrote: >>>> >>>>> No! >>>>> Do I have to click on dev.bat in order to inject the environment >>>>> variables? >>>>> >>>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >>> >>> -- >>> Mohammad Azam >>> MVP (Microsoft Valuable Professional) >>> www.highoncoding.com >>> www.azamsharp.com >>> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.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 ivan at flanders.co.nz Mon Sep 21 15:12:11 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 21 Sep 2009 21:12:11 +0200 Subject: [Ironruby-core] Manually Setting the Gems Path In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EE9AB34@tk5ex14mbxc106.redmond.corp.microsoft.com> References: <3e04960909210838q16bea4c3i18df66d51986c5bc@mail.gmail.com> <3e04960909211032r714d65cl32b2066a04837a43@mail.gmail.com> <3e04960909211039y7a77cd68pfdaff85e36829882@mail.gmail.com> <3e04960909211102r2d86c702u6b2022d8c09dd107@mail.gmail.com> <3e04960909211110s50a5c262x22e326d1ebd2157@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE998A3@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909211125r381e0077s7e503a3ad5cc62cd@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9AB34@tk5ex14mbxc106.redmond.corp.microsoft.com> Message-ID: But I get as far as Jimmy too :) On Mon, Sep 21, 2009 at 9:06 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > I installed water with Ruby: > > > > > gem install water > > > > Then I made sure GEM_PATH was set to Ruby's gem location: > > > > > set GEM_PATH=C:\Ruby\lib\ruby\gems\1.8\ > > > > And then running IronRuby shows I can require 'watir' just fine: > > > > >>> require 'rubygems' > > => true > > >>> Gem.path > > => ["C:/Ruby/lib/ruby/gems/1.8/"] > > >>> require 'watir' > > => true > > > > However, looks like Watir ships with a copy of win32ole, which will need to > be updated to our version: > > > > >>> Watir::IE > > :0:in `require': The module was expected to contain an assembly manifest. > (Exception from HRESULT: 0x80131018) (LoadError) > > from custom_require.rb:30:in `require' > > from > C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/win32ole.rb:5 > > from :0:in `require' > > from custom_require.rb:30:in `require' > > from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:38 > > from :0 > > > > Even after fixing that, Watir depends on dl/import and WIN32API, so someone > we'll need to port Watir to either not use those things, or write C# > implementations of those c-based libraries: > > > > >>> Watir::IE > > :0:in `require': no such file to load -- dl (LoadError) > > from custom_require.rb:30:in `require' > > from > C:/dev/ironruby/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/dl/import.rb:3 > > from :0:in `require' > > from custom_require.rb:30:in `require' > > from > C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/winClicker.rb:53 > > from :0:in `require' > > from custom_require.rb:30:in `require' > > from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:41 > > from :0 > > > > So for now, Watir won't work on IronRuby because of its native Ruby > extension dependencies. I've got a bug to track this here: > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2532 > > > > ~js > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam > *Sent:* Monday, September 21, 2009 11:25 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Manually Setting the Gems Path > > > > Yup! I ran that but nothing happened. So, I manually placed the gem > directory path in the environment variables. > > On Mon, Sep 21, 2009 at 1:13 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > There is only one: Merlin/Main/Languages/Ruby/Scripts/Dev.bat > > http://wiki.github.com/ironruby/ironruby/devbat > > > ------------------------------ > > *From:* ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ > azamsharp at gmail.com] > > *Sent:* Monday, September 21, 2009 11:10 AM > > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Manually Setting the Gems Path > > > > Which dev.bat to use since there are three of them? > > On Mon, Sep 21, 2009 at 1:02 PM, Mohammad Azam > wrote: > > I am trying to hook up Watir with IronRuby but since I cannot use the > following > > > > ir.exe igem install watir > > > > I have downloaded Watir for Ruby (Not IronRuby). I have setup the path to > the ruby libraries in the ir.exe.config file with "c:\ruby" > > > > But still I am not able to run Watir. I get the exception > > > > require no such file to load ----- watir > > > > > > > > > > On Mon, Sep 21, 2009 at 12:43 PM, Ryan Riley > wrote: > > Yes, dev.bat will inject the default environment variables for you. That's > not the root of the problem necessarily, but it should help get your gems in > the right place. > > > > > Ryan Riley > ryan.riley at panesofglass.org > http://panesofglass.org/ > http://wizardsofsmart.net/ > > On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam > wrote: > > No! > > > > Do I have to click on dev.bat in order to inject the environment > variables? > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.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 Jimmy.Schementi at microsoft.com Mon Sep 21 15:49:23 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 21 Sep 2009 19:49:23 +0000 Subject: [Ironruby-core] IronRuby forum is not in sync with the maililng list In-Reply-To: References: <0047ECBFA2E0DF4A834AA369282A5AFC1EE9994B@tk5ex14mbxc106.redmond.corp.microsoft.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EE9BFC4@tk5ex14mbxc106.redmond.corp.microsoft.com> Thanks for the prompt response Andreas. If this works we should see a post on the forum too. If it doesn't work then I assume you'll continue investigating. Thanks again. ~js > -----Original Message----- > From: Andreas Schwarz [mailto:andreas at andreas-s.net] > Sent: Monday, September 21, 2009 12:07 PM > To: Jimmy Schementi > Subject: Re: IronRuby forum is not in sync with the maililng list > > Hi, > > it should be working now. I'll keep an eye on it. > > Andreas > > Am 21.09.2009 um 20:37 schrieb Jimmy Schementi: > > > FYI, the IronRuby forum (http://www.ruby-forum.com/forum/34) is not in > > sync with the mailing list; only posts made from the forum are showing > > up on the forum, while posts from the mailing list are not making > > their way to the forum. Please let me know when you expect this to be > > resolved. > > > > Thanks! > > ~Jimmy > From ivan at flanders.co.nz Mon Sep 21 17:52:36 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Mon, 21 Sep 2009 23:52:36 +0200 Subject: [Ironruby-core] IronRuby with WatiN In-Reply-To: <3e04960909211435i380ea286p16483bbb61d6289d@mail.gmail.com> References: <3e04960909211435i380ea286p16483bbb61d6289d@mail.gmail.com> Message-ID: You could try the selenium client gem that may work. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Sep 21, 2009 at 11:35 PM, Mohammad Azam wrote: > Hi, > Since, Watir is currently not supported I want to check out WatiN with > IronRuby. Yes, I know I can use it with C# but I am interested in using > IronRuby. I am getting the following exception: > > Here is the code: > > require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' > require File.dirname(__FILE__) + '/bin/Debug/Interop.SHDocVw.dll' > require File.dirname(__FILE__) + '/bin/Debug/Microsoft.mshtml.dll' > > IE = WatiN::Core::IE > > i = IE.new() > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.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 Jimmy.Schementi at microsoft.com Mon Sep 21 18:07:21 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 21 Sep 2009 22:07:21 +0000 Subject: [Ironruby-core] IronRuby with WatiN In-Reply-To: References: <3e04960909211435i380ea286p16483bbb61d6289d@mail.gmail.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EE9C41F@tk5ex14mbxc106.redmond.corp.microsoft.com> It is failing to load the Interop.SHDocVw.dll, which I believe is the interop assembly for IE. Hanselman discusses a similar issue with getting WatiN working in Powershell: http://www.hanselman.com/blog/WATIRForNETWatiNApproaches08ReleaseAndAutomatingIEFromPowerShell.aspx. It might be worth getting a very small and basic example of WatiN working in C# to understand how everything works, and then port it to IronRuby. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, September 21, 2009 2:53 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN You could try the selenium client gem that may work. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Sep 21, 2009 at 11:35 PM, Mohammad Azam > wrote: Hi, Since, Watir is currently not supported I want to check out WatiN with IronRuby. Yes, I know I can use it with C# but I am interested in using IronRuby. I am getting the following exception: Here is the code: require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' require File.dirname(__FILE__) + '/bin/Debug/Interop.SHDocVw.dll' require File.dirname(__FILE__) + '/bin/Debug/Microsoft.mshtml.dll' IE = WatiN::Core::IE i = IE.new() -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.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 Jimmy.Schementi at microsoft.com Mon Sep 21 23:04:46 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 22 Sep 2009 03:04:46 +0000 Subject: [Ironruby-core] Error Downloading Cucumber using Igem In-Reply-To: <3e04960909211943m76dd1162g7b60d90d678774b@mail.gmail.com> References: <3e04960909211943m76dd1162g7b60d90d678774b@mail.gmail.com> Message-ID: <72EE69BB-3597-4D49-8ABD-A86E994E941C@microsoft.com> Like Shri said before, this is a bug in rubygems and we forgot to patch it. Jim should be applying the fix shortly. Follow Shri instructions if you want to fix rubygems. ~Jimmy Sent from my phone On Sep 21, 2009, at 7:46 PM, "Mohammad Azam" > wrote: C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>ir igem ins tall cucumber ERROR: While executing gem ... (RangeError) bignum too big to convert into Fixnum C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin> -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.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 xerxesb at gmail.com Tue Sep 22 05:39:45 2009 From: xerxesb at gmail.com (Xerxes Battiwalla) Date: Tue, 22 Sep 2009 19:39:45 +1000 Subject: [Ironruby-core] Piping input from Kernel::open throws NotImplementedError In-Reply-To: References: Message-ID: Apologies for re-sending, but this never made it onto the ruby-forums because of the previous outage. -------------------- Hi there, I'm trying to get the AutoTest/AutoSpec script for Cucumber to work under IronRuby. The cucumber_mixin.rb file (line 82) in Cucumber tries to pipe input from a call to Kernel::open, and IR throws a NotImplementedException when this line is hit. This is easily reproducible under iirb if you execute: open("| c:/windows/system32/notepad.exe") Is this something on your radar to be fixed soon? Many thanks, Xerxes. From azamsharp at gmail.com Tue Sep 22 15:22:18 2009 From: azamsharp at gmail.com (Mohammad Azam) Date: Tue, 22 Sep 2009 12:22:18 -0700 Subject: [Ironruby-core] Got it to work but whats with the crazy output Message-ID: <3e04960909221222l7d48d010wdda85c2aa70bba8@mail.gmail.com> I got Cucumber to use a C# dll. I had to explicitly compile the dll since compile.dll was giving some errors. Here is the result: C:\ruby\lib\ruby\gems\1.8\gems\cucumber-0.3.101\examples\cs>icucumber features Feature: Addition In order to avoid silly mistakes As a math idiot I want to be told the sum of two numbers Scenario Outline: Add two numbers?[90m # features/addition. feature:6?[0m ?[36mGiven I have entered into the calculator?[90m # features/step _definitons/calculator_steps.rb:9?[0m?[0m ?[36mAnd I have entered into the calculator?[90m # features/step _definitons/calculator_steps.rb:9?[0m?[0m ?[36mWhen I press add?[90m # features/step _definitons/calculator_steps.rb:13?[0m?[0m ?[36mThen the result should be on the screen?[90m # features/step _definitons/calculator_steps.rb:17?[0m?[0m Examples: | ?[36m?[1minput_1?[0m?[0m?[36m?[0m |?[0m ?[36m?[1minput_2?[0m?[0m?[36m?[0 m |?[0m ?[36m?[1moutput?[0m?[0m?[36m?[0m |?[0m | ?[32m20 ?[0m?[0m |?[0m ?[32m30 ?[0m?[0m |?[0m ?[32m50 ?[0m?[0 m |?[0m | ?[32m2 ?[0m?[0m |?[0m ?[32m5 ?[0m?[0m |?[0m ?[32m7 ?[0m?[0 m |?[0m | ?[32m0 ?[0m?[0m |?[0m ?[32m40 ?[0m?[0m |?[0m ?[32m40 ?[0m?[0 m |?[0m 3 scenarios (?[32m3 passed?[0m) 12 steps (?[32m12 passed?[0m) 0m0.506s C:\ruby\lib\ruby\gems\1.8\gems\cucumber-0.3.101\examples\cs> Not sure what is all the information but looks like it ran! -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shay.friedman at gmail.com Tue Sep 22 15:41:21 2009 From: shay.friedman at gmail.com (Shay Friedman) Date: Tue, 22 Sep 2009 22:41:21 +0300 Subject: [Ironruby-core] Got it to work but whats with the crazy output In-Reply-To: <3e04960909221222l7d48d010wdda85c2aa70bba8@mail.gmail.com> References: <3e04960909221222l7d48d010wdda85c2aa70bba8@mail.gmail.com> Message-ID: This output is because Cucumber by default outputs the text with color codes, which are not supported by cmd.exe. Just use the --no-color switch and the output will look like expected. Shay. ------------------------------ Shay Friedman Author of "IronRuby Unleashed" http://www.IronShay.com Follow me: http://twitter.com/ironshay On 9/22/09, Mohammad Azam wrote: > I got Cucumber to use a C# dll. I had to explicitly compile the dll since > compile.dll was giving some errors. Here is the result: > > C:\ruby\lib\ruby\gems\1.8\gems\cucumber-0.3.101\examples\cs>icucumber > features > Feature: Addition > In order to avoid silly mistakes > As a math idiot > I want to be told the sum of two numbers > > Scenario Outline: Add two numbers?[90m # > features/addition. > feature:6?[0m > ?[36mGiven I have entered into the calculator?[90m # > features/step > _definitons/calculator_steps.rb:9?[0m?[0m > ?[36mAnd I have entered into the calculator?[90m # > features/step > _definitons/calculator_steps.rb:9?[0m?[0m > ?[36mWhen I press add?[90m # > features/step > _definitons/calculator_steps.rb:13?[0m?[0m > ?[36mThen the result should be on the screen?[90m # > features/step > _definitons/calculator_steps.rb:17?[0m?[0m > > Examples: > | ?[36m?[1minput_1?[0m?[0m?[36m?[0m |?[0m > ?[36m?[1minput_2?[0m?[0m?[36m?[0 > m |?[0m ?[36m?[1moutput?[0m?[0m?[36m?[0m |?[0m > | ?[32m20 ?[0m?[0m |?[0m ?[32m30 ?[0m?[0m |?[0m ?[32m50 > ?[0m?[0 > m |?[0m > | ?[32m2 ?[0m?[0m |?[0m ?[32m5 ?[0m?[0m |?[0m ?[32m7 > ?[0m?[0 > m |?[0m > | ?[32m0 ?[0m?[0m |?[0m ?[32m40 ?[0m?[0m |?[0m ?[32m40 > ?[0m?[0 > m |?[0m > > 3 scenarios (?[32m3 passed?[0m) > 12 steps (?[32m12 passed?[0m) > 0m0.506s > > C:\ruby\lib\ruby\gems\1.8\gems\cucumber-0.3.101\examples\cs> > > Not sure what is all the information but looks like it ran! > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > From azamsharp at gmail.com Tue Sep 22 15:58:48 2009 From: azamsharp at gmail.com (Mohammad Azam) Date: Tue, 22 Sep 2009 14:58:48 -0500 Subject: [Ironruby-core] Got it to work but whats with the crazy output In-Reply-To: References: <3e04960909221222l7d48d010wdda85c2aa70bba8@mail.gmail.com> Message-ID: <3e04960909221258v547382f4k8dfb3be8cbdca869@mail.gmail.com> Thanks Shay! It worked and the output is very readable now! On Tue, Sep 22, 2009 at 2:41 PM, Shay Friedman wrote: > This output is because Cucumber by default outputs the text with color > codes, which are not supported by cmd.exe. > > Just use the --no-color switch and the output will look like expected. > > Shay. > ------------------------------ > Shay Friedman > Author of "IronRuby Unleashed" > http://www.IronShay.com > Follow me: http://twitter.com/ironshay > > On 9/22/09, Mohammad Azam wrote: > > I got Cucumber to use a C# dll. I had to explicitly compile the dll since > > compile.dll was giving some errors. Here is the result: > > > > C:\ruby\lib\ruby\gems\1.8\gems\cucumber-0.3.101\examples\cs>icucumber > > features > > Feature: Addition > > In order to avoid silly mistakes > > As a math idiot > > I want to be told the sum of two numbers > > > > Scenario Outline: Add two numbers?[90m # > > features/addition. > > feature:6?[0m > > ?[36mGiven I have entered into the calculator?[90m # > > features/step > > _definitons/calculator_steps.rb:9?[0m?[0m > > ?[36mAnd I have entered into the calculator?[90m # > > features/step > > _definitons/calculator_steps.rb:9?[0m?[0m > > ?[36mWhen I press add?[90m # > > features/step > > _definitons/calculator_steps.rb:13?[0m?[0m > > ?[36mThen the result should be on the screen?[90m # > > features/step > > _definitons/calculator_steps.rb:17?[0m?[0m > > > > Examples: > > | ?[36m?[1minput_1?[0m?[0m?[36m?[0m |?[0m > > ?[36m?[1minput_2?[0m?[0m?[36m?[0 > > m |?[0m ?[36m?[1moutput?[0m?[0m?[36m?[0m |?[0m > > | ?[32m20 ?[0m?[0m |?[0m ?[32m30 ?[0m?[0m |?[0m ?[32m50 > > ?[0m?[0 > > m |?[0m > > | ?[32m2 ?[0m?[0m |?[0m ?[32m5 ?[0m?[0m |?[0m ?[32m7 > > ?[0m?[0 > > m |?[0m > > | ?[32m0 ?[0m?[0m |?[0m ?[32m40 ?[0m?[0m |?[0m ?[32m40 > > ?[0m?[0 > > m |?[0m > > > > 3 scenarios (?[32m3 passed?[0m) > > 12 steps (?[32m12 passed?[0m) > > 0m0.506s > > > > C:\ruby\lib\ruby\gems\1.8\gems\cucumber-0.3.101\examples\cs> > > > > Not sure what is all the information but looks like it ran! > > > > -- > > Mohammad Azam > > MVP (Microsoft Valuable Professional) > > www.highoncoding.com > > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Tue Sep 22 18:07:51 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 22 Sep 2009 22:07:51 +0000 Subject: [Ironruby-core] IronRuby with WatiN In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066B5C3D@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <3e04960909211435i380ea286p16483bbb61d6289d@mail.gmail.com> <3e04960909211503k36ce069am666a0dccda0ce008@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9C440@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909211903s13031644l482a5b5c6bcb5f7c@mail.gmail.com> <3e04960909211906v67cc331bmdbca47e3e1508b6c@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D04360541@TK5EX14MBXC140.redmond.corp.microsoft.com> <3e04960909221040k413cc52cr34f7b8df4e0c3428@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9CC14@tk5ex14mbxc106.redmond.corp.microsoft.com>, <3e04960909221107k2151abb7ub03f3d4159ceff34@mail.gmail.com>, <0047ECBFA2E0DF4A834AA369282A5AFC1EE9CC3C@tk5ex14mbxc106.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9CD49@tk5ex14mbxc106.redmond.corp.microsoft.com> <4B342496A3EFEB48839E10BB4BF5964C066B5C3D@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: I agree the ctor is poorly designed. Since there's a simple workaround, and your explanation of the existing behavior makes sense, then I'm also convinced this is "by design". I'll document this as a "gotcha", and suggest that this is poor design for overloads. WatiN should definitely change this; anyone want to submit a patch to them? ~Jimmy Sent from my phone On Sep 22, 2009, at 1:38 PM, "Tomas Matousek" > wrote: This behavior is by design. MutableString -> object requires an up-cast MutableString -> string requires an explicit conversion Overload resolver prefers up-cast over an explicit conversion. With explicit conversion you can lose some information (e.g. encoding of the string) and also get an exception (if theMutableString represents binary data not convertible to UTF16 string). The constructor seems to be poorly designed since it actually accepts only objects that implement IWebBrowser2 (you get argument exception ?iwebBrowser2 needs to implement shdocvw.IWebBrowser2? if you pass something else). I don?t a reason why the constructor shouldn?t take IWebBrowser2 parameter. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jimmy Schementi Sent: Tuesday, September 22, 2009 12:42 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN Taking a look at the WatiN::Core::IE overloaded constructors, you can immediately see the issue: public IE(bool createInNewProcess); public IE(object iwebBrowser2); public IE(string url); public IE(Uri uri); When calling IE.new('http://google.com'), the string is a Ruby string, which is resolving to the object overload rather than the string overload. A work-around currently will be to force the string to be a CLR string: IE.new('http://google.com'.to_clr_string) However, it's unfortunate that IronRuby's CLR overload resolution is picking the more conservative choice, rather than seeing if the Ruby string can be coerced into a more specific overload. JD, have you found this while testing? Tomas, any specific reason this is the behavior, or would you call it a bug? I'd vote it as a bug. This will also work: ie = IE.new ie.go_to 'http://google.com' Here's the C# example ported to IronRuby: require 'Interop.SHDocVw' require 'WatiN.Core' include WatiN::Core ie = IE.new ie.go_to 'http://localhost:1879/Login.aspx' ie.text_field('txtUserName').type_text('azamsharp') I also verified this works from the interactive prompt, so you can use WatiN to control the browser interactively from IronRuby. ~Jimmy ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Jimmy Schementi [Jimmy.Schementi at microsoft.com] Sent: Tuesday, September 22, 2009 11:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN By "C# code" i meant the equivalent C# program that you said worked: azamsharp at gmail.com wrote: > I created a C# application and used WatiN. It worked flawlessly and without any configuration Really I'd like to see your full C# project to see what is missing in the Ruby script. Otherwise, I'll just go to watin's website myself and try it out, but I can't guarantee I'll get back to you soon. I know finding bugs is frustrating, but providing as much information as possible, including a runnable self-contained repro, will help us reproduce the issue and get back to you with a fix. Otherwise we're just wasting time. For future reference, here's the info asked for when reporting bugs: http://ironruby.codeplex.com/Wiki/View.aspx?title=Project%20Documentation&referringTitle=Home ~js ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [azamsharp at gmail.com] Sent: Tuesday, September 22, 2009 11:07 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN Here are the contents of ironrubywatin.rb file: require 'WatiN.Core.dll' require 'Interop.SHDocVw.dll' IE = WatiN::Core::IE i = IE.new('http://localhost:1879/Login.aspx') There is no C# file. I run using: ir.exe ironrubywatin.rb Everything is placed in the bin/Debug folder hence no path reference is required! Thanks, Azam On Tue, Sep 22, 2009 at 10:56 AM, Jimmy Schementi <Jimmy.Schementi at microsoft.com> wrote: Azam, without seeing the contents of ironrubywatin.rb, or what a correct C# WatiN program looks like ... we can't help much. So, either send the Ruby and C# source so we can compare, or can you package up your testing directory into a zip file and host it somewhere online so we can try it ourselves? Please don't attach it to this thread, as the mailing list will regect a large attachment. ~js ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [azamsharp at gmail.com] Sent: Tuesday, September 22, 2009 10:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN Hi, I tried it and it did not work. Here are the details: C:\Projects\ILoveIronRuby\ILoveIronRuby\testing\bin\Debug>ir ironrubywatin.rb ironrubywatin.rb:8: iwebBrowser2 needs to implement shdocvw.IWebBrowser2 (Argume ntError) Thanks, Azam On Tue, Sep 22, 2009 at 10:10 AM, Shri Borde <Shri.Borde at microsoft.com> wrote: IronRuby start the main thread in STA mode as can be seen by this command: c:\>rbx -e "puts System::Threading::Thread.CurrentThread.ApartmentState" STA However, new threads are created in MTA mode (the default). c:\>rbx -e "Thread.new{ puts System::Threading::Thread.CurrentThread.ApartmentState }.join" MTA I doubt this is the problem as the error messages would be something else. For C#, are all dlls next to the C# application exe? Try running the IronRuby repro out of bin\Debug to reduce the issues that could cause problems. If you cannot get even ?require ?Microsoft.mshtml.dll?? to work, then you know its some basic problem unrelated to Watin. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, September 21, 2009 7:07 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN WatiN works in STA (Single Threaded Apartment). Maybe I am missing that? How can I create STA threads in IronRuby. On Mon, Sep 21, 2009 at 7:03 PM, Mohammad Azam <azamsharp at gmail.com> wrote: I created a C# application and used WatiN. It worked flawlessly and without any configuration. For some reason IronRuby is requiring something more to run the application. On Mon, Sep 21, 2009 at 3:11 PM, Jimmy Schementi <Jimmy.Schementi at microsoft.com> wrote: You can do "igem install" against any pure-Ruby gem; only gems with native extensions require an IronRuby-specific gem. And "igem" is nothing more than a bat file to call RubyGems with IronRuby; RubyGems for IronRuby is identical to MRI's version. That being said, I don't know what type of dependencies Selenium has. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, September 21, 2009 3:03 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN I will try the Selenium Client gem. But is there any igem install selenium-client or do I have to use the Ruby version of Selenium client. On Mon, Sep 21, 2009 at 2:52 PM, Ivan Porto Carrero <ivan at flanders.co.nz> wrote: You could try the selenium client gem that may work. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Sep 21, 2009 at 11:35 PM, Mohammad Azam <azamsharp at gmail.com> wrote: Hi, Since, Watir is currently not supported I want to check out WatiN with IronRuby. Yes, I know I can use it with C# but I am interested in using IronRuby. I am getting the following exception: Here is the code: require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' require File.dirname(__FILE__) + '/bin/Debug/Interop.SHDocVw.dll' require File.dirname(__FILE__) + '/bin/Debug/Microsoft.mshtml.dll' IE = WatiN::Core::IE i = IE.new() -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.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 -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.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 Jimmy.Schementi at microsoft.com Tue Sep 22 18:22:28 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 22 Sep 2009 22:22:28 +0000 Subject: [Ironruby-core] IronRuby with WatiN In-Reply-To: <3e04960909221306s1196eb9wd3c6f66e08eef173@mail.gmail.com> References: <3e04960909211435i380ea286p16483bbb61d6289d@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9C440@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909211903s13031644l482a5b5c6bcb5f7c@mail.gmail.com> <3e04960909211906v67cc331bmdbca47e3e1508b6c@mail.gmail.com> <8E45365BECA665489F3CB8878A6C1B7D04360541@TK5EX14MBXC140.redmond.corp.microsoft.com> <3e04960909221040k413cc52cr34f7b8df4e0c3428@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9CC14@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909221107k2151abb7ub03f3d4159ceff34@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9CC3C@tk5ex14mbxc106.redmond.corp.microsoft.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9CD49@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909221306s1196eb9wd3c6f66e08eef173@mail.gmail.com> Message-ID: <70360DA8-FDEC-4186-AFA9-97F9032C0319@microsoft.com> On Sep 22, 2009, at 1:16 PM, "Mohammad Azam" > wrote: Thanks for the answer! That does resolve the issue. I wonder how you found that ruby is calling the object version of the constructor and not the string one. Once I saw their code, your error msg made it clear that it was calling the object ctor. Plus, whenever a ruby object is passed to a method group that has object as a choice for an argument, it will select that overload. Also, how does IronRuby knows whether to call ie.Goto(string) or ie.Goto(Uri); By the type of object you give it :) Ruby has a type system, so at runtime it can figure out what method to call based on the argument provided. Thanks, Azam On Tue, Sep 22, 2009 at 2:42 PM, Jimmy Schementi <Jimmy.Schementi at microsoft.com> wrote: Taking a look at the WatiN::Core::IE overloaded constructors, you can immediately see the issue: public IE(bool createInNewProcess); public IE(object iwebBrowser2); public IE(string url); public IE(Uri uri); When calling IE.new('http://google.com'), the string is a Ruby string, which is resolving to the object overload rather than the string overload. A work-around currently will be to force the string to be a CLR string: IE.new('http://google.com'.to_clr_string) However, it's unfortunate that IronRuby's CLR overload resolution is picking the more conservative choice, rather than seeing if the Ruby string can be coerced into a more specific overload. JD, have you found this while testing? Tomas, any specific reason this is the behavior, or would you call it a bug? I'd vote it as a bug. This will also work: ie = IE.new ie.go_to 'http://google.com' Here's the C# example ported to IronRuby: require 'Interop.SHDocVw' require 'WatiN.Core' include WatiN::Core ie = IE.new ie.go_to 'http://localhost:1879/Login.aspx' ie.text_field('txtUserName').type_text('azamsharp') I also verified this works from the interactive prompt, so you can use WatiN to control the browser interactively from IronRuby. ~Jimmy ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Jimmy Schementi [Jimmy.Schementi at microsoft.com] Sent: Tuesday, September 22, 2009 11:39 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN By "C# code" i meant the equivalent C# program that you said worked: azamsharp at gmail.com wrote: > I created a C# application and used WatiN. It worked flawlessly and without any configuration Really I'd like to see your full C# project to see what is missing in the Ruby script. Otherwise, I'll just go to watin's website myself and try it out, but I can't guarantee I'll get back to you soon. I know finding bugs is frustrating, but providing as much information as possible, including a runnable self-contained repro, will help us reproduce the issue and get back to you with a fix. Otherwise we're just wasting time. For future reference, here's the info asked for when reporting bugs: http://ironruby.codeplex.com/Wiki/View.aspx?title=Project%20Documentation&referringTitle=Home ~js ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [azamsharp at gmail.com] Sent: Tuesday, September 22, 2009 11:07 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN Here are the contents of ironrubywatin.rb file: require 'WatiN.Core.dll' require 'Interop.SHDocVw.dll' IE = WatiN::Core::IE i = IE.new('http://localhost:1879/Login.aspx') There is no C# file. I run using: ir.exe ironrubywatin.rb Everything is placed in the bin/Debug folder hence no path reference is required! Thanks, Azam On Tue, Sep 22, 2009 at 10:56 AM, Jimmy Schementi <Jimmy.Schementi at microsoft.com> wrote: Azam, without seeing the contents of ironrubywatin.rb, or what a correct C# WatiN program looks like ... we can't help much. So, either send the Ruby and C# source so we can compare, or can you package up your testing directory into a zip file and host it somewhere online so we can try it ourselves? Please don't attach it to this thread, as the mailing list will regect a large attachment. ~js ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [azamsharp at gmail.com] Sent: Tuesday, September 22, 2009 10:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN Hi, I tried it and it did not work. Here are the details: C:\Projects\ILoveIronRuby\ILoveIronRuby\testing\bin\Debug>ir ironrubywatin.rb ironrubywatin.rb:8: iwebBrowser2 needs to implement shdocvw.IWebBrowser2 (Argume ntError) Thanks, Azam On Tue, Sep 22, 2009 at 10:10 AM, Shri Borde <Shri.Borde at microsoft.com> wrote: IronRuby start the main thread in STA mode as can be seen by this command: c:\>rbx -e "puts System::Threading::Thread.CurrentThread.ApartmentState" STA However, new threads are created in MTA mode (the default). c:\>rbx -e "Thread.new{ puts System::Threading::Thread.CurrentThread.ApartmentState }.join" MTA I doubt this is the problem as the error messages would be something else. For C#, are all dlls next to the C# application exe? Try running the IronRuby repro out of bin\Debug to reduce the issues that could cause problems. If you cannot get even ?require ?Microsoft.mshtml.dll?? to work, then you know its some basic problem unrelated to Watin. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, September 21, 2009 7:07 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN WatiN works in STA (Single Threaded Apartment). Maybe I am missing that? How can I create STA threads in IronRuby. On Mon, Sep 21, 2009 at 7:03 PM, Mohammad Azam <azamsharp at gmail.com> wrote: I created a C# application and used WatiN. It worked flawlessly and without any configuration. For some reason IronRuby is requiring something more to run the application. On Mon, Sep 21, 2009 at 3:11 PM, Jimmy Schementi <Jimmy.Schementi at microsoft.com> wrote: You can do "igem install" against any pure-Ruby gem; only gems with native extensions require an IronRuby-specific gem. And "igem" is nothing more than a bat file to call RubyGems with IronRuby; RubyGems for IronRuby is identical to MRI's version. That being said, I don't know what type of dependencies Selenium has. From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Monday, September 21, 2009 3:03 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby with WatiN I will try the Selenium Client gem. But is there any igem install selenium-client or do I have to use the Ruby version of Selenium client. On Mon, Sep 21, 2009 at 2:52 PM, Ivan Porto Carrero <ivan at flanders.co.nz> wrote: You could try the selenium client gem that may work. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Sep 21, 2009 at 11:35 PM, Mohammad Azam <azamsharp at gmail.com> wrote: Hi, Since, Watir is currently not supported I want to check out WatiN with IronRuby. Yes, I know I can use it with C# but I am interested in using IronRuby. I am getting the following exception: Here is the code: require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll' require File.dirname(__FILE__) + '/bin/Debug/Interop.SHDocVw.dll' require File.dirname(__FILE__) + '/bin/Debug/Microsoft.mshtml.dll' IE = WatiN::Core::IE i = IE.new() -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.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 -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.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 ivan at flanders.co.nz Wed Sep 23 04:09:58 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 23 Sep 2009 10:09:58 +0200 Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EE9D478@tk5ex14mbxc106.redmond.corp.microsoft.com> References: <3e04960909221432m60ccca9eoaf113807c3babaa2@mail.gmail.com> <3e04960909222108m657f77cfqf6c7b2b7d94f3426@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9D478@tk5ex14mbxc106.redmond.corp.microsoft.com> Message-ID: Mohammed Can you send me the output of these commands? echo %GEM_PATH% where ir where ruby where csc.exe where resgen echo %MERLIN_ROOT% echo %PATH% So I can tell you what should be in there for it to work properly thanks --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:46 AM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote: > > http://github.com/ironruby/ironruby/blob/master/Merlin/Main/Languages/Ruby/Scripts/Dev.bat#L16 > > GEM_PATH is set to the gems path in the Ruby stdlibs that are checked into > the IronRuby source; GEM_HOME isn't set since we want the implementations to > still install them to their own directory. (GEM_HOME tells RubyGems where to > install gems, and GEM_PATH tells it where to load them from). > > Again, this is just for the developer environment. > > ~js > > ------------------------------ > *From:* ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] on behalf of Ryan Riley [ > ryan.riley at panesofglass.org] > *Sent:* Tuesday, September 22, 2009 9:35 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby > libraries instead of IronRuby gems > > What are the values of gem_path and gem_home? > > Sent from my iPhone > > On Sep 22, 2009, at 11:08 PM, Mohammad Azam wrote: > > I uninstall Ruby spec gem and it worked fine. Seems like when spec gem > is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for > the gem. > > On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville < > jdeville at microsoft.com> wrote: > >> More info please J >> >> >> >> *From:* >> ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >> *Sent:* Tuesday, September 22, 2009 2:33 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.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 Wed Sep 23 05:19:18 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 23 Sep 2009 11:19:18 +0200 Subject: [Ironruby-core] code coverage of ironruby code Message-ID: Hi Is there a way to get the code coverage when running RSpec or Test::Unit stuff with ironruby? It would help me a lot to set build tresholds etc. Because I guess the C# tools won't be able to do it and the ruby tools neither. Is it in the cards? What would it take to implement something like that for IronRuby? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Sep 23 12:09:47 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 23 Sep 2009 16:09:47 +0000 Subject: [Ironruby-core] code coverage of ironruby code In-Reply-To: References: Message-ID: <4B342496A3EFEB48839E10BB4BF5964C066B7297@TK5EX14MBXC129.redmond.corp.microsoft.com> If you want to get coverage numbers for C# code you should be able to do: set PERF_TOOLS=%VSINSTALLDIR%\Team Tools\Performance Tools set DSTDIR=an empty directory to store dlls you want to instrument to (the tests must load them from here) # instrument each dll for which you want to get the coverage numbers "%PERF_TOOLS%\vsinstr.exe" /coverage /outputpath:%DSTDIR% your.dll # start code coverage service: "%PERF_TOOLS%\vsperfcmd.exe" /start:coverage /OUTPUT:report_file # run your unit tests here # stop code coverage service "%PERF_TOOLS%\vsperfcmd.exe" /shutdown Open report_file.coverage in VS. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, September 23, 2009 2:19 AM To: ironruby-core Subject: [Ironruby-core] code coverage of ironruby code Hi Is there a way to get the code coverage when running RSpec or Test::Unit stuff with ironruby? It would help me a lot to set build tresholds etc. Because I guess the C# tools won't be able to do it and the ruby tools neither. Is it in the cards? What would it take to implement something like that for IronRuby? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Wed Sep 23 12:29:32 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 23 Sep 2009 11:29:32 -0500 Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems In-Reply-To: <3e04960909230914o4228cb1aocea0f9f3c53cedfb@mail.gmail.com> References: <3e04960909221432m60ccca9eoaf113807c3babaa2@mail.gmail.com> <3e04960909222108m657f77cfqf6c7b2b7d94f3426@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9D3DD@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909230857w15177636ha722e6847d1c85fa@mail.gmail.com> <8379304B09C7C646851D3FCFBAF928D50442554F@TK5EX14MBXC134.redmond.corp.microsoft.com> <3e04960909230914o4228cb1aocea0f9f3c53cedfb@mail.gmail.com> Message-ID: On Wed, Sep 23, 2009 at 11:14 AM, Mohammad Azam wrote: > I am running this from command line shell of windows (cmd.exe) You should run dev.bat instead of cmd.exe. dev.bat sets those variables each time it starts up but doesn't add the variables permanently to your environment. Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan.riley at panesofglass.org Wed Sep 23 12:30:58 2009 From: ryan.riley at panesofglass.org (Ryan Riley) Date: Wed, 23 Sep 2009 11:30:58 -0500 Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems In-Reply-To: References: <3e04960909221432m60ccca9eoaf113807c3babaa2@mail.gmail.com> <3e04960909222108m657f77cfqf6c7b2b7d94f3426@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9D3DD@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909230857w15177636ha722e6847d1c85fa@mail.gmail.com> <8379304B09C7C646851D3FCFBAF928D50442554F@TK5EX14MBXC134.redmond.corp.microsoft.com> <3e04960909230914o4228cb1aocea0f9f3c53cedfb@mail.gmail.com> Message-ID: On Wed, Sep 23, 2009 at 11:29 AM, Ryan Riley wrote: > On Wed, Sep 23, 2009 at 11:14 AM, Mohammad Azam wrote: > >> I am running this from command line shell of windows (cmd.exe) > > > You should run dev.bat instead of cmd.exe. dev.bat sets those variables > each time it starts up but doesn't add the variables permanently to your > environment. > > In other words, dev.bat wraps cmd.exe and adds several elements such as environment variables and the start path for easier development without affecting your current environment variables. Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan at flanders.co.nz Wed Sep 23 12:39:07 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 23 Sep 2009 18:39:07 +0200 Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems In-Reply-To: <3e04960909230914o4228cb1aocea0f9f3c53cedfb@mail.gmail.com> References: <3e04960909221432m60ccca9eoaf113807c3babaa2@mail.gmail.com> <3e04960909222108m657f77cfqf6c7b2b7d94f3426@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EE9D3DD@tk5ex14mbxc106.redmond.corp.microsoft.com> <3e04960909230857w15177636ha722e6847d1c85fa@mail.gmail.com> <8379304B09C7C646851D3FCFBAF928D50442554F@TK5EX14MBXC134.redmond.corp.microsoft.com> <3e04960909230914o4228cb1aocea0f9f3c53cedfb@mail.gmail.com> Message-ID: I'd be interested in the powershell script I've found the alias script but haven't found the dev.ps1 script Ok and to fix what you are seeing. Because I don't think you're interested on developing on ironruby as to with ironruby. So you just want a working ironruby package and not have to deal with dev.bat etc. is to make sure you have a *release* build. either with visual studio or by doing rake compile:all configuration=release ensure your MRI contains the pathname2 gem if you have files in C:\ironruby that you want to keep take a backup of the folder. Then execute rake package in C:\devtools\ironruby\ironruby That will copy the files of a binary distribution to C:\ironruby if you then remove the variables you have set up earlier and place C:\ironruby\bin in the PATH (via system properties - environment variables) You should be all good from now on. If you installed gems you can either reinstall them or copy the contents of C:\ devtools\ironruby\ironruby\Merlin\External.LCA_RESTRICTED\Languages\Ruby\redist-libs\ironruby\gems\1.8 to C:\ironruby\lib\IronRuby\gems\1.8 You now have a working ironruby distribution key words: => release build => PATH variable through system properties => rake package --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:14 PM, Mohammad Azam wrote: > I am running this from command line shell of windows (cmd.exe) > Thanks, > Azam > > > On Wed, Sep 23, 2009 at 11:00 AM, John Lam (TC) wrote: > >> Are you running from a Powershell prompt? It seems so, because your >> output tells me that you?re creating a sub-shell where the environment >> variables do get set, but then that sub-shell goes away. >> >> >> >> To fix this you?ll need a Powershell version of dev.bat. We have several >> floating around ? am sure folks can point you to the right one. >> >> >> >> Thanks, >> >> -John >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >> *Sent:* Wednesday, September 23, 2009 8:58 AM >> >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> >> >> I have ran dev.bat several times but it does not do anything. No entries >> were made in the environment variables so I had to manually go and do the >> entries. >> >> >> >> Also, as soon as I uninstall the MRI spec it all started working fine! >> >> On Tue, Sep 22, 2009 at 9:21 PM, Jimmy Schementi < >> Jimmy.Schementi at microsoft.com> wrote: >> >> >>> Seems like when spec gem is installed on IronRuby and Ruby >> then IronRuby looks in the Ruby folder for the gem. >> >> >> >> No, that's not a correct assumption. :) RubyGems will look for gems in a >> path relative to itself if the GEM_PATH environment variable isn't set. If >> it is set (which dev.bat sets it), then RubyGems will always look on that >> path, regardless of what Ruby implementation you use. >> >> >> >> Are you running IronRuby from a dev.bat prompt, or some other way? If >> that's not the behavior you want, make sure to unset that variable at the >> command line (set GEM_PATH=) or from your Ruby scripts themselves >> (ENV['GEM_PATH'] = nil), but the latter is preferred. >> >> >> >> ~js >> >> >> ------------------------------ >> >> *From:* ironruby-core-bounces at rubyforge.org [ >> ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ >> azamsharp at gmail.com] >> *Sent:* Tuesday, September 22, 2009 9:08 PM >> >> >> *To:* ironruby-core at rubyforge.org >> >> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> I uninstall Ruby spec gem and it worked fine. Seems like when spec gem is >> installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for >> the gem. >> >> On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville >> wrote: >> >> More info please J >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >> *Sent:* Tuesday, September 22, 2009 2:33 PM >> *To:* ironruby-core at rubyforge.org >> *Subject:* [Ironruby-core] Seems like it is loading from the Ruby >> libraries instead of IronRuby gems >> >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.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 ivan at flanders.co.nz Wed Sep 23 12:45:01 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 23 Sep 2009 18:45:01 +0200 Subject: [Ironruby-core] code coverage of ironruby code In-Reply-To: <4a68b8cf0909230915mf7d39b7see99a6e927eb1213@mail.gmail.com> References: <4B342496A3EFEB48839E10BB4BF5964C066B7297@TK5EX14MBXC129.redmond.corp.microsoft.com> <4a68b8cf0909230915mf7d39b7see99a6e927eb1213@mail.gmail.com> Message-ID: rcov can spit out junit xmlI'm sure it can spit out the xml we want. Ideally rcov would be ported and usable for both C# and ruby code when executing tests. Seeing how many people are trying cucumber on ironruby it could be a good thing to have early on. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:15 PM, Thibaut Barr?re wrote: > Maybe we'd have to mix tools to munge the profiling data and provide a > uniformised set in return. > Like: > - vsinstr + a port of rcov for windows > - mono profiler + port of rcov again on mac / linux > > just a thought, but from a user perspective I am definitely interested to > see a mix of C# and Ruby stacks into one view. > > That's a project on its own though :) > > -- Thibaut > > On Wed, Sep 23, 2009 at 6:09 PM, Tomas Matousek < > Tomas.Matousek at microsoft.com> wrote: > >> If you want to get coverage numbers for C# code you should be able to do: >> >> >> >> set PERF_TOOLS=%VSINSTALLDIR%\Team Tools\Performance Tools >> >> set DSTDIR=an empty directory to store dlls you want to instrument to (the >> tests must load them from here) >> >> >> >> # instrument each dll for which you want to get the coverage numbers >> >> "%PERF_TOOLS%\vsinstr.exe" /coverage /outputpath:%DSTDIR% your.dll >> >> >> >> # start code coverage service: >> >> "%PERF_TOOLS%\vsperfcmd.exe" /start:coverage /OUTPUT:report_file >> >> >> >> # run your unit tests here >> >> >> >> # stop code coverage service >> >> "%PERF_TOOLS%\vsperfcmd.exe" /shutdown >> >> >> >> Open report_file.coverage in VS. >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-bounces at rubyforge.org [mailto: >> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Ivan Porto Carrero >> *Sent:* Wednesday, September 23, 2009 2:19 AM >> *To:* ironruby-core >> >> *Subject:* [Ironruby-core] code coverage of ironruby code >> >> >> >> Hi >> >> >> >> Is there a way to get the code coverage when running RSpec or Test::Unit >> stuff with ironruby? It would help me a lot to set build tresholds etc. >> >> >> >> Because I guess the C# tools won't be able to do it and the ruby tools >> neither. >> >> >> >> Is it in the cards? What would it take to implement something like that >> for IronRuby? >> >> >> >> --- >> Met vriendelijke groeten - Best regards - Salutations >> Ivan Porto Carrero >> Blog: http://flanders.co.nz >> Twitter: http://twitter.com/casualjim >> Author of IronRuby in Action (http://manning.com/carrero) >> >> _______________________________________________ >> 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 Sep 23 12:54:13 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 23 Sep 2009 16:54:13 +0000 Subject: [Ironruby-core] code coverage of ironruby code In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C066B7297@TK5EX14MBXC129.redmond.corp.microsoft.com> <4a68b8cf0909230915mf7d39b7see99a6e927eb1213@mail.gmail.com> Message-ID: Anyone out there interested in tackling this? I know Ivan?s busy, but someone out there might have time ? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, September 23, 2009 9:45 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] code coverage of ironruby code rcov can spit out junit xml I'm sure it can spit out the xml we want. Ideally rcov would be ported and usable for both C# and ruby code when executing tests. Seeing how many people are trying cucumber on ironruby it could be a good thing to have early on. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:15 PM, Thibaut Barr?re > wrote: Maybe we'd have to mix tools to munge the profiling data and provide a uniformised set in return. Like: - vsinstr + a port of rcov for windows - mono profiler + port of rcov again on mac / linux just a thought, but from a user perspective I am definitely interested to see a mix of C# and Ruby stacks into one view. That's a project on its own though :) -- Thibaut On Wed, Sep 23, 2009 at 6:09 PM, Tomas Matousek > wrote: If you want to get coverage numbers for C# code you should be able to do: set PERF_TOOLS=%VSINSTALLDIR%\Team Tools\Performance Tools set DSTDIR=an empty directory to store dlls you want to instrument to (the tests must load them from here) # instrument each dll for which you want to get the coverage numbers "%PERF_TOOLS%\vsinstr.exe" /coverage /outputpath:%DSTDIR% your.dll # start code coverage service: "%PERF_TOOLS%\vsperfcmd.exe" /start:coverage /OUTPUT:report_file # run your unit tests here # stop code coverage service "%PERF_TOOLS%\vsperfcmd.exe" /shutdown Open report_file.coverage in VS. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, September 23, 2009 2:19 AM To: ironruby-core Subject: [Ironruby-core] code coverage of ironruby code Hi Is there a way to get the code coverage when running RSpec or Test::Unit stuff with ironruby? It would help me a lot to set build tresholds etc. Because I guess the C# tools won't be able to do it and the ruby tools neither. Is it in the cards? What would it take to implement something like that for IronRuby? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) _______________________________________________ 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 Sep 23 12:58:53 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 23 Sep 2009 18:58:53 +0200 Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems In-Reply-To: <3e04960909230951s75801684rd8fd08d024ce346b@mail.gmail.com> References: <3e04960909230944s6c93acb6h1fb4420bd2ba633b@mail.gmail.com> <3e04960909230951s75801684rd8fd08d024ce346b@mail.gmail.com> Message-ID: "technically" both of them need to be in same console session for it to work as the changes you make are scoped to the console session. ;) to make them persistent across console sessions use system properties - environment variables --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:51 PM, Mohammad Azam wrote: > I forgot to exit the dev.bat which is different console. > I restarted the cmd again and Cucumber works fine. > > > On Wed, Sep 23, 2009 at 11:44 AM, Mohammad Azam wrote: > >> After running the dev.bat and set my ICucumber is failing: >> C:\Projects\ILoveIronRuby\ILoveIronRuby\testing>icucumber features >> --no-color >> no such file to load -- spec/expectations >> Failed to load features/step_definitons/calculator_steps.rb (LoadError) >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Builtins\KernelOps.cs:1341:in `require' >> custom_require.rb:30:in `require' >> polyglot.rb:69:in `require' >> ./features/step_definitons/calculator_steps.rb:3 >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Builtins\KernelOps.cs:1341:in `require' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r >> b_language.rb:101:in `load_code_file' >> custom_require.rb:30:in `require' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r >> b_language.rb:46:in `step_definitions_for' >> polyglot.rb:69:in `require' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. >> rb:118:in `load_code_file' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. >> rb:110:in `load_code_files' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. >> rb:109:in `load_code_files' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: >> 48:in `execute!' >> >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: >> 23:in `execute' >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Extensions\IListOps.cs:810:in `each' >> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/cucumber:9 >> c:/ruby/bin/cucumber:19 >> >> C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE >> D\Builtins\KernelOps.cs:1326:in `load' >> >> C:\Projects\ILoveIronRuby\ILoveIronRuby\testing> >> >> On Wed, Sep 23, 2009 at 9:38 AM, Jim Deville wrote: >> >>> Can you start a new cmd process, run dev.bat, and then run "set" and >>> paste that output? >>> >>> Thanks >>> JD >>> >>> >>> >>> ------------------------------ >>> From: Mohammad Azam >>> Sent: September 23, 2009 9:15 AM >>> To: ironruby-core at rubyforge.org >>> Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby >>> libraries instead of IronRuby gems >>> >>> I am running this from command line shell of windows (cmd.exe) >>> Thanks, >>> Azam >>> >>> On Wed, Sep 23, 2009 at 11:00 AM, John Lam (TC) wrote: >>> >>>> Are you running from a Powershell prompt? It seems so, because your >>>> output tells me that you?re creating a sub-shell where the environment >>>> variables do get set, but then that sub-shell goes away. >>>> >>>> >>>> >>>> To fix this you?ll need a Powershell version of dev.bat. We have several >>>> floating around ? am sure folks can point you to the right one. >>>> >>>> >>>> >>>> Thanks, >>>> >>>> -John >>>> >>>> >>>> >>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >>>> *Sent:* Wednesday, September 23, 2009 8:58 AM >>>> >>>> *To:* ironruby-core at rubyforge.org >>>> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >>>> libraries instead of IronRuby gems >>>> >>>> >>>> >>>> I have ran dev.bat several times but it does not do anything. No entries >>>> were made in the environment variables so I had to manually go and do the >>>> entries. >>>> >>>> >>>> >>>> Also, as soon as I uninstall the MRI spec it all started working fine! >>>> >>>> On Tue, Sep 22, 2009 at 9:21 PM, Jimmy Schementi < >>>> Jimmy.Schementi at microsoft.com> wrote: >>>> >>>> >>> Seems like when spec gem is installed on IronRuby and Ruby >>>> then IronRuby looks in the Ruby folder for the gem. >>>> >>>> >>>> >>>> No, that's not a correct assumption. :) RubyGems will look for gems in a >>>> path relative to itself if the GEM_PATH environment variable isn't set. If >>>> it is set (which dev.bat sets it), then RubyGems will always look on that >>>> path, regardless of what Ruby implementation you use. >>>> >>>> >>>> >>>> Are you running IronRuby from a dev.bat prompt, or some other way? If >>>> that's not the behavior you want, make sure to unset that variable at the >>>> command line (set GEM_PATH=) or from your Ruby scripts themselves >>>> (ENV['GEM_PATH'] = nil), but the latter is preferred. >>>> >>>> >>>> >>>> ~js >>>> >>>> >>>> ------------------------------ >>>> >>>> *From:* ironruby-core-bounces at rubyforge.org [ >>>> ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ >>>> azamsharp at gmail.com] >>>> *Sent:* Tuesday, September 22, 2009 9:08 PM >>>> >>>> >>>> *To:* ironruby-core at rubyforge.org >>>> >>>> *Subject:* Re: [Ironruby-core] Seems like it is loading from the Ruby >>>> libraries instead of IronRuby gems >>>> >>>> I uninstall Ruby spec gem and it worked fine. Seems like when spec gem >>>> is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for >>>> the gem. >>>> >>>> On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville >>>> wrote: >>>> >>>> More info please J >>>> >>>> >>>> >>>> *From:* ironruby-core-bounces at rubyforge.org [mailto: >>>> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam >>>> *Sent:* Tuesday, September 22, 2009 2:33 PM >>>> *To:* ironruby-core at rubyforge.org >>>> *Subject:* [Ironruby-core] Seems like it is loading from the Ruby >>>> libraries instead of IronRuby gems >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> Mohammad Azam >>>> MVP (Microsoft Valuable Professional) >>>> www.highoncoding.com >>>> www.azamsharp.com >>>> >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>>> >>>> >>>> -- >>>> Mohammad Azam >>>> MVP (Microsoft Valuable Professional) >>>> www.highoncoding.com >>>> www.azamsharp.com >>>> >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>>> >>>> >>>> -- >>>> Mohammad Azam >>>> MVP (Microsoft Valuable Professional) >>>> www.highoncoding.com >>>> www.azamsharp.com >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >>> >>> -- >>> Mohammad Azam >>> MVP (Microsoft Valuable Professional) >>> www.highoncoding.com >>> www.azamsharp.com >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.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 jdeville at microsoft.com Wed Sep 23 14:00:47 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 23 Sep 2009 18:00:47 +0000 Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems In-Reply-To: References: <3e04960909230944s6c93acb6h1fb4420bd2ba633b@mail.gmail.com> <3e04960909230951s75801684rd8fd08d024ce346b@mail.gmail.com> Message-ID: Mohammad, Can you try running a dev.bat console (run cmd, then run dev.bat) then install cucumber and rspec from there, and then try running your tests? I have a feeling dev.bat has a different GEM_PATH than your normal ruby install. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, September 23, 2009 9:59 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems "technically" both of them need to be in same console session for it to work as the changes you make are scoped to the console session. ;) to make them persistent across console sessions use system properties - environment variables --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 23, 2009 at 6:51 PM, Mohammad Azam > wrote: I forgot to exit the dev.bat which is different console. I restarted the cmd again and Cucumber works fine. On Wed, Sep 23, 2009 at 11:44 AM, Mohammad Azam > wrote: After running the dev.bat and set my ICucumber is failing: C:\Projects\ILoveIronRuby\ILoveIronRuby\testing>icucumber features --no-color no such file to load -- spec/expectations Failed to load features/step_definitons/calculator_steps.rb (LoadError) C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1341:in `require' custom_require.rb:30:in `require' polyglot.rb:69:in `require' ./features/step_definitons/calculator_steps.rb:3 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1341:in `require' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r b_language.rb:101:in `load_code_file' custom_require.rb:30:in `require' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/rb_support/r b_language.rb:46:in `step_definitions_for' polyglot.rb:69:in `require' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:118:in `load_code_file' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:110:in `load_code_files' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/step_mother. rb:109:in `load_code_files' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: 48:in `execute!' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/../lib/cucumber/cli/main.rb: 23:in `execute' C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Extensions\IListOps.cs:810:in `each' c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.101/bin/cucumber:9 c:/ruby/bin/cucumber:19 C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTE D\Builtins\KernelOps.cs:1326:in `load' C:\Projects\ILoveIronRuby\ILoveIronRuby\testing> On Wed, Sep 23, 2009 at 9:38 AM, Jim Deville > wrote: Can you start a new cmd process, run dev.bat, and then run "set" and paste that output? Thanks JD ________________________________ From: Mohammad Azam > Sent: September 23, 2009 9:15 AM To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems I am running this from command line shell of windows (cmd.exe) Thanks, Azam On Wed, Sep 23, 2009 at 11:00 AM, John Lam (TC) > wrote: Are you running from a Powershell prompt? It seems so, because your output tells me that you?re creating a sub-shell where the environment variables do get set, but then that sub-shell goes away. To fix this you?ll need a Powershell version of dev.bat. We have several floating around ? am sure folks can point you to the right one. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Wednesday, September 23, 2009 8:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems I have ran dev.bat several times but it does not do anything. No entries were made in the environment variables so I had to manually go and do the entries. Also, as soon as I uninstall the MRI spec it all started working fine! On Tue, Sep 22, 2009 at 9:21 PM, Jimmy Schementi > wrote: >>> Seems like when spec gem is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for the gem. No, that's not a correct assumption. :) RubyGems will look for gems in a path relative to itself if the GEM_PATH environment variable isn't set. If it is set (which dev.bat sets it), then RubyGems will always look on that path, regardless of what Ruby implementation you use. Are you running IronRuby from a dev.bat prompt, or some other way? If that's not the behavior you want, make sure to unset that variable at the command line (set GEM_PATH=) or from your Ruby scripts themselves (ENV['GEM_PATH'] = nil), but the latter is preferred. ~js ________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [azamsharp at gmail.com] Sent: Tuesday, September 22, 2009 9:08 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems I uninstall Ruby spec gem and it worked fine. Seems like when spec gem is installed on IronRuby and Ruby then IronRuby looks in the Ruby folder for the gem. On Tue, Sep 22, 2009 at 8:47 PM, Jim Deville > wrote: More info please ? From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam Sent: Tuesday, September 22, 2009 2:33 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] Seems like it is loading from the Ruby libraries instead of IronRuby gems -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.com -- Mohammad Azam MVP (Microsoft Valuable Professional) www.highoncoding.com www.azamsharp.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 xerxesb at gmail.com Wed Sep 23 20:23:35 2009 From: xerxesb at gmail.com (Xerxes Battiwalla) Date: Thu, 24 Sep 2009 10:23:35 +1000 Subject: [Ironruby-core] Cucumber Problems with IronRuby In-Reply-To: <3e04960909222107k64fdc7e8t132fad56448b0f31@mail.gmail.com> References: <3e04960909222107k64fdc7e8t132fad56448b0f31@mail.gmail.com> Message-ID: Mohammed - if you're looking for an example of the calculator problem, i've got one on GitHub you could try out. It works on IronRuby no problems. http://github.com/xerxesb/calcdotnet On Wed, Sep 23, 2009 at 2:07 PM, Mohammad Azam wrote: > Hi, > I am trying to get Cucumber to work with IronRuby and .NET class. For some > reason it does not like the describe keyword from spec and before keyword. > Here is the feature file: > Feature: Addition > ??In order to avoid silly mistakes > ??As a math idiot > ??I want to be told the sum of two numbers > ??Scenario Outline: Add two numbers > ?? ?Given I have entered into the calculator > ?? ?And I have entered into the calculator > ?? ?When I press add > ?? ?Then the result should be on the screen > ??Examples: > | input_1 | input_2 | output | > ?? ?| 20 ? ? ?| 30 ? ? ?| 50 ? ? | > ?? ?| 2 ? ? ? | 5 ? ? ? | 7 ? ? ?| > ?? ?| 0 ? ? ? | 40 ? ? ?| 40 ? ? | > > Here is the step file: > > require 'rubygems' > require 'spec/expectations' > require File.expand_path("bin/Debug/BusinessObjects.dll") > include BusinessObjects > > @cal = Calculator.new > > Given "I have entered $n into the calculator" do |n| > > @cal.Push n.to_i > end > When /I press add/ do > @result = @cal.Add > end > Then /the result should be (.*) on the screen/ do |result| > @result.should == result.to_i > end > I need to initialize @cal before each test but I cannot use before for some > reason! > ?? undefined method `Push' for nil:NilClass (NoMethodError) > ?? ./features/step_definitons/calculator_steps.rb:18 > ?? C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA > CTED\Builtins\KernelOps.cs:648:in `instance_exec' > ?? C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA > CTED\Extensions\IListOps.cs:810:in `each' > ?? C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA > CTED\Builtins\Enumerable.cs:150:in `b__9' > ?? C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA > CTED\Extensions\IListOps.cs:810:in `each' > ?? C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA > > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > From ivan at flanders.co.nz Thu Sep 24 17:54:52 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Thu, 24 Sep 2009 23:54:52 +0200 Subject: [Ironruby-core] using xbuild to build ironruby Message-ID: Hi You can build the plain ironruby repository with mono's xbuild now. I know Jim was interested in that for the rake file. You need mono trunk though MONO_IOMAP=case xbuild Ruby.sln /p:TreatWarningsAsErrors=false MONO_IOMAP to skip casing issues --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Mon Sep 28 13:29:53 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Mon, 28 Sep 2009 17:29:53 +0000 Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup In-Reply-To: <21192f970909120258m49fede16r27623ef7b7f1d648@mail.gmail.com> References: <21192f970909120258m49fede16r27623ef7b7f1d648@mail.gmail.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEA4C30@tk5ex14mbxc106.redmond.corp.microsoft.com> What you're experiencing should not be anything specific to IIS6; the first request of a IronRuby-based app is going to take a longer amount of time because IronRuby.Rack is compiling and running all the non-app code (Camping + other Ruby libraries, in your case). In other words, it's like your starting the server on the first run. IIS7 defaults to 110 seconds for a timeout, and I assume IIS6 has the same, which should be way more than enough time to start the app; a basic Rails app takes ~15 seconds to start up on my machine. How long does your app take to start outside of IIS? There should be no difference whether your running in IIS or not. ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith [martin.smith.jr at gmail.com] Sent: Saturday, September 12, 2009 2:58 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup Hello, I wanted to let you know I was having all sorts of troubles getting Rails to start reliably running on IIS6 (though I don't think IIS6 has anything to do with it) and I had to increase the script timeout for the very first load of the application. I changed HttpHandler to the one i've included below. I think the locking is right, but has the side effect of possibly a few of the early scripts getting a longer timeout than expected. That's probably ok, but I'm not sure it's an "enterprise ready" solution. What do you guys think? Source included below. Thanks, Martin --------------- begin -------------------- internal sealed class HttpHandler : IHttpHandler { private readonly Stopwatch _watch = new Stopwatch(); private static bool _isFirstRequest = true; // added this public bool IsReusable { get { return true; } } public void ProcessRequest(HttpContext context) { lock (this) { if (_isFirstRequest) // added this if block { context.Server.ScriptTimeout = 600; _isFirstRequest = false; } Utils.Log(""); Utils.Log("=== Request started at " + DateTime.Now.ToString()); _watch.Reset(); _watch.Start(); Handler.IIS.Current.Handle(new Request(new HttpRequestWrapper(context.Request)), new Response(new HttpResponseWrapper(context.Response))); _watch.Stop(); Utils.Log(">>> Request finished (" + _watch.ElapsedMilliseconds.ToString() + "ms)"); } } } ------------- end -------------------------- _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From xerxesb at gmail.com Mon Sep 28 21:23:57 2009 From: xerxesb at gmail.com (Xerxes Battiwalla) Date: Tue, 29 Sep 2009 11:23:57 +1000 Subject: [Ironruby-core] IR -e not returning error codes properly Message-ID: This problem manifests itself when running rspec tests under IronRuby (through our Rakefile), and I think i've found a simple reproduction of the issue using the following command-line sequence. MRI does this: --------------------- D:\>ruby -e 'exit(777)' D:\>echo %errorlevel% 777 IR does this: --------------------- D:\>ir -e 'exit(666)' D:\>echo %errorlevel% 0 I've tried this against the current HEAD (03054a5be81), and it fails. You guys happy for me to log this in CodePlex? Is there any possible work-around in the meantime, as our RSpec rake tasks are passing when they should fail. Cheers, Xerx. From martin.smith.jr at gmail.com Tue Sep 29 00:26:20 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Mon, 28 Sep 2009 21:26:20 -0700 Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup In-Reply-To: <0047ECBFA2E0DF4A834AA369282A5AFC1EEA4C30@tk5ex14mbxc106.redmond.corp.microsoft.com> References: <21192f970909120258m49fede16r27623ef7b7f1d648@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA4C30@tk5ex14mbxc106.redmond.corp.microsoft.com> Message-ID: <21192f970909282126h2b09e6ech94924a5d64b78dcb@mail.gmail.com> Hi Jimmy, Rails was taking 5 minutes or so to start up on my Amazon Web Services machine. Actually, I was having a ton of troubles getting things all configured and as soon as I addressed one issue, two more would come up. I eventually had to abandon IronRuby for hosting my app. There were a couple more issues I ran into, but you're right... on my dev machine, WEBrick started up much more quickly. Not sure what the problem was. Thanks, Martin On Mon, Sep 28, 2009 at 10:29 AM, Jimmy Schementi wrote: > What you're experiencing should not be anything specific to IIS6; the first request of a IronRuby-based app is going to take a longer amount of time because IronRuby.Rack is compiling and running all the non-app code (Camping + other Ruby libraries, in your case). In other words, it's like your starting the server on the first run. IIS7 defaults to 110 seconds for a timeout, and I assume IIS6 has the same, which should be way more than enough time to start the app; a basic Rails app takes ~15 seconds to start up on my machine. How long does your app take to start outside of IIS? There should be no difference whether your running in IIS or not. > ________________________________________ > From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith [martin.smith.jr at gmail.com] > Sent: Saturday, September 12, 2009 2:58 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup > > Hello, > > I wanted to let you know I was having all sorts of troubles getting > Rails to start reliably running on IIS6 (though I don't think IIS6 has > anything to do with it) and I had to increase the script timeout for > the very first load of the application. > > I changed HttpHandler to the one i've included below. ?I think the > locking is right, but has the side effect of possibly a few of the > early scripts getting a longer timeout than expected. That's probably > ok, but I'm not sure it's an "enterprise ready" solution. > > What do you guys think? ?Source included below. > > Thanks, > Martin > > --------------- begin -------------------- > internal sealed class HttpHandler : IHttpHandler { > > ? ? ? ?private readonly Stopwatch _watch = new Stopwatch(); > ? ? ? ?private static bool _isFirstRequest = true; // added this > > ? ? ? ?public bool IsReusable { > ? ? ? ? ? ?get { return true; } > ? ? ? ?} > > ? ? ? ?public void ProcessRequest(HttpContext context) { > ? ? ? ? ? ?lock (this) { > ? ? ? ? ? ? ? ?if (_isFirstRequest) // added this if block > ? ? ? ? ? ? ? ?{ > ? ? ? ? ? ? ? ? ? ?context.Server.ScriptTimeout = 600; > ? ? ? ? ? ? ? ? ? ?_isFirstRequest = false; > ? ? ? ? ? ? ? ?} > > ? ? ? ? ? ? ? ?Utils.Log(""); > ? ? ? ? ? ? ? ?Utils.Log("=== Request started at " + DateTime.Now.ToString()); > ? ? ? ? ? ? ? ?_watch.Reset(); > ? ? ? ? ? ? ? ?_watch.Start(); > > ? ? ? ? ? ? ? ?Handler.IIS.Current.Handle(new Request(new > HttpRequestWrapper(context.Request)), > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? new Response(new > HttpResponseWrapper(context.Response))); > > ? ? ? ? ? ? ? ?_watch.Stop(); > ? ? ? ? ? ? ? ?Utils.Log(">>> Request finished (" + > _watch.ElapsedMilliseconds.ToString() + "ms)"); > ? ? ? ? ? ?} > ? ? ? ?} > ? ?} > > ------------- 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 > From jdeville at microsoft.com Tue Sep 29 00:26:26 2009 From: jdeville at microsoft.com (Jim Deville) Date: Tue, 29 Sep 2009 04:26:26 +0000 Subject: [Ironruby-core] IR -e not returning error codes properly In-Reply-To: References: Message-ID: Not repro'ing here. Can you recompile from VS just to check? If it still happens, contact me offlist and I'll get those binaries and see if I can repro with your bits. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Xerxes Battiwalla Sent: Monday, September 28, 2009 6:24 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IR -e not returning error codes properly This problem manifests itself when running rspec tests under IronRuby (through our Rakefile), and I think i've found a simple reproduction of the issue using the following command-line sequence. MRI does this: --------------------- D:\>ruby -e 'exit(777)' D:\>echo %errorlevel% 777 IR does this: --------------------- D:\>ir -e 'exit(666)' D:\>echo %errorlevel% 0 I've tried this against the current HEAD (03054a5be81), and it fails. You guys happy for me to log this in CodePlex? Is there any possible work-around in the meantime, as our RSpec rake tasks are passing when they should fail. Cheers, Xerx. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core From Tomas.Matousek at microsoft.com Tue Sep 29 02:49:16 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Tue, 29 Sep 2009 06:49:16 +0000 Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup In-Reply-To: <21192f970909282126h2b09e6ech94924a5d64b78dcb@mail.gmail.com> References: <21192f970909120258m49fede16r27623ef7b7f1d648@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA4C30@tk5ex14mbxc106.redmond.corp.microsoft.com> <21192f970909282126h2b09e6ech94924a5d64b78dcb@mail.gmail.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C066B9F46@TK5EX14MBXC129.redmond.corp.microsoft.com> Any chance you're running with "Debug" mode on? I can't think of why it would take 5 minutes if not. Could you describe the issues you're experiencing so that we can work on fixing them? Thanks, Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith Sent: Monday, September 28, 2009 9:26 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby Rack Timeout causing issues at startup Hi Jimmy, Rails was taking 5 minutes or so to start up on my Amazon Web Services machine. Actually, I was having a ton of troubles getting things all configured and as soon as I addressed one issue, two more would come up. I eventually had to abandon IronRuby for hosting my app. There were a couple more issues I ran into, but you're right... on my dev machine, WEBrick started up much more quickly. Not sure what the problem was. Thanks, Martin On Mon, Sep 28, 2009 at 10:29 AM, Jimmy Schementi wrote: > What you're experiencing should not be anything specific to IIS6; the first request of a IronRuby-based app is going to take a longer amount of time because IronRuby.Rack is compiling and running all the non-app code (Camping + other Ruby libraries, in your case). In other words, it's like your starting the server on the first run. IIS7 defaults to 110 seconds for a timeout, and I assume IIS6 has the same, which should be way more than enough time to start the app; a basic Rails app takes ~15 seconds to start up on my machine. How long does your app take to start outside of IIS? There should be no difference whether your running in IIS or not. > ________________________________________ > From: ironruby-core-bounces at rubyforge.org > [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith > [martin.smith.jr at gmail.com] > Sent: Saturday, September 12, 2009 2:58 AM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at > startup > > Hello, > > I wanted to let you know I was having all sorts of troubles getting > Rails to start reliably running on IIS6 (though I don't think IIS6 has > anything to do with it) and I had to increase the script timeout for > the very first load of the application. > > I changed HttpHandler to the one i've included below. ?I think the > locking is right, but has the side effect of possibly a few of the > early scripts getting a longer timeout than expected. That's probably > ok, but I'm not sure it's an "enterprise ready" solution. > > What do you guys think? ?Source included below. > > Thanks, > Martin > > --------------- begin -------------------- internal sealed class > HttpHandler : IHttpHandler { > > ? ? ? ?private readonly Stopwatch _watch = new Stopwatch(); > ? ? ? ?private static bool _isFirstRequest = true; // added this > > ? ? ? ?public bool IsReusable { > ? ? ? ? ? ?get { return true; } > ? ? ? ?} > > ? ? ? ?public void ProcessRequest(HttpContext context) { > ? ? ? ? ? ?lock (this) { > ? ? ? ? ? ? ? ?if (_isFirstRequest) // added this if block > ? ? ? ? ? ? ? ?{ > ? ? ? ? ? ? ? ? ? ?context.Server.ScriptTimeout = 600; > ? ? ? ? ? ? ? ? ? ?_isFirstRequest = false; > ? ? ? ? ? ? ? ?} > > ? ? ? ? ? ? ? ?Utils.Log(""); > ? ? ? ? ? ? ? ?Utils.Log("=== Request started at " + > DateTime.Now.ToString()); > ? ? ? ? ? ? ? ?_watch.Reset(); > ? ? ? ? ? ? ? ?_watch.Start(); > > ? ? ? ? ? ? ? ?Handler.IIS.Current.Handle(new Request(new > HttpRequestWrapper(context.Request)), > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? new Response(new > HttpResponseWrapper(context.Response))); > > ? ? ? ? ? ? ? ?_watch.Stop(); > ? ? ? ? ? ? ? ?Utils.Log(">>> Request finished (" + > _watch.ElapsedMilliseconds.ToString() + "ms)"); > ? ? ? ? ? ?} > ? ? ? ?} > ? ?} > > ------------- 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 From Jimmy.Schementi at microsoft.com Tue Sep 29 03:12:56 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 29 Sep 2009 07:12:56 +0000 Subject: [Ironruby-core] [ANN] IronRuby 0.9.1 Released Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEA52B0@tk5ex14mbxc106.redmond.corp.microsoft.com> The IronRuby team is pleased to release version 0.9.1! http://ironruby.net/Download Direct download link: - http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30916#DownloadId=85513 As IronRuby approaches 1.0, these 0.9.x releases contain important bug fixes and enhancements that IronRuby users request; this release fixes 30 bugs, including fixes for running Cucumber and Rails, and significant performance improvements on constant lookup. For more information see the "Bugs fixed and changes" page for this release: http://rubyforge.org/frs/shownotes.php?release_id=39609 This release also contains a significant improvement to running IronRuby in the browser with Silverlight: placing Ruby code in HTML script tags. For more information, read the Back to Just-Text with Silverlight write-up: http://jimmy.schementi.com/silverlight/sl-back-to-just-text.pdf As always, if you encounter any issues with IronRuby please report it on the IronRuby Issue Tracker: http://ironruby.codeplex.com/WorkItem/Create.aspx From martin.smith.jr at gmail.com Tue Sep 29 13:13:06 2009 From: martin.smith.jr at gmail.com (Martin Smith) Date: Tue, 29 Sep 2009 10:13:06 -0700 Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066B9F46@TK5EX14MBXC129.redmond.corp.microsoft.com> References: <21192f970909120258m49fede16r27623ef7b7f1d648@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA4C30@tk5ex14mbxc106.redmond.corp.microsoft.com> <21192f970909282126h2b09e6ech94924a5d64b78dcb@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C066B9F46@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <21192f970909291013l798965d3p85390af1314f276f@mail.gmail.com> Hi Tomas, Thanks for responding. It was a couple weeks ago, so I can really only discuss things from memory. To be honest, even the simple IronRuby.Rack test app would take a minute or two to load. I tried to add Rails' DB session store, and, oddly, it kept switching two of the column names so it would be trying to insert a long binary stream into a short column and giving me the "data would be truncated" error The biggest problem is that the worker process would keep dying with no explanation or error, and i would just get an error in the Application log that the worker process died. I've since tried running ASP.NET MVC on the same server without issue, so I'm pretty sure this was related to IronRuby somehow. I'm sorry I can't be more helpful. I was under a deadline and ended up having to re-implement the site on ASP.NET MVC so I couldn't be as helpful as I would have liked. If I get the chance, I'll try and reconfigure it again to see if I can track down some of the errors I was seeing. Thanks, Martin On Mon, Sep 28, 2009 at 11:49 PM, Tomas Matousek wrote: > Any chance you're running with "Debug" mode on? I can't think of why it would take 5 minutes if not. ?Could you describe the issues you're experiencing so that we can work on fixing them? > > Thanks, > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith > Sent: Monday, September 28, 2009 9:26 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] IronRuby Rack Timeout causing issues at startup > > Hi Jimmy, > > Rails was taking 5 minutes or so to start up on my Amazon Web Services machine. ?Actually, I was having a ton of troubles getting things all configured and as soon as I addressed one issue, two more would come up. ?I eventually had to abandon IronRuby for hosting my app. > > There were a couple more issues I ran into, but you're right... on my dev machine, WEBrick started up much more quickly. > > Not sure what the problem was. > > Thanks, > Martin > > On Mon, Sep 28, 2009 at 10:29 AM, Jimmy Schementi wrote: >> What you're experiencing should not be anything specific to IIS6; the first request of a IronRuby-based app is going to take a longer amount of time because IronRuby.Rack is compiling and running all the non-app code (Camping + other Ruby libraries, in your case). In other words, it's like your starting the server on the first run. IIS7 defaults to 110 seconds for a timeout, and I assume IIS6 has the same, which should be way more than enough time to start the app; a basic Rails app takes ~15 seconds to start up on my machine. How long does your app take to start outside of IIS? There should be no difference whether your running in IIS or not. >> ________________________________________ >> From: ironruby-core-bounces at rubyforge.org >> [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith >> [martin.smith.jr at gmail.com] >> Sent: Saturday, September 12, 2009 2:58 AM >> To: ironruby-core at rubyforge.org >> Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at >> startup >> >> Hello, >> >> I wanted to let you know I was having all sorts of troubles getting >> Rails to start reliably running on IIS6 (though I don't think IIS6 has >> anything to do with it) and I had to increase the script timeout for >> the very first load of the application. >> >> I changed HttpHandler to the one i've included below. ?I think the >> locking is right, but has the side effect of possibly a few of the >> early scripts getting a longer timeout than expected. That's probably >> ok, but I'm not sure it's an "enterprise ready" solution. >> >> What do you guys think? ?Source included below. >> >> Thanks, >> Martin >> >> --------------- begin -------------------- internal sealed class >> HttpHandler : IHttpHandler { >> >> ? ? ? ?private readonly Stopwatch _watch = new Stopwatch(); >> ? ? ? ?private static bool _isFirstRequest = true; // added this >> >> ? ? ? ?public bool IsReusable { >> ? ? ? ? ? ?get { return true; } >> ? ? ? ?} >> >> ? ? ? ?public void ProcessRequest(HttpContext context) { >> ? ? ? ? ? ?lock (this) { >> ? ? ? ? ? ? ? ?if (_isFirstRequest) // added this if block >> ? ? ? ? ? ? ? ?{ >> ? ? ? ? ? ? ? ? ? ?context.Server.ScriptTimeout = 600; >> ? ? ? ? ? ? ? ? ? ?_isFirstRequest = false; >> ? ? ? ? ? ? ? ?} >> >> ? ? ? ? ? ? ? ?Utils.Log(""); >> ? ? ? ? ? ? ? ?Utils.Log("=== Request started at " + >> DateTime.Now.ToString()); >> ? ? ? ? ? ? ? ?_watch.Reset(); >> ? ? ? ? ? ? ? ?_watch.Start(); >> >> ? ? ? ? ? ? ? ?Handler.IIS.Current.Handle(new Request(new >> HttpRequestWrapper(context.Request)), >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? new Response(new >> HttpResponseWrapper(context.Response))); >> >> ? ? ? ? ? ? ? ?_watch.Stop(); >> ? ? ? ? ? ? ? ?Utils.Log(">>> Request finished (" + >> _watch.ElapsedMilliseconds.ToString() + "ms)"); >> ? ? ? ? ? ?} >> ? ? ? ?} >> ? ?} >> >> ------------- 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 > From Jimmy.Schementi at microsoft.com Tue Sep 29 15:42:25 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Tue, 29 Sep 2009 19:42:25 +0000 Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at startup In-Reply-To: <21192f970909291013l798965d3p85390af1314f276f@mail.gmail.com> References: <21192f970909120258m49fede16r27623ef7b7f1d648@mail.gmail.com> <0047ECBFA2E0DF4A834AA369282A5AFC1EEA4C30@tk5ex14mbxc106.redmond.corp.microsoft.com> <21192f970909282126h2b09e6ech94924a5d64b78dcb@mail.gmail.com> <4B342496A3EFEB48839E10BB4BF5964C066B9F46@TK5EX14MBXC129.redmond.corp.microsoft.com>, <21192f970909291013l798965d3p85390af1314f276f@mail.gmail.com> Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEA5752@tk5ex14mbxc106.redmond.corp.microsoft.com> Martin, It's unfortunate that you had such trouble getting IronRuby to work on AWS. ASP.NET MVC is the right choice for now, as I'm still flushing out bugs with the Rack implementation. Have you seen IronRubyMVC? http://github.com/casualjim/ironrubymvc. That will let you write ASP.NET MVC applications with Ruby, and the polygot in me likes this approach much more; have a static compiled language be your framework, and a scripting language be your application code. That being said, running the existing Ruby web frameworks should work as good or better than MRI on IronRuby (at least, that's the goal), so tracking down issues like this is of most importance. Thanks for offering to track down these issues! Also make sure to see whether or not the same issues occur locally; AWS may have some restrictions I didn't anticipate. If you'd like to debug this together, via live meeting, skype, or whatever communication tool of your choice, let me know ... I'm more than happy to help out. ~Jimmy ________________________________________ From: ironruby-core-bounces at rubyforge.org [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith [martin.smith.jr at gmail.com] Sent: Tuesday, September 29, 2009 10:13 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] IronRuby Rack Timeout causing issues at startup Hi Tomas, Thanks for responding. It was a couple weeks ago, so I can really only discuss things from memory. To be honest, even the simple IronRuby.Rack test app would take a minute or two to load. I tried to add Rails' DB session store, and, oddly, it kept switching two of the column names so it would be trying to insert a long binary stream into a short column and giving me the "data would be truncated" error The biggest problem is that the worker process would keep dying with no explanation or error, and i would just get an error in the Application log that the worker process died. I've since tried running ASP.NET MVC on the same server without issue, so I'm pretty sure this was related to IronRuby somehow. I'm sorry I can't be more helpful. I was under a deadline and ended up having to re-implement the site on ASP.NET MVC so I couldn't be as helpful as I would have liked. If I get the chance, I'll try and reconfigure it again to see if I can track down some of the errors I was seeing. Thanks, Martin On Mon, Sep 28, 2009 at 11:49 PM, Tomas Matousek wrote: > Any chance you're running with "Debug" mode on? I can't think of why it would take 5 minutes if not. Could you describe the issues you're experiencing so that we can work on fixing them? > > Thanks, > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith > Sent: Monday, September 28, 2009 9:26 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] IronRuby Rack Timeout causing issues at startup > > Hi Jimmy, > > Rails was taking 5 minutes or so to start up on my Amazon Web Services machine. Actually, I was having a ton of troubles getting things all configured and as soon as I addressed one issue, two more would come up. I eventually had to abandon IronRuby for hosting my app. > > There were a couple more issues I ran into, but you're right... on my dev machine, WEBrick started up much more quickly. > > Not sure what the problem was. > > Thanks, > Martin > > On Mon, Sep 28, 2009 at 10:29 AM, Jimmy Schementi wrote: >> What you're experiencing should not be anything specific to IIS6; the first request of a IronRuby-based app is going to take a longer amount of time because IronRuby.Rack is compiling and running all the non-app code (Camping + other Ruby libraries, in your case). In other words, it's like your starting the server on the first run. IIS7 defaults to 110 seconds for a timeout, and I assume IIS6 has the same, which should be way more than enough time to start the app; a basic Rails app takes ~15 seconds to start up on my machine. How long does your app take to start outside of IIS? There should be no difference whether your running in IIS or not. >> ________________________________________ >> From: ironruby-core-bounces at rubyforge.org >> [ironruby-core-bounces at rubyforge.org] on behalf of Martin Smith >> [martin.smith.jr at gmail.com] >> Sent: Saturday, September 12, 2009 2:58 AM >> To: ironruby-core at rubyforge.org >> Subject: [Ironruby-core] IronRuby Rack Timeout causing issues at >> startup >> >> Hello, >> >> I wanted to let you know I was having all sorts of troubles getting >> Rails to start reliably running on IIS6 (though I don't think IIS6 has >> anything to do with it) and I had to increase the script timeout for >> the very first load of the application. >> >> I changed HttpHandler to the one i've included below. I think the >> locking is right, but has the side effect of possibly a few of the >> early scripts getting a longer timeout than expected. That's probably >> ok, but I'm not sure it's an "enterprise ready" solution. >> >> What do you guys think? Source included below. >> >> Thanks, >> Martin >> >> --------------- begin -------------------- internal sealed class >> HttpHandler : IHttpHandler { >> >> private readonly Stopwatch _watch = new Stopwatch(); >> private static bool _isFirstRequest = true; // added this >> >> public bool IsReusable { >> get { return true; } >> } >> >> public void ProcessRequest(HttpContext context) { >> lock (this) { >> if (_isFirstRequest) // added this if block >> { >> context.Server.ScriptTimeout = 600; >> _isFirstRequest = false; >> } >> >> Utils.Log(""); >> Utils.Log("=== Request started at " + >> DateTime.Now.ToString()); >> _watch.Reset(); >> _watch.Start(); >> >> Handler.IIS.Current.Handle(new Request(new >> HttpRequestWrapper(context.Request)), >> new Response(new >> HttpResponseWrapper(context.Response))); >> >> _watch.Stop(); >> Utils.Log(">>> Request finished (" + >> _watch.ElapsedMilliseconds.ToString() + "ms)"); >> } >> } >> } >> >> ------------- 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 From ivan at flanders.co.nz Wed Sep 30 04:56:40 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 30 Sep 2009 10:56:40 +0200 Subject: [Ironruby-core] 0.9.1 regression Message-ID: Hi I'd love to log this as a bug but I can't track down why. This is the code for a ResultFilter with IronRuby MVC class LightspeedFilter < ResultFilter def on_result_executing(context) # put before result filtering code here end def on_result_executed(context) context.controller.uow_scope.dispose end end I can see that it has a uow_scope instance but as soon as I call dispose on it it fails which didn't use to happen. I can't reproduce the scenario in the console which makes it harder to figure out what is going wrong. I've also tried putting Dispose, dispose(true), Dispose(true) but none of them work. I'm going to pull that code out and replace it with another OR/M. [NullReferenceException: Object reference not set to an instance of an object.] Microsoft.Scripting.Actions.Calls.OverloadResolver.MakeBindingTarget(CandidateSet targetSet) +580 Microsoft.Scripting.Actions.Calls.OverloadResolver.ResolveOverload(String methodName, IList`1 methods, NarrowingLevel minLevel, NarrowingLevel maxLevel) +359 IronRuby.Runtime.Calls.RubyMethodGroupBase.ResolveOverload(MetaObjectBuilder metaBuilder, CallArguments args, String name, IList`1 overloads, SelfCallConvention callConvention, Boolean implicitProtocolConversions, RubyOverloadResolver& resolver) +118 IronRuby.Runtime.Calls.RubyMethodGroupBase.BuildCallNoFlow(MetaObjectBuilder metaBuilder, CallArguments args, String name, IList`1 overloads, SelfCallConvention callConvention, Boolean implicitProtocolConversions) +68 IronRuby.Runtime.Calls.RubyMethodGroupInfo.BuildCallNoFlow(MetaObjectBuilder metaBuilder, CallArguments args, String name) +279 IronRuby.Runtime.Calls.RubyMemberInfo.BuildCall(MetaObjectBuilder metaBuilder, CallArguments args, String name) +42 IronRuby.Runtime.Calls.RubyCallAction.BuildCall(MetaObjectBuilder metaBuilder, String methodName, CallArguments args, Boolean defaultFallback, Boolean callClrMethods) +301 IronRuby.Runtime.Calls.RubyCallAction.Build(MetaObjectBuilder metaBuilder, CallArguments args, Boolean defaultFallback) +56 IronRuby.Runtime.Calls.RubyMetaBinder.Bind(DynamicMetaObject scopeOrContextOrTarget, DynamicMetaObject[] args) +216 System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel) +730 IronRuby.Runtime.Calls.RubyMetaBinder.BindDelegate(CallSite`1 site, Object[] args) +606 IronRuby.Runtime.Calls.RubyCallAction.BindDelegate(CallSite`1 site, Object[] args) +1434 System.Runtime.CompilerServices.CallSiteBinder.BindCore(CallSite`1 site, Object[] args) +130 System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +1195 ??;on_result_executed;lightspeed_filter.rb;7;71$56.??;on_result_executed;lightspeed_filter.rb;7;71(Object #self, Proc #block, Object context) in C:\dev\ironruby_book\Samples\MockChat\MockChat\Filters/lightspeed_filter.rb:9 Microsoft.Scripting.Utils.InvokeHelper`4.Invoke(Object arg0, Object arg1, Object arg2) +374 Microsoft.Scripting.Utils.ReflectedCaller.Invoke(Object[] args) +239 Microsoft.Scripting.Interpreter.CallInstruction.Run(InterpretedFrame frame) +140 Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame frame) +90 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) +104 Microsoft.Scripting.Interpreter.LightLambda.Run4(T0 arg0, T1 arg1, T2 arg2, T3 arg3) +393 IronRuby.Runtime.Calls.InterpretedFuncDispatcher`4.Invoke(CallSite callSite, T0 arg0, T1 arg1, T2 arg2) +580 System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) +1277 IronRuby.Classes.RubyResultFilter$1.OnResultExecuted(ResultExecutedContext ) +86 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +273 System.Web.Mvc.<>c__DisplayClass13.b__10() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +178 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +399 System.Web.Mvc.Controller.ExecuteCore() +126 IronRuby.Classes.RubyController$2.ExecuteCore() +111 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +27 System.Web.Mvc.IronRuby.Controllers.RubyController.Execute(RequestContext requestContext) in C:\dev\ironrubymvc\IronRubyMvc\Controllers\RubyController.cs:76 IronRuby.Classes.RubyController$2.Execute(RequestContext ) +120 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +151 System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +57 System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7 System.Web.Mvc.MvcHttpHandler.VerifyAndProcessRequest(IHttpHandler httpHandler, HttpContextBase httpContext) +61 System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContextBase httpContext) +111 System.Web.Routing.UrlRoutingHandler.ProcessRequest(HttpContext httpContext) +40 System.Web.Routing.UrlRoutingHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +7 ASP.default_aspx.Page_Load(Object sender, EventArgs e) in c:\dev\ironruby_book\Samples\MockChat\MockChat\Default.aspx:13 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at ruby-forum.com Wed Sep 30 09:17:28 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Wed, 30 Sep 2009 15:17:28 +0200 Subject: [Ironruby-core] calling ruby scripts from C# Message-ID: <1ebd60e63358c76bb6ca00fadaa8649b@ruby-forum.com> Dear users, I want to build a testscript scheduler / executer in C# that runs several Ruby scripts in sequence. For this I use IronRuby with the following constuction: ScriptRuntime runtime = Ruby.CreateRuntime(); ScriptEngine engine = runtime.GetEngine("rb"); loop through scripts: engine.ExecuteFile("script.rb"); This works fine for basic scripts. However some scripts have class definition that inherite from a base class. When such a script (class < baseclass) is passed in: engine.ExecuteFile("script.rb"); The following exception is thrown: Microsoft.Dynamic uninitialized constant Object::BaseClass I can not find a solution for this problem, so any suggestion is welcome. If I need an other approuch, do hesitate to say so. Still learning about Ruby integration in .NET Thanks in advance -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Sep 30 09:29:40 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 30 Sep 2009 15:29:40 +0200 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: <1ebd60e63358c76bb6ca00fadaa8649b@ruby-forum.com> References: <1ebd60e63358c76bb6ca00fadaa8649b@ruby-forum.com> Message-ID: you have to require the other files it uses too in the same engine. or you can add the paths to where the scripts can be found to the $LOAD_PATHS ($:) variable. require a file: http://github.com/casualjim/ironrubymvc/blob/master/IronRubyMvc/Core/RubyEngine.cs#L279 add load paths http://github.com/casualjim/ironrubymvc/blob/master/IronRubyMvc/Core/RubyEngine.cs#L346 --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 3:17 PM, Eelco Henderichs wrote: > Dear users, > > I want to build a testscript scheduler / executer in C# that runs > several Ruby scripts in sequence. > > For this I use IronRuby with the following constuction: > > ScriptRuntime runtime = Ruby.CreateRuntime(); > ScriptEngine engine = runtime.GetEngine("rb"); > > loop through scripts: > engine.ExecuteFile("script.rb"); > > This works fine for basic scripts. However some scripts have class > definition that inherite from a base class. > When such a script (class < baseclass) is passed in: > engine.ExecuteFile("script.rb"); > > The following exception is thrown: > Microsoft.Dynamic > uninitialized constant Object::BaseClass > > I can not find a solution for this problem, so any suggestion is > welcome. If I need an other approuch, do hesitate to say so. Still > learning about Ruby integration in .NET > > Thanks in advance > -- > 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 Wed Sep 30 09:43:33 2009 From: lists at ruby-forum.com (Aaron Clauson) Date: Wed, 30 Sep 2009 15:43:33 +0200 Subject: [Ironruby-core] Clear ScriptEngine Global Variables Message-ID: Hi, Is there anyway to clear all global variables from the IronRuby script engine? For example if I define a variable in a script and execute it: $myVar = "Hello" And then execute another script in a new scriptscope but with the same ScriptEngine instance and use: global_variables.each do |var| print("#{var} = #{eval('$' + var)}") end Then the myVar variable from the first instance will be listed. Thanks, Aaron -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Sep 30 09:47:48 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 30 Sep 2009 15:47:48 +0200 Subject: [Ironruby-core] Clear ScriptEngine Global Variables In-Reply-To: References: Message-ID: if (Runtime.Globals.ContainsVariable(className)) Runtime.Globals.RemoveVariable(className); --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 3:43 PM, Aaron Clauson wrote: > Hi, > > Is there anyway to clear all global variables from the IronRuby script > engine? > > For example if I define a variable in a script and execute it: > > $myVar = "Hello" > > And then execute another script in a new scriptscope but with the same > ScriptEngine instance and use: > > global_variables.each do |var| > print("#{var} = #{eval('$' + var)}") > end > > Then the myVar variable from the first instance will be listed. > > Thanks, > > Aaron > -- > 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 Wed Sep 30 10:07:56 2009 From: lists at ruby-forum.com (Aaron Clauson) Date: Wed, 30 Sep 2009 16:07:56 +0200 Subject: [Ironruby-core] Clear ScriptEngine Global Variables In-Reply-To: References: Message-ID: <3a71a50967f5058e81f79ce7a5c5cb78@ruby-forum.com> Ivan Porto carrero wrote: > if (Runtime.Globals.ContainsVariable(className)) > Runtime.Globals.RemoveVariable(className); > What if i don't know classname though? My application is operating in a shared environment where a large number of users are each executing their own custom scripts. Thanks, Aaron -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Wed Sep 30 10:23:03 2009 From: lists at ruby-forum.com (Eelco Henderichs) Date: Wed, 30 Sep 2009 16:23:03 +0200 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: References: <1ebd60e63358c76bb6ca00fadaa8649b@ruby-forum.com> Message-ID: Thanks! The require a file (containing the base) option works. But adding the path to the file containing the base class does not. Here C# reports an error that the file can not be found. Don't what's wrong here, but for know the require a file option will do the trick. -- Posted via http://www.ruby-forum.com/. From ivan at flanders.co.nz Wed Sep 30 11:20:12 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 30 Sep 2009 17:20:12 +0200 Subject: [Ironruby-core] Clear ScriptEngine Global Variables In-Reply-To: <3a71a50967f5058e81f79ce7a5c5cb78@ruby-forum.com> References: <3a71a50967f5058e81f79ce7a5c5cb78@ruby-forum.com> Message-ID: Do you want to do it from ruby or from C#? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:07 PM, Aaron Clauson wrote: > Ivan Porto carrero wrote: > > if (Runtime.Globals.ContainsVariable(className)) > > Runtime.Globals.RemoveVariable(className); > > > > What if i don't know classname though? > > My application is operating in a shared environment where a large number > of users are each executing their own custom scripts. > > Thanks, > > Aaron > > -- > 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 ivan at flanders.co.nz Wed Sep 30 11:23:52 2009 From: ivan at flanders.co.nz (Ivan Porto Carrero) Date: Wed, 30 Sep 2009 17:23:52 +0200 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: References: <1ebd60e63358c76bb6ca00fadaa8649b@ruby-forum.com> Message-ID: root |_ lib |_ great_class.rb |_ test |_ test_great_class.rb let's say I add root to my load path then I can reach the files in lib with require 'lib/great_class' or in test_great_class.rb you can do require File.dirname(__FILE__) + "/../lib/great_class" you are free to add the extension in case you're using require. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs wrote: > Thanks! The require a file (containing the base) option works. > > But adding the path to the file containing the base class does not. Here > C# reports an error that the file can not be found. Don't what's wrong > here, but for know the require a file option will do the trick. > -- > 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 CDurfee at tsys.com Wed Sep 30 13:29:58 2009 From: CDurfee at tsys.com (CDurfee at tsys.com) Date: Wed, 30 Sep 2009 11:29:58 -0600 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: <4B342496A3EFEB48839E10BB4BF5964C066BA65B@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: Agreed. We found if we changed the definition of class C, unless we did something like 'load', it would continue to use the old definition from the first load. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Tomas Matousek Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 10:27 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" cc Subject Re: [Ironruby-core] calling ruby scripts from C# If the base class is defined in file ?foo.rb? and used in file ?bar.rb? this should also work: engine.ExecuteFile(?foo.rb?); engine.ExecuteFile(?bar.rb?); Example: C:\Temp>type foo.rb class C end C:\Temp>type bar.rb class D < C end p D.ancestors C:\Temp>rbd IronRuby 0.9.1.0 on .NET 2.0.50727.4918 Copyright (c) Microsoft Corporation. All rights reserved. >>> engine = IronRuby.create_engine => Microsoft.Scripting.Hosting.ScriptEngine >>> engine.execute_file("foo.rb") => Microsoft.Scripting.Hosting.ScriptScope >>> engine.execute_file("bar.rb") [D, C, Object, Kernel] => Microsoft.Scripting.Hosting.ScriptScope Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 8:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# In our application, we also found we found 'load' useful in some circumstances to force reloading of script files, since 'require' will not reload files it knows it's already loaded. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Ivan Porto Carrero Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 09:41 AM Please respond to ironruby-core at rubyforge.org To ironruby-core at rubyforge.org cc Subject Re: [Ironruby-core] calling ruby scripts from C# root |_ lib |_ great_class.rb |_ test |_ test_great_class.rb let's say I add root to my load path then I can reach the files in lib with require 'lib/great_class' or in test_great_class.rb you can do require File.dirname(__FILE__) + "/../lib/great_class" you are free to add the extension in case you're using require. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs wrote: Thanks! The require a file (containing the base) option works. But adding the path to the file containing the base class does not. Here C# reports an error that the file can not be found. Don't what's wrong here, but for know the require a file option will do the trick. -- 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 The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ----------------------------------------- The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Sep 30 13:34:34 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 30 Sep 2009 17:34:34 +0000 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C066BA65B@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: Makes sense, that?s standard Ruby for you. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 10:30 AM To: ironruby-core at rubyforge.org Cc: ironruby-core at rubyforge.org; ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Agreed. We found if we changed the definition of class C, unless we did something like 'load', it would continue to use the old definition from the first load. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Tomas Matousek > Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 10:27 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" > cc Subject Re: [Ironruby-core] calling ruby scripts from C# If the base class is defined in file ?foo.rb? and used in file ?bar.rb? this should also work: engine.ExecuteFile(?foo.rb?); engine.ExecuteFile(?bar.rb?); Example: C:\Temp>type foo.rb class C end C:\Temp>type bar.rb class D < C end p D.ancestors C:\Temp>rbd IronRuby 0.9.1.0 on .NET 2.0.50727.4918 Copyright (c) Microsoft Corporation. All rights reserved. >>> engine = IronRuby.create_engine => Microsoft.Scripting.Hosting.ScriptEngine >>> engine.execute_file("foo.rb") => Microsoft.Scripting.Hosting.ScriptScope >>> engine.execute_file("bar.rb") [D, C, Object, Kernel] => Microsoft.Scripting.Hosting.ScriptScope Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 8:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# In our application, we also found we found 'load' useful in some circumstances to force reloading of script files, since 'require' will not reload files it knows it's already loaded. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Ivan Porto Carrero > Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 09:41 AM Please respond to ironruby-core at rubyforge.org To ironruby-core at rubyforge.org cc Subject Re: [Ironruby-core] calling ruby scripts from C# root |_ lib |_ great_class.rb |_ test |_ test_great_class.rb let's say I add root to my load path then I can reach the files in lib with require 'lib/great_class' or in test_great_class.rb you can do require File.dirname(__FILE__) + "/../lib/great_class" you are free to add the extension in case you're using require. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs > wrote: Thanks! The require a file (containing the base) option works. But adding the path to the file containing the base class does not. Here C# reports an error that the file can not be found. Don't what's wrong here, but for know the require a file option will do the trick. -- 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 ________________________________ The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ________________________________ The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tomas.Matousek at microsoft.com Wed Sep 30 13:42:19 2009 From: Tomas.Matousek at microsoft.com (Tomas Matousek) Date: Wed, 30 Sep 2009 17:42:19 +0000 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: References: <4B342496A3EFEB48839E10BB4BF5964C066BA65B@TK5EX14MBXC129.redmond.corp.microsoft.com> Message-ID: <4B342496A3EFEB48839E10BB4BF5964C066BA735@TK5EX14MBXC129.redmond.corp.microsoft.com> Kernel#load is very similar to ExecuteFile, so you can use either for bringing the definition up to date. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Wednesday, September 30, 2009 10:35 AM To: ironruby-core at rubyforge.org Cc: ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Makes sense, that?s standard Ruby for you. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 10:30 AM To: ironruby-core at rubyforge.org Cc: ironruby-core at rubyforge.org; ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Agreed. We found if we changed the definition of class C, unless we did something like 'load', it would continue to use the old definition from the first load. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Tomas Matousek > Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 10:27 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" > cc Subject Re: [Ironruby-core] calling ruby scripts from C# If the base class is defined in file ?foo.rb? and used in file ?bar.rb? this should also work: engine.ExecuteFile(?foo.rb?); engine.ExecuteFile(?bar.rb?); Example: C:\Temp>type foo.rb class C end C:\Temp>type bar.rb class D < C end p D.ancestors C:\Temp>rbd IronRuby 0.9.1.0 on .NET 2.0.50727.4918 Copyright (c) Microsoft Corporation. All rights reserved. >>> engine = IronRuby.create_engine => Microsoft.Scripting.Hosting.ScriptEngine >>> engine.execute_file("foo.rb") => Microsoft.Scripting.Hosting.ScriptScope >>> engine.execute_file("bar.rb") [D, C, Object, Kernel] => Microsoft.Scripting.Hosting.ScriptScope Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 8:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# In our application, we also found we found 'load' useful in some circumstances to force reloading of script files, since 'require' will not reload files it knows it's already loaded. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Ivan Porto Carrero > Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 09:41 AM Please respond to ironruby-core at rubyforge.org To ironruby-core at rubyforge.org cc Subject Re: [Ironruby-core] calling ruby scripts from C# root |_ lib |_ great_class.rb |_ test |_ test_great_class.rb let's say I add root to my load path then I can reach the files in lib with require 'lib/great_class' or in test_great_class.rb you can do require File.dirname(__FILE__) + "/../lib/great_class" you are free to add the extension in case you're using require. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs > wrote: Thanks! The require a file (containing the base) option works. But adding the path to the file containing the base class does not. Here C# reports an error that the file can not be found. Don't what's wrong here, but for know the require a file option will do the trick. -- 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 ________________________________ The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ________________________________ The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From CDurfee at tsys.com Wed Sep 30 14:31:33 2009 From: CDurfee at tsys.com (CDurfee at tsys.com) Date: Wed, 30 Sep 2009 12:31:33 -0600 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: Message-ID: Indeed. We came to Ruby from C#, so it wasn't immediately obvious to us. Thanks! -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Jim Deville Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 11:38 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" cc "ironruby-core-bounces at rubyforge.org" Subject Re: [Ironruby-core] calling ruby scripts from C# Makes sense, that?s standard Ruby for you. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 10:30 AM To: ironruby-core at rubyforge.org Cc: ironruby-core at rubyforge.org; ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Agreed. We found if we changed the definition of class C, unless we did something like 'load', it would continue to use the old definition from the first load. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Tomas Matousek Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 10:27 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" cc Subject Re: [Ironruby-core] calling ruby scripts from C# If the base class is defined in file ?foo.rb? and used in file ?bar.rb? this should also work: engine.ExecuteFile(?foo.rb?); engine.ExecuteFile(?bar.rb?); Example: C:\Temp>type foo.rb class C end C:\Temp>type bar.rb class D < C end p D.ancestors C:\Temp>rbd IronRuby 0.9.1.0 on .NET 2.0.50727.4918 Copyright (c) Microsoft Corporation. All rights reserved. >>> engine = IronRuby.create_engine => Microsoft.Scripting.Hosting.ScriptEngine >>> engine.execute_file("foo.rb") => Microsoft.Scripting.Hosting.ScriptScope >>> engine.execute_file("bar.rb") [D, C, Object, Kernel] => Microsoft.Scripting.Hosting.ScriptScope Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 8:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# In our application, we also found we found 'load' useful in some circumstances to force reloading of script files, since 'require' will not reload files it knows it's already loaded. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Ivan Porto Carrero Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 09:41 AM Please respond to ironruby-core at rubyforge.org To ironruby-core at rubyforge.org cc Subject Re: [Ironruby-core] calling ruby scripts from C# root |_ lib |_ great_class.rb |_ test |_ test_great_class.rb let's say I add root to my load path then I can reach the files in lib with require 'lib/great_class' or in test_great_class.rb you can do require File.dirname(__FILE__) + "/../lib/great_class" you are free to add the extension in case you're using require. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs wrote: Thanks! The require a file (containing the base) option works. But adding the path to the file containing the base class does not. Here C# reports an error that the file can not be found. Don't what's wrong here, but for know the require a file option will do the trick. -- 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 The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ----------------------------------------- The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeville at microsoft.com Wed Sep 30 16:23:22 2009 From: jdeville at microsoft.com (Jim Deville) Date: Wed, 30 Sep 2009 20:23:22 +0000 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: References: Message-ID: Apologies if my earlier answer was rude. I wasn?t trying to be rude, and looking at it I realize it could be taken as such. I know I appreciate hearing that people are using IronRuby on real projects, not just as a novelty language ? Thanks, JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 11:32 AM To: ironruby-core at rubyforge.org Cc: ironruby-core at rubyforge.org; ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Indeed. We came to Ruby from C#, so it wasn't immediately obvious to us. Thanks! -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Jim Deville > Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 11:38 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" > cc "ironruby-core-bounces at rubyforge.org" > Subject Re: [Ironruby-core] calling ruby scripts from C# Makes sense, that?s standard Ruby for you. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 10:30 AM To: ironruby-core at rubyforge.org Cc: ironruby-core at rubyforge.org; ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Agreed. We found if we changed the definition of class C, unless we did something like 'load', it would continue to use the old definition from the first load. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Tomas Matousek > Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 10:27 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" > cc Subject Re: [Ironruby-core] calling ruby scripts from C# If the base class is defined in file ?foo.rb? and used in file ?bar.rb? this should also work: engine.ExecuteFile(?foo.rb?); engine.ExecuteFile(?bar.rb?); Example: C:\Temp>type foo.rb class C end C:\Temp>type bar.rb class D < C end p D.ancestors C:\Temp>rbd IronRuby 0.9.1.0 on .NET 2.0.50727.4918 Copyright (c) Microsoft Corporation. All rights reserved. >>> engine = IronRuby.create_engine => Microsoft.Scripting.Hosting.ScriptEngine >>> engine.execute_file("foo.rb") => Microsoft.Scripting.Hosting.ScriptScope >>> engine.execute_file("bar.rb") [D, C, Object, Kernel] => Microsoft.Scripting.Hosting.ScriptScope Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 8:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# In our application, we also found we found 'load' useful in some circumstances to force reloading of script files, since 'require' will not reload files it knows it's already loaded. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Ivan Porto Carrero > Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 09:41 AM Please respond to ironruby-core at rubyforge.org To ironruby-core at rubyforge.org cc Subject Re: [Ironruby-core] calling ruby scripts from C# root |_ lib |_ great_class.rb |_ test |_ test_great_class.rb let's say I add root to my load path then I can reach the files in lib with require 'lib/great_class' or in test_great_class.rb you can do require File.dirname(__FILE__) + "/../lib/great_class" you are free to add the extension in case you're using require. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs > wrote: Thanks! The require a file (containing the base) option works. But adding the path to the file containing the base class does not. Here C# reports an error that the file can not be found. Don't what's wrong here, but for know the require a file option will do the trick. -- 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 ________________________________ The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ________________________________ The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ________________________________ The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From CDurfee at tsys.com Wed Sep 30 16:48:38 2009 From: CDurfee at tsys.com (CDurfee at tsys.com) Date: Wed, 30 Sep 2009 14:48:38 -0600 Subject: [Ironruby-core] calling ruby scripts from C# In-Reply-To: Message-ID: No worries, I didn't read your comment as rude. I fully realize the error of my ways in not embracing Ruby earlier in my career. ;) It's just an interesting thing to keep in mind with projects like IronRuby, that people come to it with different backgrounds. It will be interesting to see what sort of orientation documents are produced for those coming to IronRuby from a .NET (C#/VB.NET) background. I foresee articles like these from the days when C# was young: C++ -> C#: What You Need to Know to Move from C++ to C# http://msdn.microsoft.com/en-us/magazine/cc301520.aspx C# From a Java Developer's Perspective http://www.25hoursaday.com/CsharpVsJava.html -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Jim Deville Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 02:26 PM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" cc "ironruby-core-bounces at rubyforge.org" Subject Re: [Ironruby-core] calling ruby scripts from C# Apologies if my earlier answer was rude. I wasn?t trying to be rude, and looking at it I realize it could be taken as such. I know I appreciate hearing that people are using IronRuby on real projects, not just as a novelty language J Thanks, JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 11:32 AM To: ironruby-core at rubyforge.org Cc: ironruby-core at rubyforge.org; ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Indeed. We came to Ruby from C#, so it wasn't immediately obvious to us. Thanks! -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Jim Deville Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 11:38 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" cc "ironruby-core-bounces at rubyforge.org" Subject Re: [Ironruby-core] calling ruby scripts from C# Makes sense, that?s standard Ruby for you. JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 10:30 AM To: ironruby-core at rubyforge.org Cc: ironruby-core at rubyforge.org; ironruby-core-bounces at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# Agreed. We found if we changed the definition of class C, unless we did something like 'load', it would continue to use the old definition from the first load. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Tomas Matousek Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 10:27 AM Please respond to ironruby-core at rubyforge.org To "ironruby-core at rubyforge.org" cc Subject Re: [Ironruby-core] calling ruby scripts from C# If the base class is defined in file ?foo.rb? and used in file ?bar.rb? this should also work: engine.ExecuteFile(?foo.rb?); engine.ExecuteFile(?bar.rb?); Example: C:\Temp>type foo.rb class C end C:\Temp>type bar.rb class D < C end p D.ancestors C:\Temp>rbd IronRuby 0.9.1.0 on .NET 2.0.50727.4918 Copyright (c) Microsoft Corporation. All rights reserved. >>> engine = IronRuby.create_engine => Microsoft.Scripting.Hosting.ScriptEngine >>> engine.execute_file("foo.rb") => Microsoft.Scripting.Hosting.ScriptScope >>> engine.execute_file("bar.rb") [D, C, Object, Kernel] => Microsoft.Scripting.Hosting.ScriptScope Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of CDurfee at tsys.com Sent: Wednesday, September 30, 2009 8:58 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] calling ruby scripts from C# In our application, we also found we found 'load' useful in some circumstances to force reloading of script files, since 'require' will not reload files it knows it's already loaded. -- Chuck -- Chuck Durfee Lead Software Architect, CentreSuite TSYS iSolutions, Golden Email cdurfee at tsys.com Ivan Porto Carrero Sent by: ironruby-core-bounces at rubyforge.org 09/30/2009 09:41 AM Please respond to ironruby-core at rubyforge.org To ironruby-core at rubyforge.org cc Subject Re: [Ironruby-core] calling ruby scripts from C# root |_ lib |_ great_class.rb |_ test |_ test_great_class.rb let's say I add root to my load path then I can reach the files in lib with require 'lib/great_class' or in test_great_class.rb you can do require File.dirname(__FILE__) + "/../lib/great_class" you are free to add the extension in case you're using require. --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs wrote: Thanks! The require a file (containing the base) option works. But adding the path to the file containing the base class does not. Here C# reports an error that the file can not be found. Don't what's wrong here, but for know the require a file option will do the trick. -- 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 The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ----------------------------------------- The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jimmy.Schementi at microsoft.com Wed Sep 30 17:26:58 2009 From: Jimmy.Schementi at microsoft.com (Jimmy Schementi) Date: Wed, 30 Sep 2009 21:26:58 +0000 Subject: [Ironruby-core] [Code Review] Ruby project scripts - work items Message-ID: <0047ECBFA2E0DF4A834AA369282A5AFC1EEA6A01@tk5ex14mbxc106.redmond.corp.microsoft.com> Initial Ruby project scripts: get all closed/fixed work-items since a specific date. http://github.com/jschementi/ironruby/commit/1d6592281451e00ae42ba3aca29d8289fb1a0545 Uses Watir and Nokogiri to scrape work-items out of CodePlex's "Advanced Issues Tracker" page. The eventual goal of this library will be to automate releases, including uploading binaries to CodePlex/RubyForge, generating release notes, changelogs, etc. ~Jimmy