extall / fomcon-matlab

FOMCON toolbox for MATLAB
MIT License
32 stars 14 forks source link

Error due to a field missing from the info.xml file with MATLAB R2022a #11

Closed extall closed 2 years ago

extall commented 2 years ago

With the toolbox installed, upon launch of MATLAB R2022a, the following error is displayed in the MATLAB workspace:

Unrecognized field name "help_location".

Error in matlab.internal.doc.project.buildToolboxStruct>getSourceFileStruct/updateDocSourceFileStruct (line 88)
        xmlFileStruct.help_location = fixSlashes(xmlFileStruct.help_location);

Error in matlab.internal.doc.project.buildToolboxStruct>getSourceFileStruct (line 76)
            updateDocSourceFileStruct;

Error in matlab.internal.doc.project.buildToolboxStruct>getSourceFileStructArray (line 55)
        fileStruct = getSourceFileStruct(file);

Error in matlab.internal.doc.project.buildToolboxStruct (line 3)
    docFileStructArray = getSourceFileStructArray(docFiles);

Error in matlab.internal.doc.project.getCustomToolboxes (line 12)
        customToolboxes = matlab.internal.doc.project.buildToolboxStruct(docFiles,demoFiles);

Error in matlab.internal.doc.updateCustomDocContent (line 2)
    matlab.internal.doc.project.getCustomToolboxes;

The reason for this is a missing field (help_location) in the info.xml file.

extall commented 2 years ago

Fixed by removing the offending file. In the future, the file may return when the docs are updated.