Skip to content

listingScript not found ... #20

Description

@wandell

Hi @npcottaris

I am trying to set up my isetbio preferences for the UnitTestToolbox. (I want to run an ieValidateXXX) test.

I edited the critical struct in UnitTestPreferencesTemplate and it seemed to work OK ...

% Specify root directory.  This is the top level director of the
    % project.
    theProjectRootDir = isetbioRootPath;
    
    % Specify project-specific preferences
    p = struct(...
            'projectName',           'isetbio', ...                                                                                 % The project's name (also the preferences group name)
            'validationRootDir',     fullfile(theProjectRootDir, 'validation'), ...                                                    % Directory location where the 'scripts' subdirectory resides.
            'alternateFastDataDir',  '',  ...                                                                                          % Alternate FAST (hash) data directory location. Specify '' to use the default location, i.e., $validationRootDir/data/fast
            'alternateFullDataDir',  '', ... % fullfile(filesep,'Users', 'Shared', 'Dropbox', 'theProjectFullValidationData'), ...          % Alternate FULL data directory location. Specify '' to use the default location, i.e., $validationRootDir/data/full
            'clonedWikiLocation',    fullfile(theProjectRootDir,'wiki'), ... % Local path to the directory where the wiki is cloned. Only relevant for publishing tutorials.
            'clonedGhPagesLocation', fullfile(filesep,'Users',  'Shared', 'Matlab', 'Toolboxes', 'theProject_GhPages', 'theProject'), ...   % Local path to the directory where the gh-pages repository is cloned. Only relevant for publishing tutorials.
            'githubRepoURL',         'http://isetbio.github.io/isetbio', ...                                                           % Github URL for the project. This is only used for publishing tutorials.
            'generateGroundTruthDataIfNotFound',   false ...                                                                                % Flag indicating whether to generate ground truth if one is not found
        );

Running ieValidateFullAll I get this error about a preference listingScript

Error using prefutils>getFieldRequired (line 69)
preference listingScript does not exist in group isetbio

Error in prefutils (line 10)
[varargout{1:nargout}] = feval(varargin{:});

Error in getpref (line 85)
     retval{i} = prefutils('getFieldRequired',Group,prefCell{i},...

Error in UnitTest.getPref (line 8)
    preferenceValue = getpref(theProjectName, preferenceName);

Error in ieValidateFullAll (line 88)
listingScript = UnitTest.getPref('listingScript');

What goofy thing have I done now?

Thanks,

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions