bugGNU Octave - Bugs: bug #49158, warning ending in newline does no...

 
 

bug #49158: warning ending in newline does no traceback, but it is not documented

Submitter:  Francesco Potortì <pot>
Submitted:  Thu 22 Sep 2016 11:56:58 AM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.3 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 Mar 2019 08:50:02 PM UTC, comment #3: 

I fixed this on the stable branch by adapting the text suggested here



Closing as fixed.

Mike Miller <mtmiller>
Group Member
Thu 22 Sep 2016 04:18:45 PM UTC, comment #2: 

Looking better at the manual, it will probably make more sense to just make a reference from the warning function to the error function, where the text describing this behaviour is long, detailed and includes two examples which probably would make little sense replicating.

So, I suggest that, after the first paragraph, ending with the words "makes sense for your program to go on.", a new short paragraph be added like this (no changeset, sorry):


If the warning message does not end with a newline character, Octave will print a traceback of all the function calls leading to the error.  See [error] for details and examples.


Francesco Potortì <pot>
Thu 22 Sep 2016 03:24:13 PM UTC, comment #1: 

Should be simple, as you say, to adapth the existing language.  If you prepare a changeset I can review and commit it.

Rik <rik5>
Group administrator
Thu 22 Sep 2016 11:56:58 AM UTC, original submission:  

Like errors, warning do not produce a backtrace when the message ends with a  newline.

Unlike error(), this behaviour is not documented for warning().

It should be enough to copy and adapt the relevant text from the documentation of error() (look for "traceback messages").

Francesco Potortì <pot>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by pot (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-03-06 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-09-22 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code