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 Jul 8 11:25:11 2013  
 
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.

 

Thu Feb 25 22:19:15 2016, comment #5:

One of the projects on the project page is to give all Octave errors/warnings an ID. Would it be sensible to try to harmoinze Octave and Matlab IDs at the same time?

I'm not sure if TMW has copyrighted their message IDs, but for short ones (like singular matrix) that are presumably too short to copyright, it would nice for Octave's ID to be the same as Matlab's ID, subject to the "Octave:" prefix and spinal-case replacing camelCase.

For the project on adding IDs, would the goal be to have a small set of IDs used in multiple places, or for each customized error to have its own ID? There are already different error messages that have the same ID (like for non-conformable operands, where the message indicates the operator and the operand sizes). How far should that extend?

Lachlan Andrew <lachlan>
Project Member
Mon Feb 3 16:22:19 2014, 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 Feb 3 13:40:22 2014, 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 Feb 3 13:05:56 2014, 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 Dec 29 19:31:04 2013, 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 Jul 8 11:25:11 2013, 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 lachlan (Posted a comment)
  • -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