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

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

[Octave-bug-tracker] [bug #62420] inputParser fails due to interpreter c


From: Georg Wiora
Subject: [Octave-bug-tracker] [bug #62420] inputParser fails due to interpreter changes in 7.1.0
Date: Fri, 6 May 2022 08:50:31 -0400 (EDT)

Follow-up Comment #4, bug #62420 (project octave):

I try to get closer to the core of this error. I use a function dirPlus()
<https://de.mathworks.com/matlabcentral/fileexchange/60716-dirplus> from
matlab fileexchange, that specifies _validateattributes()_ as a validation
function to input parser:

    addRequired(parser, 'rootPath', ...
                @(s) validateattributes(s, {'char'},{'nonempty'}));

Earlier versions of input parser specified that the validation function needs
to return something on error and nothing if ok. This is why using
_validateattributes()_ was ok in this usage but now is not any more.

If there is a problem in the 7.1.0 it has been introduced to
_validateattributes()_ some versions ago. Nevertheless it should not produce
any problem if _validateattributes()_ just returns true in all cases? This
would be an option to fix *my* troubles at least...


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62420>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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