Error using matlab.cod​etools.req​uiredFiles​AndProduct​s (line 91)

Hello,
Here is an error with checking required products. This worked fine previously but not now.
[fList,pList] = matlab.codetools.requiredFilesAndProducts('test.mlapp');
Error using matlab.codetools.requiredFilesAndProducts (line 91)
Simulink is not avaiable.
First time this happened while trying to compile:
Log error details:
Error while determining required deployable files. Compilation terminated. Details:
Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('matlab.depfun.internal.SimulinkModelInspector', 'C:\Program Files\MATLAB\R2019b\toolbox\matlab\depfun\+matlab\+depfun\+internal\SimulinkModelInspector.m', 11)" style="font-weight:bold">matlab.depfun.internal.SimulinkModelInspector</a> (<a href="matlab: opentoline('C:\Program Files\MATLAB\R2019b\toolbox\matlab\depfun\+matlab\+depfun\+internal\SimulinkModelInspector.m',11,0)">line 11</a>)
Simulink is not avaiable.
mcc failed.
license('inuse') shows, but I am not sure what was it before.
matlab
I tried other version R2018b and R2019a. They are working fine with same license but I need R2019b version.
I tried signing out (Win 10) and restarting MATLAB R2019b. Same problem still there. This is with any app, not one that uses Simulink...
  • What is the solution for R2019b?

 채택된 답변

Bereketab Gulai
Bereketab Gulai 2020년 11월 24일
Here is the response from the support:
"This dependency analysis can be suppressed by commenting the following lines of code:
>> edit toolbox/matlab/depfun/+matlab/+depfun/+internal/Completion.m
% if requirementsConstants.isSimulinkCompilerAccessible
% slx = matlab.depfun.internal.SimulinkModelInspector(objHandles, fcnHandles, flags);
% for ext = requirementsConstants.simulinkModelExt
% obj.Inspectors(ext{1}) = slx;
% end
% end
On my computer, it is line 1754 to 1759. "
Take care making these changes, and you will likely need Admin rights....

추가 답변 (2개)

Sean de Wolski
Sean de Wolski 2020년 4월 22일

0 개 추천

Please contact technical support. At the very least this is a bug because available has a typo in it.

댓글 수: 1

Okay, I have posted as bug into the service request..
  • But work around would be great for now?

댓글을 달려면 로그인하십시오.

Dirk Twisk
Dirk Twisk 2020년 11월 23일
편집: Dirk Twisk 2020년 11월 23일

0 개 추천

Did you ever receive a reply? Running into the same issue and just posted a new question today (11-23-2020)

댓글 수: 2

Bereketab Gulai
Bereketab Gulai 2020년 11월 24일
편집: Bereketab Gulai 2020년 11월 24일
see above, accepted answer.
Yes, I asked the question as well, and received a different answer; which also works and does not rquire you to modify any files:

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2020년 4월 22일

댓글:

2020년 12월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by