Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend mrb file format (add filename, lines info) #599

Closed
wants to merge 3 commits into from

Conversation

akiray03
Copy link
Contributor

@akiray03 akiray03 commented Dec 8, 2012

extend mrb file format (lines and filename infos append to end of irep->pool).

sample source code

$ cat t.rb 
puts "sample"
raise "sample error"
$ ./bin/mrbc t.rb 

before (not output line numbers)

$ ./bin/mruby -b t.mrb 
sample
trace:
        [0] (unknown):-1
RuntimeError: sample error

after (output line numbers and original filename)

$ ./bin/mruby -b t.mrb 
sample
trace:
        [0] t.rb:2
t.rb:2: sample error (RuntimeError)

@masuidrive
Copy link
Contributor

@matz Why do you accept this request?
I really want to use this feature!

@mattn
Copy link
Contributor

mattn commented Jan 11, 2013

:s/Why do you accept this request/Why don't you accept this request/

@mattn
Copy link
Contributor

mattn commented Mar 28, 2013

@masuidrive is this issue closable?

@masuidrive
Copy link
Contributor

I think so.

@matz
Copy link
Member

matz commented Mar 30, 2013

#1082 close this issue, I think.

@matz matz closed this Mar 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants