Why's getFileInfoForToolstrip missing after update to R2018a

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 件のコメント

TjeerdB
TjeerdB 2018 年 3 月 27 日
I get the same error since I've installed R2018a and open matlab.
smsinks
smsinks 2018 年 3 月 27 日
I also get the same error
Tony P
Tony P 2018 年 3 月 27 日

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.

サインインしてコメントする。

 採用された回答

Sonam Gupta
Sonam Gupta 2018 年 3 月 29 日

13 投票

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 件のコメント

Tony P
Tony P 2018 年 3 月 29 日
Thanks. The suggested commands did indeed fix the problem. I did not need to restart.
Shunyuan Zhang
Shunyuan Zhang 2018 年 5 月 19 日
Thank you! The commands worked, without restarting the system.
Trepur
Trepur 2018 年 5 月 22 日
I am sorry, but neither option worked for me. I am running MatLab 2018a (9.4.0.857798) on a MacBook Pro (15inch, retina, late 2013), and I am getting the following three lines upon start-up:
Undefined function or variable 'matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip'. Undefined function or variable 'mls.internal.FevalService.init'. Undefined function or variable 'connector.internal.lifecycle.callConnectorStarted'.
As described in the previous postings, the first of the three shows up each time I try to save a file.
Is there another, deeper way of getting this fixed?
Thanks
Antoni
Antoni 2018 年 6 月 12 日
Thanks! I had the same problem and the suggested commands fixed the problem.
Edward Barile
Edward Barile 2019 年 2 月 26 日
Excellent! Thanks - it worked
ANTHONY REID
ANTHONY REID 2019 年 3 月 21 日
This solution worked for me too.
Taewook Kang
Taewook Kang 2019 年 3 月 25 日
Thanks a lot. It worked for me too.
In my case, I changed the version 2018a -> 2019b.
Henan Yu
Henan Yu 2019 年 10 月 6 日
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 2019 年 10 月 24 日
Thank you so much! My MATLAB was not working as well and this really helped! Thank you again :)

サインインしてコメントする。

その他の回答 (2 件)

Peter Urlings
Peter Urlings 2018 年 10 月 4 日

2 投票

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.
Thomas Burschil
Thomas Burschil 2018 年 7 月 12 日

0 投票

I get the same three errors, but restoring the path or reinstall Matlab does not work out. Any suggestions?

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

質問済み:

2018 年 3 月 26 日

コメント済み:

BBB
2019 年 10 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by