bugGNU Octave - Bugs: bug #46416, "methods" returns non...

 
 

bug #46416: "methods" returns non m-files from @classdir

Submitter:  Colin Macdonald <cbm>
Submitted:  Tue 10 Nov 2015 06:06:51 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 08 Mar 2016 10:00:25 PM UTC, comment #2: 

Fixed in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/ca8450b9ef5b).  Apparently this code had not had a review in years.

Rik <rik5>
Group administrator
Thu 26 Nov 2015 10:43:08 PM UTC, comment #1: 

Confirmed.  This appears to be a problem with the load_path::methods() function in C++.

Rik <rik5>
Group administrator
Tue 10 Nov 2015 06:06:51 PM UTC, original submission:  

If I have some files such as .txt, .png, .tst in "@myclass" dir, then they are incorrectly returned by "methods myclass".

Example:

>> ls @test_class
file.png  hello  test_class.m  test_method.m  text2.md        text.txt

>> methods test_class
Methods for class test_class:
file         test_class   test_method  text         text2


Interestingly, "hello" which has no extension is not returned.

In Matlab, only m-files are returned---well I haven't checked their docs but certainly .txt, .md, .png, .tst and no extension are ignored.

Colin Macdonald <cbm>

 

(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 cbm (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
    2016-03-08 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-11-26 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code