octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34852] incorrect column number on error messa


From: Rik
Subject: [Octave-bug-tracker] [bug #34852] incorrect column number on error messages
Date: Tue, 31 Jul 2018 20:02:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Update of bug #34852 (project octave):

                Priority:              5 - Normal => 3 - Low                

    _______________________________________________________

Follow-up Comment #5:

Marking as low priority.  It seems better to print the column number because
often it will be correct and help localize debugging.  Occasionally, as in
this instance, it can be off.

Another thing that could be improved, however, is getting the column numbers
to add when there is more than one statement on a line.  For example,


clear all
sind z)
error: 'z' undefined near line 1 column 7


That's correct as 'z' appears in column 7.  Now,


a = 12345; sind (z)
error: 'z' undefined near line 1 column 18


which is also correct.  But as soon as you throw in operators things get off. 
In the following, z is at column 31 always but the the column is off in
different ways.


octave:5> a = [1 2] .* [3 4]; b = sind (z)
error: 'z' undefined near line 1 column 29
octave:5> a = 12345; sind (z)
error: 'z' undefined near line 1 column 18
octave:5> a = [1 2] * [3 4]'; b = sind (z)
error: 'z' undefined near line 1 column 28




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34852>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]