Michael - Thanks for the quick response, but that's not quite what I meant. 
When I run Ruby and get an error, I get the complete stack trace of the Ruby 
code:

C:\temp>ruby t.rb
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:283:in `satisfy?': Bogus 
Error (RuntimeError)
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:273:in 
`satisfied_by?'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:86:in 
`all?'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:273:in `each'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:273:in `all?'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb:273:in 
`satisfied_by?'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:187:in 
`search'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:185:in 
`each'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:185:in 
`search'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:165:in 
`find_name'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:187:in `activate'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in 
`require'
        from t.rb:2

However, when I run IronRuby and get an error, I only get one line of ruby code 
and the rest is the C# stack trace:

C:\temp>ir t.rb
custom_require.rb:26:in `require': Bogus Error (RuntimeError)
        from 
C:\Projects\IronRuby\src\Microsoft.Scripting.Core\Actions\MatchCaller.Generated.cs:35:in
 `Call3'
        from 
C:\Projects\IronRuby\src\Microsoft.Scripting.Core\Actions\CallSite.cs:275:in 
`UpdateAndExecute'
        from 
C:\Projects\IronRuby\src\Microsoft.Scripting.Core\Actions\UpdateDelegates.Generated.cs:45:in
 `Update3'
        from :0
        from 
C:\Projects\IronRuby\src\Microsoft.Scripting.Core\Actions\MatchCaller.Generated.cs:35:in
 `Call3'
        from 
C:\Projects\IronRuby\src\Microsoft.Scripting.Core\Actions\CallSite.cs:275:in 
`UpdateAndExecute'
        from 
C:\Projects\IronRuby\src\Microsoft.Scripting.Core\Actions\UpdateDelegates.Generated.cs:45:in
 `Update3'
        from :0

The error really happens deep inside the Ruby code. Any ideas?

Thanks

Regards,
Jay Turpin
"Over 48.7% of all statistics are useless." - Anonymous
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to