Possible race condition with builddocsearchdb

14 次查看(过去 30 天)
I am running R2017b and I am trying to programmatically generate help document databases so my code can be searched from the doc browser. I've followed all the steps to publish all functions, generate info.xml, and generate helptoc.xml. Once I have all those in place I should be able to run builddocsearchdb. When I run my function that accomplishes all of the listed steps I get errors saying "There is no installed product with this help location.". However if I set a breakpoint in my code and step over each call to builddocsearchdb it works fine. I suspect there's a race condition but I've spent all day trying to resolve it unsuccessfully. I could really use some help on this.
Attached is the file to run and a zip file that needs to be extracted. The folder that contains the extracted files are what you select in the dialog once you've ran generate_help_databases_recursively.m.
  1 个评论
Thomas Sawyer
Thomas Sawyer 2022-7-11
@Jan, you've had some pretty valuable responses to some of my posts. What do you think about this problem? I've actually had a small handful of problems that have this exact same behavior. On one occasion I had a function that added some folders to the path and then on the next line I tried to execute a function in one of those folders and Matlab would error, saying it doesn't exist. However just like in this case, if I set a breakpoint and stepped through it it worked fine.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by