Forum: IronRuby broken again on mono

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
1e39a948a58f4569c53d971c2e120920?d=identicon&s=25 Ivan Porto carrero (casualjim)
on 2009-05-16 11:05
(Received via mailing list)
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:in
`satisfy?'
from :0:in `[]'
 from mscorlib:0:in `CallSite.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:in
`satisfied_by?'
from IronRuby.Libraries:0:in `<>m__3'
 from :0:in `each'
from mscorlib:0:in `CallSite.Target'
from IronRuby.Libraries:0:in `Each'
 from IronRuby.Libraries:0:in `TrueForItems'
from :0:in `all?'
from mscorlib:0:in `CallSite.Target'
 from /Users/ivan/bin/igem:14
Ade8632553a9243ae05fc920f68644c1?d=identicon&s=25 Jim Deville (Guest)
on 2009-05-17 02:46
(Received via mailing list)
Thanks for the heads up, I’ll apply this fix.

JD

…there is no try

From: ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] 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:in
`satisfy?'
          from :0:in `[]'
          from mscorlib:0:in `CallSite.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:in
`satisfied_by?'
          from IronRuby.Libraries:0:in `<>m__3'
          from :0:in `each'
          from mscorlib:0:in `CallSite.Target'
          from IronRuby.Libraries:0:in `Each'
          from IronRuby.Libraries:0:in `TrueForItems'
          from :0:in `all?'
          from mscorlib:0:in `CallSite.Target'
          from /Users/ivan/bin/igem:14



--
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
This topic is locked and can not be replied to.