V
Victor 'Zverok' Shepelev
Hello all.
It seems that the question relates to interpreter "internals", but I'm
afraid of ask silly questions in ruby-core.
The question is: why error messages of interpreter has inconsistent
addressing system of file and line?
There are at many slightly different schemes (and all of them can be present
in the same error backtrace):
path/file.rb:10: error text
path/file.rb:1:in `require': other-path/other-file.rb:31: error text
path/file.rb:7:in `method' error text
^ from path/file.rb:12
And so on. I can't invent one regexp for my output-capturing text editor
(EditPlus on Windows) for catch all cases and automatically extract file and
path for navigate me to this path.
Thanks for the answers.
v.
It seems that the question relates to interpreter "internals", but I'm
afraid of ask silly questions in ruby-core.
The question is: why error messages of interpreter has inconsistent
addressing system of file and line?
There are at many slightly different schemes (and all of them can be present
in the same error backtrace):
path/file.rb:10: error text
path/file.rb:1:in `require': other-path/other-file.rb:31: error text
path/file.rb:7:in `method' error text
^ from path/file.rb:12
And so on. I can't invent one regexp for my output-capturing text editor
(EditPlus on Windows) for catch all cases and automatically extract file and
path for navigate me to this path.
Thanks for the answers.
v.