Configuring SciTE to Run IronRuby

I talked with Ariel today and recommended him my favorite Ruby editor for small scripts and apps – SciTE.

The nice thing about SciTE is the ability to run your script file from the application via the F5 key. Since we were talking about IronRuby, SciTE gave us good syntax highlighting and auto-completion features, but we couldn’t execute our code on the IronRuby interpreter.

BUT… this is a problem of the past now! with a few simple steps, you can turn your SciTE environment to an IronRuby stupendous development environment! or at least make it use the IronRuby interpreter…

Now, to the job:

  1. Open SciTE.
  2. Go to Options->Open ruby.properties:
    Running IronRuby via SciTE Step 1
  3. A file with a lot of settings will be opened inside the editor window. Look for the text “ruby $(FileNameExt)” (I have it on line  108 and  116).
  4. Change “ruby $(FileNameExt)” to “ir $(FileNameExt)” on both places (if you’re on Windows, changing the first one will be enough):
    Running IronRuby via SciTE Step 2
    Pay attention that there is the rbw line (look at line 110 on the image). I haven’t changed it because it’s not that common to use rbw files and also IronRuby doesn’t have the option as far as I know… I just left it there to use the regular MRI interpreter.
    If you want to make sure that every Ruby file on SciTE environment is run via IronRuby, change “rubyw $(FileNameExt)” to “ir $(FileNameExt)” as well.
  5. Note
    You must  have ir.exe defined in your PATH environment variable in order for this to work.  It is a good practice to do that, but if you don’t want to, just write the full path to ir.exe instead of just “ir”.
  6. Save the file.


That’s it, your’re done! now go and create an rb file and hit F5. IronRuby will run your script now.

Running IronRuby via SciTE Step 3

Enjoy!
Shay.


Comments

March 26. 2010 02:46 AM

pingback

Pingback from iupdateable.wordpress.com

5 Steps to getting started with IronRuby «  IUpdateable from Eric Nelson

iupdateable.wordpress.com

November 4. 2010 08:11 PM

trackback

IronRuby Posts Recap

IronRuby Posts Recap

IronShay

April 25. 2011 02:14 PM

jane

I would say that your site is one of a kind. Please post more....  I will share something beneficial and extraordinary http://olfacts.com  you must see this!

jane

August 24. 2011 12:30 PM

pingback

Pingback from ericnelson.wordpress.com

5 Steps to getting started with IronRuby | IUpdateable from Eric Nelson (UK)

ericnelson.wordpress.com

January 12. 2012 11:57 AM

Brain Dumps

It's great. Much helpful. Thanks a lot.

Brain Dumps

January 13. 2012 02:37 PM

Exam Sheets

Very Nice Post with great amount of info.

Exam Sheets

January 20. 2012 08:47 AM

TestKiller

Nice, I really appreciate your work. Thanks for sharing.

TestKiller

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Subscribe Subscribe

That's Me!

Hi! I'm Shay Friedman
I'm Shay Friedman - a Visual C#/IronRuby MVP, a consultant and instructor of .NET technologies, author, speaker and new technologies freak
More about me

Contact Me

> Contact page
> Twitter: @ironshay
> LinkedIn profile

Search

Hosted By

I'm hosting this site on Arvixe and I'm very happy with it.
If you're looking for ASP.NET hosting, I highly recommend it
(and if you order from this link I also get some beer money!)
Web Hosting