sbiosaveproject gives error "Unrecognized function or variable 'cleanupDirectories'."
47 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jen
le 14 Jan 2026 à 6:39
Modifié(e) : Priya Moorthy
le 14 Jan 2026 à 18:53
I am using simbiology to run my code and its been working fine. However, periodically I would have errors with sbiosaveproject.
When I get errors, I can dive into the sbiosaveproject and see that its doing a try and catch on the sbiogate function (this code is taken from line 130-160 of sbiosaveproject:
errorOccurred = false;
try
filesToZip = {matFileName, manifestFileName};
sbiogate('privateadddesktopfilestoproject', projfilename_new, filesToZip);
catch
errorOccurred = true;
end
If I debug and stop it at that function and run it in the command line, i get this error:
K>> sbiogate('privateadddesktopfilestoproject', projfilename_new, filesToZip)
Unrecognized function or variable 'cleanupDirectories'.
Error in privateadddesktopfilestoproject
feval(varargin{:});
^^^^^^^^^^^^^^^^^^^
If I do a which on cleanupDirectories, I get this:
K>> which cleanupDirectories
'cleanupDirectories' not found.
I have tried to delete all forms of MatLab and redownload. I have read and write access to all the temp folders. I have tried to specifically manually delete and reinstall simbiology. Nothing works to get the sbiosaveproject code to run again.
0 commentaires
Réponse acceptée
Priya Moorthy
le 14 Jan 2026 à 17:09
Modifié(e) : Priya Moorthy
le 14 Jan 2026 à 18:53
Jen, I am very sorry that you have run into errors calling sbiosaveproject. There are two issues here:
1) The missing “cleanupDirectories” function is being called when trying to clean up a temporary output directory that was left behind from a previous failed call to sbiosaveproject. Restarting MATLAB will reset the temporary output directory.
2) If sbiosaveproject errored in a previous call to save a given project <projName>.sbproj, there may be an intermediate file, <projName>.new.sbproj, in the same directory. Delete this file and try saving again in a fresh MATLAB session.
We will address both of these bugs in future releases of MATLAB.
Priya
0 commentaires
Plus de réponses (0)
Communautés
Plus de réponses dans SimBiology Community
Voir également
Catégories
En savoir plus sur Extend Modeling Environment dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!