Matlab 2021b: Run Section now interrupts currently running section?
Mostrar comentarios más antiguos
I have recently upgraded to MATLAB 2021b. In my script, I often run one section of my code (Command+Enter), and "queue up" another section of my code to run by clicking to that section and running that section with the same hotkey. This is helpful when debugging, for example, and I want to only run only some nonsequential sections of the script.
In MATLAB 2020a, this worked without a problem: the first section would run, then the second section. Now however, when I do this same thing, the first section of code will be interrupted with the error:
Operation terminated by user during LiveEditorEvaluationHelperE2113566987 (line 8)
How can this be fixed or changed? I have looked through the Preferences and found nothing relevant.
2 comentarios
Chaona Chen
el 19 de Oct. de 2021
I have this issue as well after install 2021b. It is really annoying.
Joseph Williams
el 19 de Oct. de 2021
Respuestas (3)
Michael Zauner
el 21 de Oct. de 2021
2 votos
it seems Matlab has changed the way 'Run section' works in the 2021b release.
The 'Run section' now queues the next execution instead of instantly triggering it.
1 comentario
Joseph Williams
el 21 de Oct. de 2021
Srijith Kasaragod
el 27 de Oct. de 2021
Editada: Srijith Kasaragod
el 27 de Oct. de 2021
1 voto
Hi Joseph,
This is a known issue which the developers are already aware of and might be fixed in a future release.
A workaround could be to use "Run and Advance" ("Ctrl+Shift+Enter") instead of "Run Section", upon which none of the sections get terminated.
Hope this helps!
1 comentario
Bram
el 9 de En. de 2023
It might be fixed in a future release?
Joseph Williams
el 19 de Oct. de 2021
Editada: Joseph Williams
el 19 de Oct. de 2021
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!