line numbers in scripts

David Bateman dbateman at dbateman.org
Thu Jan 29 14:54:03 CST 2009


Søren Hauberg wrote:
> Hi
>
> With a recent checkout of the development sources I see some issues with
> line numbers when encountering errors in scripts (the problem seems not
> to exist with functions). I have a script called 'somename.m' with the
> following contents
>
> "
> sin (7);
>
> gfdgfdgfdg
> "
>
> when I run it, I get the following error:
>
> error: `gfdgfdgfdg' undefined near line 3 column 1
> error: called from:
> error:   /home/sh/Skrivebord/somename.m at line -1, column -1
>
> I would have expected it to say "line 3, column, 1".
>
> Søren
>
> _______________________________________________
> Bug-octave mailing list
> Bug-octave at octave.org
> https://www-old.cae.wisc.edu/mailman/listinfo/bug-octave
>   

The changeset in the thread

http://www.nabble.com/line-number-tracking-in-the-parser-to21370487.html

I believed fixed this..

D.

PS John was the new evaluator class talked about in this thread ever 
applied? Or was the issue of setting the breakpoints with it a showstopper?

-- 
David Bateman                                dbateman at dbateman.org
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)



More information about the Bug-octave mailing list