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

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

[Octave-bug-tracker] [bug #56326] error message prints wrong line when r


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #56326] error message prints wrong line when reporting a syntax error
Date: Wed, 15 May 2019 11:40:12 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:66.0) Gecko/20100101 Firefox/66.0

URL:
  <https://savannah.gnu.org/bugs/?56326>

                 Summary: error message prints wrong line when reporting a
syntax error
                 Project: GNU Octave
            Submitted by: cdf
            Submitted on: Wed 15 May 2019 05:40:10 PM CEST
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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)
               ^

>> 






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56326>

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




reply via email to

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