Hello everyone, I guess I am looking for an overview of IronRuby. My impression was that one could use it to compile ruby apps using VS.NET. using the VS IDE with debugging and Intellisense. Is this correct or is IronRuby something else? ... Also I do not see any reference as to what to do with the downloaded Zip file. from: http://www.ironruby.net/Download The getting started section doesn''t refer to it in any way that I can see. http://www.ironruby.net/Documentation/Getting_Started How does one install the zip file properly? Thanks, -- Posted via http://www.ruby-forum.com/.
IronRuby is an implementation of Ruby on the .NET platform It isn''t integrated in visual studio yet but you can use visual studio to debug ironruby code. There is no intellisense for ironruby and you will struggle to find any IDE that has some kind of properly working autocomplete like intellisense for the ruby language. You can use the console and ask the type for its methods if you want to use intellisense primarily for discovery. For ruby objects get all methods System::String.methods get instance methods System::String.instance_methods get class (static) methods System::String.methods - System::String.instance_methods To get started extract the downloaded zip file to a folder on your drive and add that folder\bin to your PATH environment variable for example C:\ironruby\bin if you extracted to C:\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) On Mon, Oct 5, 2009 at 6:02 PM, Tom Groff <lists at ruby-forum.com> wrote:> Hello everyone, > > I guess I am looking for an overview of IronRuby. > > My impression was that one could use it to compile ruby apps using > VS.NET. > using the VS IDE with debugging and Intellisense. > > Is this correct or is IronRuby something else? > > ... > > Also I do not see any reference as to what to do with the downloaded Zip > file. > from: http://www.ironruby.net/Download > > The getting started section doesn''t refer to it in any way that I can > see. > http://www.ironruby.net/Documentation/Getting_Started > > How does one install the zip file properly? > > Thanks, > -- > 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: <http://rubyforge.org/pipermail/ironruby-core/attachments/20091005/9b3a72e9/attachment.html>
Thank you for the response. Ivan Porto carrero wrote:> IronRuby is an implementation of Ruby on the .NET platform > It isn''t integrated in visual studio yetOkay. Understood.> but you can use visual studio to debug ironruby code.So is there a link that shows a simple step by step process to load and debug a Ruby file?> You can use the console and ask the type for its > methodsWhat console? Do you mean run the ir.exe without an input filename? -- Posted via http://www.ruby-forum.com/.
http://wiki.github.com/ironruby/ironruby/debugging can get you started on debugging -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tom Groff Sent: Monday, October 05, 2009 11:47 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Confused and Dazed Thank you for the response. Ivan Porto carrero wrote:> IronRuby is an implementation of Ruby on the .NET platform > It isn''t integrated in visual studio yetOkay. Understood.> but you can use visual studio to debug ironruby code.So is there a link that shows a simple step by step process to load and debug a Ruby file?> You can use the console and ask the type for its > methodsWhat console? Do you mean run the ir.exe without an input filename? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core
Ivan Porto carrero wrote:> There is no intellisense for ironruby and you will struggle to find any > IDE that has some kind of properly working autocomplete like intellisense > for the ruby language.We have! :-) http://www.sapphiresteel.com/Ruby-In-Steel-Developer-Overview Our IntelliSense is currently only for standard Ruby, however. While we do have a Visual Studio IDE that supports IronRuby, we released that a long time ago to support in-development releases of IR and this is far more basic than our commercial VS IDE for standard Ruby. We won''t be doing any more work on our IronRuby IDE until after the launch of IronRuby 1.0. best wishes Huw Collingbourne SapphireSteel Software http://www.sapphiresteel.com -- Posted via http://www.ruby-forum.com/.
Shri Borde wrote:> http://wiki.github.com/ironruby/ironruby/debugging can get you started > on debuggingIn my dreams. I seem to be missing some very basic steps to getting started with Iron Ruby. Documentation keeps talking about something called Merlin? Opening VS.NET and looking at opening a project shows no templates for IR. I would have thought that would be the first step. Can someone break this down for me? -- Posted via http://www.ruby-forum.com/.
Tom Groff wrote:> Shri Borde wrote: > > http://wiki.github.com/ironruby/ironruby/debugging can get you started > > on debugging > > In my dreams.Patience, this is what mailing lists are for :) More thorough documentation is on its way as it gets closer to 1.0.> I seem to be missing some very basic steps to getting started with Iron Ruby. > Documentation keeps talking about something called Merlin? > Opening VS.NET and looking at opening a project shows no templates for IR. > I would have thought that would be the first step. > Can someone break this down for me?Those instructions are geared towards contributors to IronRuby debugging Ruby code, as it is on GitHub. "Merlin" is a directory in the IronRuby source tree. However, replacing "c:\vsl\Merlin\Main\Bin\Debug" with your path to "ir.exe" (if you have the latest path, it''s "wherever/you/unzipped/it/bin/ir.exe") is good enough for most of that documentation. Visual Studio does not have any IronRuby project-system support when you install it. However, being able to debug a IronRuby script is entirely dependent on IronRuby providing the correct information to the Visual Studio debugger. Though the support isn''t great, you can place breakpoints in a Ruby script and step through it in VS: 1. Place a "gets" call as the first line of the Ruby script. 2. Run "ir.exe -D yourrubyscript.rb 3. Launch VS, and open yourrubyscript.rb. 4. Place a breakpoint somewhere in your code. 5. Launch VS, and go-to Tools > Attach to Process 6. Select the ir.exe process. 7. Switch back to your running Ruby script, and press "Enter". Now the script will run and the debugger will break at your breakpoint in Ruby code. Support for IronRuby debugging in VS has plenty of room to get better, especially if we had a project-system for Ruby to remove the need for starting the process yourself and attaching to it. We could also be better about emitting debug information so stepping into blocks/ifs/whiles/etc where easier/possible. Also, if IronRuby supported ruby-debug (which it does not today), then IronRuby could be debugged by any existing Ruby IDE. Today I use this very simple Ruby script to debug my IronRuby code: http://gist.github.com/116393. It just gives you a little repl loop wherever you ask for it; like "ruby-debug" but without the ability to step. Let me know if you have any more questions about debugging in Visual Studio, and keep an eye on this list for more information about Ruby debugging as we get closer to 1.0. ~Jimmy