Broken again on mono


#1

Hi
IronRuby is broken again on mono. It throws NullReference Exceptions for
a
lot of operations. It also complains about something not being bound to
$exception

Just indicating this in case somebody wants to pick it up.

There is only 1 change required in the context.rb file to make it build
on
mono.

on line 378 in context.rb change
source = project_root + “Config\Unsigned\app.config”
to
source = project_root + “Config/Unsigned/app.config”

and some command output

+ivan@ivan-mbp:~
» iirb
:0:in `require’: unbound variable: $exception (TypeError)
from /Users/ivan/bin/iirb:10

+ivan@ivan-mbp:~
» igem list
:0:in <=>': Object reference not set to an instance of an object (System::NullReferenceException) from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/version.rb:123:in<=>’
from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:25
from IronRuby.Libraries:0:in Compare' from :0:in>’
from mscorlib:0:in CallSite.Target' from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:129:insatisfy?’
from :0:in []' from mscorlib:0:inCallSite.Target’
from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:122:in
satisfied_by?' from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:122:insatisfied_by?’
from IronRuby.Libraries:0:in <>m__3' from :0:ineach’
from mscorlib:0:in CallSite.Target' from IronRuby.Libraries:0:inEach’
from IronRuby.Libraries:0:in TrueForItems' from :0:inall?’
from mscorlib:0:in `CallSite.Target’
from /Users/ivan/bin/igem:14


#2

Thanks for the heads up, I’ll apply this fix.

JD

…there is no try

From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Ivan Porto
Carrero
Sent: Saturday, May 16, 2009 1:38 AM
To: ironruby-core
Subject: [Ironruby-core] broken again on mono

Hi

IronRuby is broken again on mono. It throws NullReference Exceptions for
a lot of operations. It also complains about something not being bound
to $exception
Just indicating this in case somebody wants to pick it up.

There is only 1 change required in the context.rb file to make it build
on mono.

on line 378 in context.rb change
source = project_root + “Config\Unsigned\app.config”
to
source = project_root + “Config/Unsigned/app.config”

and some command output

+ivan@ivan-mbp:~
» iirb
:0:in `require’: unbound variable: $exception (TypeError)
from /Users/ivan/bin/iirb:10

+ivan@ivan-mbp:~
» igem list
:0:in <=>': Object reference not set to an instance of an object (System::NullReferenceException) from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/version.rb:123:in<=>’
from
/Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:25
from IronRuby.Libraries:0:in Compare' from :0:in>’
from mscorlib:0:in CallSite.Target' from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:129:insatisfy?’
from :0:in []' from mscorlib:0:inCallSite.Target’
from
/Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:122:in
satisfied_by?' from /Users/ivan/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:122:insatisfied_by?’
from IronRuby.Libraries:0:in <>m__3' from :0:ineach’
from mscorlib:0:in CallSite.Target' from IronRuby.Libraries:0:inEach’
from IronRuby.Libraries:0:in TrueForItems' from :0:inall?’
from mscorlib:0:in `CallSite.Target’
from /Users/ivan/bin/igem:14

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)