@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.
Possible race condition with builddocsearchdb
1 次查看(过去 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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!