bugGNU Octave - Bugs: bug #50894, error message for exist() does not...

 
 

bug #50894: error message for exist() does not report file or line number

Submitter:  Ceral Paquet <octavebugs>
Submitted:  Fri 28 Apr 2017 06:26:31 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 May 2017 04:16:34 PM UTC, comment #4: 

I backported the patch to stable here (http://hg.savannah.gnu.org/hgweb/octave/rev/7eb0077e86f0).  Closing report.

Rik <rik5>
Group administrator
Fri 28 Apr 2017 08:13:21 PM UTC, comment #3: 

Seems useful enough to backport this to stable.

Rik <rik5>
Group administrator
Fri 28 Apr 2017 07:36:35 PM UTC, comment #2: 

I pushed the following changeset on default.  I suppose this change could go on stable as well if it is OK to add a public function.

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

John W. Eaton <jwe>
Group administrator
Fri 28 Apr 2017 06:40:13 PM UTC, comment #1: 

Confirmed.  This is a regression from 4.0.3 where this worked.

Rik <rik5>
Group administrator
Fri 28 Apr 2017 06:26:31 PM UTC, original submission:  

Normally errors messages give a nice message telling you where the error is and which file. The exist() function lacks this info.

Code:

function testtesttest()
a = 1;
exist(a)



Output:

>> testtesttest
error: wrong type argument 'scalar'
error: exist: NAME must be a string


Ceral Paquet <octavebugs>

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by octavebugs (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-05-03 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2017-04-28 rik5 CategoryNone Interpreter
        Item GroupNone Regression
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code