You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 18, 2021. It is now read-only.
builddocsearchdb throws an error the first time the custom toolbox documentation is built if you are on the same folder as info.xml. Current way to fix it is restarting matlab and launching the doc again or rmPath/addPath by going to another folder first.
More investigation concluded that the paths need to be updated in a specific way :
The following code does not work when ran the normal way using the above procedure however, it does work if adding a breakpoint on the addpath line and continuing the execution. (This also means that doing the each lines manually works)
%% 6) Create a searchable toolbox help database
% Can be used to search for keywords in your published .m-files
fprintf('**********Searchable database generation: **********\n')
if createDB
cd ..
rmpath(genpath('shimming-toolbox'))
addpath(genpath('shimming-toolbox'))
cd shimming-toolbox
builddocsearchdb(pathHelpTOC);
end
It seems like Matlab needs to stop running so that it can register that the paths have updated. Using rehash does not work. Any Ideas?
builddocsearchdb throws an error the first time the custom toolbox documentation is built if you are on the same folder as info.xml. Current way to fix it is restarting matlab and launching the doc again or rmPath/addPath by going to another folder first.
To reproduce :
open Matlab
Quitting matlab and rerunning the commands above fixes the issue.
Then to reproduce, delete these files
and run the commands again.
The text was updated successfully, but these errors were encountered: