Cant ignore errors anymore
9 次查看(过去 30 天)
显示 更早的评论
I used to have an options with right mouse click to ignore any errors in the editor, but it no longer apears. What happened to it? This is worse than irritating as it makes it difficult to see if the file contains errors. For example, when appending a table with a cell of strings the editor gives an error saying that I should be using square braces. I now have to continuously go through every error to see if it is something that should be ignored or not.
9 个评论
Michael Abboud
2021-3-2
Hi Matthew, sorry to hear about this issue. The live script should behave the same as a plain code (.m) file, when it comes to these fix and suppression options (as of R2020a).
When I add a bunch of semicolons to a live script in R2020b and then right-click on the warning, I see the following options: "Remove semicolon.", "Suppress Message...", and "Open Message or Expand Details".
- What do you see in this case?
As a workaround, you could try inserting the suppression manually. For example, you could copy the relevant code to the plain code editor, then suppress using "In This File". This will create a directive like "%#ok<*NOPRT>". You can then paste this into your live script to suppress the message.
采纳的回答
Michael Abboud
2021-3-3
The live script should behave the same as a plain code (.m) file, when it comes to these fix and suppression options (as of R2020a).
When I add a bunch of semicolons to a live script in R2020b and then right-click on the warning, I see the following options: "Remove semicolon.", "Suppress Message...", and "Open Message or Expand Details".
It sounds like the issue has resolved itself, but as a workaround you could try inserting the suppression manually. For example, you could copy the relevant code to the plain code editor, then suppress using "In This File". This will create a directive like "%#ok<*NOPRT>". You can then paste this into your live script to suppress the message.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!