Sharing some stuff + one question on mono

Hi,
two things:

  • I’m sharing in case it’s useful to someone else: I pushed some rake
    tasks
    here GitHub - thbar/ironruby-labs: Experimentations with IronRuby . I’m using it to
    download the DLR nightly to my Mac, patch ir.exe.config and launch mono
    ir.exe. I’ll add more things there as I go (including UI,
    experimentations
    etc).

  • is “mono Release/ir.exe -D somefile.rb” supposed to work with Mono 2.2
    and
    the latest DLR build (10584) ? It seems that I’m facing the issue Ivan
    reported a while back:

Macintosh:ironruby-labs thbar$ mono Release/ir.exe -D ui/ui.rb
mscorlib:0:in set_Fallback': Argument cannot be null. (System::ArgumentNullException) from mscorlib:0:in .ctor’
from mscorlib:0:in GetDecoder' from mscorlib:0:in Initialize’
from mscorlib:0:in .ctor' from mscorlib:0:in .ctor’

cheers,

– Thibaut

I have this bug fixed in my linux/mono branch. File a bug (if there
isn’t
one already) and I’ll submit my patch to it.

On Mon, Feb 9, 2009 at 7:48 PM, Thibaut Barrère

Hey,

On 2/10/09, Thibaut Barrère [email protected] wrote:

Macintosh:ironruby-labs thbar$ mono Release/ir.exe -D ui/ui.rb
mscorlib:0:in set_Fallback': Argument cannot be null. (System::ArgumentNullException) from mscorlib:0:in .ctor’
from mscorlib:0:in GetDecoder' from mscorlib:0:in Initialize’
from mscorlib:0:in .ctor' from mscorlib:0:in .ctor’

I’ve fixed this issue in Mono, the fix will make it in Mono 2.4.

Hey,
thanks guys for the feedback. Jb: is it fine to use this build ?
http://mono.ximian.com/monobuild/preview/download-preview/

– Thibaut

I just sent out a pull request, here’s the diff to fix the error:

Merlin/Main/Languages/Ruby/Ruby/Runtime/BinaryEncoding.cs

@@ -30,7 +30,8 @@ namespace IronRuby.Runtime {
// TODO: remove
public static readonly Encoding/!/ Obsolete = Instance;

  • private BinaryEncoding() {
  • private BinaryEncoding():base(0) {
  •   }
       public override int GetByteCount(char[]/*!*/ chars, int index, 
    

int
count) {

On Tue, Feb 10, 2009 at 9:27 AM, Michael L. <

Hi,
just tested with the latest dmg from
http://mono.ximian.com/monobuild/preview/download-preview/

I confirm it’s working :slight_smile:

thanks Jb!

– Thibaut

When I build mono from svn then the compression stuff seems to be
improperly
linked.
I have no idea what I should be doing to make that link properly that
way I
can just keep up with the trunk version on my laptop.

Hey,

On 2/11/09, Thibaut Barrère [email protected] wrote:

thanks guys for the feedback. Jb: is it fine to use this build ?
http://mono.ximian.com/monobuild/preview/download-preview/

It should be fine. Alternatively,the mono-2-4 branch from svn should
work as well, and will always be up to date.