rmiml.visibleInToolstrip error while Editor is open

Hi, I found a similar question posted here, which was actually what alerted me to the fact that the error was occurring only when the editor was open. I am using Matlab 2017a and on multiple computers have been getting the following error:
Operands to the || and && operators must be convertible to
logical scalar values.
Error in rmiml.visibleInToolstrip
The error is thrown after trivial system calls. Replies in the thread I linked to above didn't appear to be relevant.

4 件のコメント

Wei-Chin Hsu
Wei-Chin Hsu 2018 年 1 月 17 日
I had this problem, how to fix it. Thanks a lot.
Chris McNorgan
Chris McNorgan 2018 年 1 月 18 日
編集済み: Chris McNorgan 2018 年 1 月 18 日
The root of the problem seems to be a filename collision (they refer to these as "shadowed" files): I have more than one file with the same name in my path. Here's the email I received from Mathworks:
There could be several other files shadowed apart from 'path.m'.
Based on the issue you have described, I suspect that 'edit.m' and
'disp.m' could be shadowed. Please run the commands
''which -all edit.m" and "which -all disp.m" and see if these files
are shadowed. Delete the duplicates and see if the issue is resolved.
Another option to try is to restore the default path. Please
execute the commands mentioned below to restore default path.
>> x = path;
>> restoredefaultpath;
Now try to open a new script in the editor and see if the issue
is still occurring. Let me know if this resolves the issue.
The previous path is saved in the variable 'x' and we can restore it
using the command "path(x)"
Here is the code for 'whichall.m', that the support contact provided me earlier in the email thread. This code recursively looks for shadowed files in the path:
remain = path;
diary('whichalloutput.txt');
while ~strcmp(remain,'')
[token, remain] = strtok(remain,':');
dircontents = dir([token '/*.m']);
disp(['FOLDER: ' token]);
disp('=======');
%First entry in MATLAB toolbox folders happen to be Contents.m
if (numel(dircontents)>0) && (~strcmp(dircontents(1).name,'Contents.m'))
filename = strtok(dircontents(1).name,'.m');
which(filename,'-all');
disp(char(13))
end
for i=2:numel(dircontents)
filename = strtok(dircontents(i).name,'.m');
which(dircontents(i).name,'-all');
disp(char(13))
end
end
diary off;
This code is written for Linux systems. If you use Windows, you may have an issue with the filesep character in the above script, but fixing the problem is a simple exercise in debugging (they originally sent me a Windows script, which I had to make the reverse change to run on Linux). Good luck
Bernard Hanseeuw
Bernard Hanseeuw 2019 年 5 月 23 日
I just installed R2017b on my new macbook pro running mojave 10.14.3.
I am getting this error each time I open the editor or run a statistical function (e.g., fitlm or fitlme), but only when the editor is open. Everything runs fine when the editor is closed.
The same error message always appears twice.
I have tried the code "whichall.m", but it did not help.
Does anyone know how to fix this?
Thanks a lot
Operands to the || and && operators must be convertible to logical scalar values.
Error in rmiml.visibleInToolstrip
Bernard Hanseeuw
Bernard Hanseeuw 2019 年 6 月 3 日
Does anyone know how to help?

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

回答 (0 件)

カテゴリ

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

タグ

質問済み:

2017 年 10 月 4 日

コメント済み:

2019 年 6 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by