Sharing some stuff + one question on mono


#1

Hi,
two things:

  • I’m sharing in case it’s useful to someone else: I pushed some rake
    tasks
    here http://github.com/thbar/ironruby-labs/tree/master . 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:inInitialize’
from mscorlib:0:in .ctor' from mscorlib:0:in.ctor’

cheers,

– Thibaut


#2

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


#3

Hey,

On 2/10/09, Thibaut Barrère removed_email_address@domain.invalid 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:inInitialize’
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.


#4

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

– Thibaut


#5

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. <


#6

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


#7

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.


#8

Hey,

On 2/11/09, Thibaut Barrère removed_email_address@domain.invalid 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.