필터 지우기
필터 지우기

Unrecognized field name "help_location".

조회 수: 17 (최근 30일)
Amir Parnianifard
Amir Parnianifard 2022년 1월 23일
댓글: Hong Chen 2022년 4월 15일
Hi all,
I have just updated my Matlab to 2022a release. However, when starting Matlab it makes errors as below. I appreciate let me know how can I remove the errors. Thanks.
---------------------------------------------------------------------------
Unrecognized field name "help_location".
Error in matlab.internal.doc.project.buildToolboxStruct>getSourceFileStruct (line 77)
xmlFileStruct.help_location = fixSlashes(xmlFileStruct.help_location);
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;
Unrecognized field name "help_location".
Error in matlab.internal.doc.project.buildToolboxStruct>getSourceFileStruct (line 77)
xmlFileStruct.help_location = fixSlashes(xmlFileStruct.help_location);
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.search.configureSearchServer>findCustomToolboxes (line 40)
tbxs = matlab.internal.doc.project.getCustomToolboxes;
Error in matlab.internal.doc.search.configureSearchServer (line 12)
tbxs = findCustomToolboxes;
---------------------------------------------------------------------------------
  댓글 수: 3
mbvoyager
mbvoyager 2022년 4월 1일
편집: mbvoyager 2022년 4월 1일
I have the same issue and the hotfixes provided by Walter here didn't work. Actually with this error it is not possible to call the MATLAB doc or help.
A reinstallation does not solve the issue. However, I still have an old version installed. I will try to deinstall the old version and reinstall solely the new. Maybe that helps.
Hong Chen
Hong Chen 2022년 4월 15일
I have same issue

댓글을 달려면 로그인하십시오.

답변 (1개)

Tricia
Tricia 2022년 4월 1일
This error can be caused by either an info.xml or demos.xml file on the MATLAB path that is missing an expected field.
An info.xml file could be missing the name or help_location fields.
A demos.xml file could be missing the name field.
The issue can be resolved by:
1) Finding the problematic file
2) Removing it from the MATLAB path or fixing it according to the documentation for authoring custom documentation or examples.
To find the problematic file, execute the commands shown below in MATLAB.
Find possible problematic info.xml file:
>> allFiles = string(which('info.xml','-all'));
>> notUnderMatlabRoot = ~startsWith(allFiles,matlabroot);
>> files = allFiles(notUnderMatlabRoot)
Find possible problematic demos.xml file:
>> allFiles = string(which('demos.xml','-all'));
>> notUnderMatlabRoot = ~startsWith(allFiles,matlabroot);
>> files = allFiles(notUnderMatlabRoot)
files will contain a list of files to inspect manually. Look for one that is missing the field from the "Unrecognized field name" error message.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by