R2022a problem: Line number missing in error message sent to Command Window.
80 views (last 30 days)
With R2022a, line numbers are sometimes omitted in error messages. Here's an example using a trivial script:
If I run the same script in R2021b, here's the result:
Weird. What's going on?
Is there a way to fix this in R2022a?
Siddharth Bhutiya on 18 May 2022
Edited: Adam Danz on 16 Oct 2023
Update: this bug was fixed in R2022a update 3 and in R2022b.
This is a bug, thank you for reporting it! I have passed it along and it will be fixed in a future release.
Here is the bug report for this: https://www.mathworks.com/support/bugreports/2608278
As mentioned in the bug report, while this is being fixed, you could use MException.last.stack(1) to see the line number.