Yeah, they are a work in progress. Backtrace is probably hard to spec
because it may differ implementation to implementation.
JD
Yeah, they are a work in progress. Backtrace is probably hard to spec
because it may differ implementation to implementation.
JD
Could you sent the script where you see the behavior? What parameters do
you pass on command line?
I tried this and it works:
a.rb:
def foo
bar
end
def bar
raise
end
begin
foo
rescue
p $!
puts $!.backtrace
end
C:\Temp>ir -D a.rb
#<RuntimeError: RuntimeError>
a.rb:6:in bar' a.rb:2:in
foo’
a.rb:10
Tomas
Sure, i’ll zip up the code and send it over to you.
Ben
On Mon, Sep 29, 2008 at 3:47 AM, Tomas M.
Are you running IronRuby in compilation or interpret mode? I have a
feeling
that the stack tracing might not work right in interpret mode. Is that
right Tomas?
RubySpecs are definitely a work in progress and anything you can do to
help
push them along would be warmly welcomed, in my experience!
By the way, be careful running rake mspec:… By default it runs under
ci
mode which doesn’t run specs that have a fail tag. See ironruby-tags
project that you should have got from Git. (ci stands for continuous
integration and is designed to catch regression bugs)
Try running with run as the runner. I.E. rake mspec:core Exception -
run.
This will also run those tagged specs and give a much better idea of
what is
implemented/working in IronRuby. Of course if the specs are empty then
this
won’t make any difference.
Pete
I implemented some basic support last week, so you will get some traces
Tomas
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs