octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52585] Functions in namespace directories are


From: Rik
Subject: [Octave-bug-tracker] [bug #52585] Functions in namespace directories are not recognized by path functions such as which() or type()
Date: Thu, 7 Dec 2017 14:00:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #52585 (project octave):

                 Summary: type cannot list the source of a function in a
namespace => Functions in namespace directories are not recognized by path
functions such as which() or type()

    _______________________________________________________

Follow-up Comment #5:

As another workaround, can also give the namespace and the m-file name.


type +containers/Map.m


The root problem is that which() should be able to find


+containers/Map
containers/Map
Map


when the parent directory to +containers is on the the path.

As yet another workaround, adding the namespace to the path explicitly makes
things work.


addpath scripts/+containers


This is probably a clue as to the eventual solution.  When directories are
added using addpath, they should probably be scanned for +namespace
directories and those might be added to the internal path variable, although
not displayed if someone calls path().


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52585>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]