function "getFileInfoForToolstrip" endless loop
조회 수: 54 (최근 30일)
이전 댓글 표시
I use the cvx tool box in my code. "getFileInfoForToolstrip" function is called. And it become endless loop. It can't jump out of this function. But this function is written by MathWorks, I am confuse how i can solve it?
Following is the function I copy from the function.
function [isTestFile, isValidFile, isClassBasedTest] = getFileInfoForToolstrip(file)
[SL: snipped the full body of the MathWorks function]
댓글 수: 1
Ayush
2024년 8월 13일 2:30
I am not able to reproduce the error, please share the MATLAB version or output of ver command. This information will help me understand the context and dependencies involved, and facilitate reproducing the issue more accurately.
답변 (1개)
Divyam
2024년 8월 20일 7:16
Hi @Cindy, I have encountered this issue after the introduction of JavaScript Desktop to MATLAB. This issue is caused by numerous pieces of code which are waiting to be executed in the command window before you press "ENTER" after typing your command. The function "getFileInfoForToolstrip" is one of those pieces of code which blocks the MVM thread and causes the delay you are experiencing.
A couple of workarounds for this issue are:
- Break down the MATLAB file into multiple files (if the size of your MATLAB file is a few thousand lines of code)
- In MATLAB preferences, go to MATLAB > Editor/Debugger > Automatic Completions; switch "suggestions and completions" to "show on tab" and then avoid using tab completion.
I am no longer facing this issue since MATLAB version 2022b and later. You can download MATLAB 2022b using this link: https://www.mathworks.com/products/new_products/release2022b.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!