close
The Wayback Machine - https://web.archive.org/web/20070903213020/http://www.iunknown.com:80/2007/08/ironruby-on-rub.html

« Day 5 of Daddy Daycare | Main | What is this Merlin thing in IronRuby? »

August 31, 2007

IronRuby on Rubyforge!

Ruby's Diner

I'm happy to announce that we're live on Rubyforge today!

It's been nearly 6 weeks since our initial source code release at OSCON. So what's changed?

  • Exception handling
  • Parallel assignment
  • Instance variables

Added some more library support:

  • Comparable
  • Enumerable
  • Array
  • Hash
  • String (not quite complete yet)
  • Dir

Go get the sources and have a happy hacking weekend!

Update: John Messerly has just checked in an updated Rakefile that fixes some of the problems that folks have had with doing builds externally.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/t/trackback/2419952/21255779

Listed below are links to weblogs that reference IronRuby on Rubyforge!:

Comments

This is fantastic right before a long weekend. Thanks a ton and congrats on the release! Can't wait to dive in!

Fantastic news. Congrats on meeting your deadline of end of August.

haha!, Love the comment, Seo.

Hi,

Where is the exact link to download the codes. I already registered on RubyForge, but i could not find anything to download.

I have spent enough time hunting for the codes. Can any one provide the exact link to download the codes.

Thanks

SoftMind

@SoftMind,

It's under the SCM tab,

http://rubyforge.org/scm/?group_id=4359

Yeah, I know, SCM doesn't exactly bring about a sense of "Oh, this is where I would click to access the code." I would think just "Code" would do the trick, but apparently others feel differently.

FYI... via http://www.oreillynet.com/windows/blog/2007/09/ironruby_and_rubynet_labor_day.html

IronRuby and Ruby.NET Labor Day Weekend *HACKFEST* Extravaganza

So with the release of IronRuby to RubyForge and opening things up for community contribution (you will need to sign a contributors agreement before they will be able to accept your contributions, but that’s completely normal and an understood necessity by anyone who has contributed to a large open source project before) what better way to celebrate than by throwing a *HACKFEST* Extravaganza?

Of course, while we’re at it, why not spend some time helping out with the *other* .NET Ruby runtime and compiler project, Ruby.NET?

So without further adieu,

This Saturday… day, day < Sunday... day, day, and < Monday... day, day *ONLY*, the IronRuby and Ruby.NET Labor Day Weekend *HACKFEST* Extravaganza is coming to an IRC channel near you,

irc://irc.freenode.net/#ironruby

- and -

irc://irc.freenode.net/#ruby.net

[Said in the deepest, most stern Monster Truck Weekend announcer voice I can conjure up] BE THEEEERRE…

Thanks for the post! Now I know how I can fill my "empty time" during the weekend. ;-)

Hey Jon

Just wanted to give you the experience of a dev who's never worked with Ruby before, but wanted to play with it:

Installed Tortoise SVN, checked out the source. All went fine.

Opened Ruby.csproj in VS8. Building resulted in many compiler errors...I see there are missing references.

I searched for .csproj files in the trunk folder, and see several, so I add those to the solution.

Building still results in some errors. A root cause appears to be a missing mssharedlib.snk or similarly named key signing file.

I did a search for this file and don't see it. So I look for an alternate SNK.

I find debugKey.snk in the Microsoft.Scripting folder added set that as the sign key file in the Scripting project. Build results in the same error; looking for the missing mssharedlib.snk even though that's removed from the settings.

I'm thinking the project's new SNK just isn't sticking for some reason, so I save the project, unload it from VS, then reload. Same error.

I'm thinking the problem may be a bug in VS that doesn't save the new SNK. So I fire up VS9 and try it. Same error.

I take matters into my own hands and open the Scripting.csproj in a text editor and replace all references to mssharedlib.snk with debugkey.snk.

I fire it up again in VS9 and now it works, I can compile all the .csproj files in a single solution. Cool!

Anyways, just wanted to share my experience. I don't work on open source projects typically so a lot of this is new to me. Thought you might like to hear the experience of a Ruby and open source newb.

Now, where to go from here? :-) That is the question...

John,

Are you guys working on a proper build script for us to build this? The RakeFile is not of much value to us.

-Rob

@Rob: What's wrong with the Rakefile? If you type rake compile it should create a release mode build for you.

@Judah: Thanks for sharing the pain. I need to spin up a VM that lets me live the life as an external contributor, and without all of our internal environment stuff. Does the Rakefile work for you?

Rakefile did not work for me. Here is the output.

C:\projects\IronRuby>rake compile
(in C:/projects/IronRuby)
rake aborted!
undefined method `+' for nil:NilClass
C:/projects/IronRuby/rakefile:5
(See full trace by running task with --trace)

C:\projects\IronRuby>rake compile --trace
(in C:/projects/IronRuby)
rake aborted!
undefined method `+' for nil:NilClass
C:/projects/IronRuby/rakefile:5
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1855:in `load'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1855:in `load_rakefile'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake.rb:1929:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/bin/rake:7
c:/ruby/bin/rake.bat:20:in `load'
c:/ruby/bin/rake.bat:20

@Aaron: This looks like a case where csc.exe isn't on your path? Can you add csc.exe to your path and retry?

Thanks!

Tried here with rake, same result with Aaron. I have double verified and csc.exe is on path- I am using VS command console.

And whats the environment prerequisite to build IronRuby? I only have .net 2.0 installed, so I don't think its enough.

John,

I get the same thing everyone else does. CSC.EXE is in my path but the errors reported by Aaron are the ones I get.

So...what is wrong with the RakeFile?

-Rob

csc.exe is in the path in my instance as well.

Knowing it should work though, I'll see if I can't find more info tonight after daddy duty.

Same problem here, csc is in my path.

running:
rake compile MERLIN_ROOT=c:\path\to\ironruby\trunk
fixed it. make sure you give the right path.

That worked perfectly. Thanks a ton krishna!

I just checked in a fix for the rakefile. It doesn't require MERLIN_ROOT environment variable to be set anymore. Instead it gets the path of the rakefile itself, and uses that.

You still need to have FrameworkDir and FrameworkVersion set so it can find CSC. This is set automatically in a Visual Studio 2005 command prompt, but you can also set it manually via something like:

set FrameworkDir=C:\Windows\Microsoft.NET\Framework
set FrameworkVersion=v2.0.50727

The update worked great on my machine from the 2k5 command prompt. Thanks!

Thanks John. This worked perfectly for me too.

Hey John

You asked if I tried the Rakefile. To be honest, I've never heard of a rakefile before -- as I mentioned, I'm a newbie when it comes to open source projects.

I just looked it up and see it is similar to ant or make, but with functionality allowing one to "shell out to Ruby", I assume that means use Ruby from within the build script.

However, I'm not sure if I need to learn Rakefile now that I've gotten it building by tweaking the .csproj files.

Post a comment

If you have a TypeKey or TypePad account, please Sign In

BERJAYA

BERJAYA

Photos

  • www.flickr.com
    This is a Flickr badge showing public photos from John Lam. Make your own badge here.

September 2007

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Powered by TypePad