This is an old bug which was reported already in issue #1674. As this bug is still present in version 23.02.0 and I cannot reopen the issue, I create here a new one.
If a cell contains more than one line of code and its view is collapsed, so that just the first line is visible (hide-mode), the execution produces an error.
Steps to reproduce:
Enter in the first cell the following code which goes over 4 lines:
m : matrix(
[1, 2],
[3, 4],
[5, 6]) $
Enter in the second cell
m;
Collapse the first cell, so that only the first line of the cell is visible (hide-mode)
Press the button "Send all cells to maxima"
Then the following error occurs:
Please note, that there is also an additional semicolon added at the end in the first cell. Although this doesn't hurt, it shouldn't be there.
This is an old bug which was reported already in issue #1674. As this bug is still present in version 23.02.0 and I cannot reopen the issue, I create here a new one.
If a cell contains more than one line of code and its view is collapsed, so that just the first line is visible (hide-mode), the execution produces an error.
Steps to reproduce:
m;
Then the following error occurs:
Please note, that there is also an additional semicolon added at the end in the first cell. Although this doesn't hurt, it shouldn't be there.