bugGNU Octave - Bugs: bug #56326, error message prints wrong line...

 
 

bug #56326: error message prints wrong line when reporting a syntax error

Submitter:  Carlo de Falco <cdf>
Submitted:  Wed 15 May 2019 03:40:10 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 16 May 2019 09:46:50 PM UTC, comment #2: 

I can confirm that after an update this worrks correctly.

Carlo de Falco <cdf>
Group Member
Wed 15 May 2019 09:14:08 PM UTC, comment #1: 

This looks a lot like bug #56266, can you make sure you have updated the default branch to include that fix and verify that this is still a problem? Your example works correctly for me.

Mike Miller <mtmiller>
Group Member
Wed 15 May 2019 03:40:10 PM UTC, original submission:  

Consider a file named bugtest.m containing the following code


function a = bugtest (b)



  a = (b(1), b(2));

endfunction


when executing the function, octave indicates the correct line number for the line containing the syntax error, but prints the first line in the file instead:


>> bugtest (1)
parse error near line 5 of file /private/tmp/bugtest.m

  syntax error

>>> function a = bugtest (b)
               ^

>>


Carlo de Falco <cdf>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cdf (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-16 mtmiller Open/ClosedOpen Closed
        Dependencies- Depends on bugs #56266
    2019-05-15 mtmiller StatusNone Duplicate

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code