MATLAB Answers

Why's getFileInfoForToolstrip missing after update to R2018a

178 views (last 30 days)
Tony P
Tony P on 26 Mar 2018
Commented: BBB on 24 Oct 2019
Since updating to MAtlab R2018a, I have been getting the error: Undefined function or variable 'matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip', periodically in my command window. Specifically happens every time that I save a file in the editor.

  3 Comments

TjeerdB
TjeerdB on 27 Mar 2018
I get the same error since I've installed R2018a and open matlab.
Tony P
Tony P on 27 Mar 2018

I also saw that if i closed all files, cleared workspace and restarted Matlab 2018a, I got multiple errors regarding missing files/folders. Browsing around, I saw those folders did exist in my 2017a tree but have been deprecated from my 2018a tree. (example is: C:\Program Files\MATLAB\R2017a\toolbox\matlab\addons\fallbackmanager). I added one of these directories in the 2017a tree to my path, and restarted 2018a. No errors on restart! Then I removed the 2017a folder from my path and again restarted 2018a. To my surprise, still no error at startup.

However... I still see the same error: Undefined function or variable 'matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip' each time I save a file I've edited.

Sign in to comment.

Accepted Answer

Sonam Gupta
Sonam Gupta on 29 Mar 2018
For performance purposes, MATLAB caches a list of files on the MATLAB search path (including toolbox files), and this cache can persist even after closing MATLAB (but not after restarting your machin). It seems that this cache is getting into a bad state on your machine.
Try the following commands:
restoredefaultpath
rehash toolboxcache
savepath
If the above fails to resolve the issue, try restarting your system.

  9 Comments

Show 6 older comments
Taewook Kang
Taewook Kang on 25 Mar 2019
Thanks a lot. It worked for me too.
In my case, I changed the version 2018a -> 2019b.
Henan Yu
Henan Yu on 6 Oct 2019
Sorry, not working for mine. Still getting these errors and I cannot do anything with matlab, even I re-installed twice.
Unrecognized function or variable 'rmiml.visibleInToolstrip'.
Unrecognized function or variable 'rmiml.visibleInToolstrip'.
Please help me with this
Thank you
Henan
BBB
BBB on 24 Oct 2019
Thank you so much! My MATLAB was not working as well and this really helped! Thank you again :)

Sign in to comment.

More Answers (2)

Peter Urlings
Peter Urlings on 4 Oct 2018
In addition to Sonam Gupta's comments, be sure to check the Matlab startup folder.
(On windows, the default is %userprofile%\documents\MATLAB\ )
If there is a pathdef.m file there, Matlab will load this on startup. See if removing or renaming this file solves your issue.

  0 Comments

Sign in to comment.


Thomas Burschil
Thomas Burschil on 12 Jul 2018
I get the same three errors, but restoring the path or reinstall Matlab does not work out. Any suggestions?

  0 Comments

Sign in to comment.

Sign in to answer this question.