bugGNU Octave - Bugs: bug #48194, lastwarn and lasterr produce wrong...

 
 

bug #48194: lastwarn and lasterr produce wrong outputs

Submitted by:  Juan Pablo Carbajal <juanpi>
Submitted on:  Fri 10 Jun 2016 12:06:35 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Works For MeAssigned to: None
Originator Name: jpiOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 10 Jun 2016 05:13:07 PM UTC, comment #5:

I moved the paragraph you mentioned to the previous section since it seems more relevant to raising errors than to catching errors. This is also where the corresponding paragraph is in the Issuing Warnings section.

http://hg.savannah.gnu.org/hgweb/octave/rev/e3b5d927dc81

Mike Miller <mtmiller>
Project Administrator
Fri 10 Jun 2016 04:30:57 PM UTC, comment #4:

Right,

Between the mailing list and here I mixed up the order of outputs.
Nevertheless, it was all due to the missing colon.

Thanks

Juan Pablo Carbajal <juanpi>
Project Member
Fri 10 Jun 2016 04:23:58 PM UTC, comment #3:

Actually, Octave does document this in the manual, but it is pretty hidden. After the docstring for lasterr there is this

Rik <rik5>
Project Administrator
Fri 10 Jun 2016 04:20:12 PM UTC, comment #2:

Mike is correct. All warning and error IDs must contain a colon. We are Matlab compatible on this point:

Rik <rik5>
Project Administrator
Fri 10 Jun 2016 03:20:47 PM UTC, comment #1:

I think you've got a couple things turned around here, and you also don't show your output (expect that someone else isn't seeing the same thing as you).

First, lasterr usage should be

so you got those switched around.

Second, I'm pretty sure "id" is not a valid error/warning identifier. I don't see it documented in our help anywhere, but it has to contain at least one colon, and no spaces.

So combining those two corrections, this works for me

Mike Miller <mtmiller>
Project Administrator
Fri 10 Jun 2016 12:06:35 PM UTC, original submission:

It seems lastwarn and lasterr are not providing the right outputs.
It might be that the error is in a lower level than these functions

Juan Pablo Carbajal <juanpi>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by juanpi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 10 Jun 2016 05:13:07 PM UTCmtmillerOpen/ClosedOpen=>Closed
    Fri 10 Jun 2016 03:20:47 PM UTCmtmillerStatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1