bugGNU Octave - Bugs: bug #61057, Octave gives incorrect column...

 
 

bug #61057: Octave gives incorrect column number in error messages

Submitter:  Solomon Douglas <solomon>
Submitted:  Wed 18 Aug 2021 07:38:31 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Solomon Douglas Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 Aug 2021 09:36:38 PM UTC, comment #2: 

As expected, this was a simple typo.  The variable 'l' for line number was used in generating the message when it should have been 'c' for column number.  Fixed in this changeset: http://hg.savannah.gnu.org/hgweb/octave/rev/feb1a81ced05.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Wed 18 Aug 2021 09:20:27 PM UTC, comment #1: 

Confirmed.

Attached is a test file which shows the error.  Download it and then run tst_line_num to see the issue.

(file #51798)

Rik <rik5>
Group administrator
Wed 18 Aug 2021 07:38:31 PM UTC, original submission:  

If I try to invoke a nonexistant function (usually due to a typographical error), the resulting error message gives the same number for both the line number and the column number. Specifically, it gives the line number twice.

For example, if I have a script "testbug.m" consisting of 99 blank lines and then a bogus function call, thus:


##...99 blank lines...
aoseutaoesu();


Then when I invoke the script, this is what I get:


>> testbug
error: 'aoseutaoesu' undefined near line 100, column 100
error: called from
    testbug at line 100 column 1
>>


Solomon Douglas <solomon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51798:  tst_line_num.m added by rik5 (175B - text/x-matlab)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by solomon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-08-18 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2021-08-18 rik5 Attached File- Added tst_line_num.m, #51798
        StatusNone Confirmed
        Release6.3.0 dev
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code