bugGNU Octave - Bugs: bug #39439, Matlab warning and error IDs are...

 
 

bug #39439: Matlab warning and error IDs are not recognized

Submitted by:  John W. Eaton <jwe>
Submitted on:  Mon 08 Jul 2013 11:25:11 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: jweOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Mon 03 Feb 2014 04:22:19 PM UTC, comment #4:

Yes, the preferred style for Octave warning and error IDs is "Octave" followed by a colon followed by a series of words separated by hyphens.

John W. Eaton <jwe>
Project Administrator
Mon 03 Feb 2014 01:40:22 PM UTC, comment #3:

just for the record, Matlab's are CamelCase, e.g., 'MATLAB:UndefinedFunction' vs. 'Octave:undefined-function' (real examples).

Felipe G. Nievinski <fgnievinski>
Mon 03 Feb 2014 01:05:56 PM UTC, comment #2:

some guidelines about the style of error identifiers would help. it seems the preferred style is "spinal-case", as in "Octave:singular-matrix-div", although I've seen some in CamelCase, as in "Octave:sqrtm:SingularMatrix".

Felipe G. Nievinski <fgnievinski>
Sun 29 Dec 2013 07:31:04 PM UTC, comment #1:

I think users could accommodate different ids, e.g.:

octave:37> ones(2) \ [1;1]; [msg, id] = lastwarn ()
msg = warning: matrix singular to machine precision, rcond = 0
id = Octave:singular-matrix-div

provided they were always non-empty, unlike this:

octave:36> inv(ones(2)); [msg, id] = lastwarn ()
msg = warning: inverse: matrix singular to machine precision, rcond = 0
id =

it'd be pretty widespread change though...

Felipe G. Nievinski <fgnievinski>
Mon 08 Jul 2013 11:25:11 AM UTC, original submission:

Matlab users who use things like

probably expect to have warnings about singlar matrices disabled. We have separate warning IDs for Octave that serve the same purpose. Perhaps we should attempt to recognize Matlab warning and error IDs by doing some translation. For example, by converting MATLAB:singularMatrix to Octave:singular-matrix.

John W. Eaton <jwe>
Project Administrator

 

(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 fgnievinski (Posted a comment)
  • -unavailable- added by jwe (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup