hedy icon indicating copy to clipboard operation
hedy copied to clipboard

[BUG] Reported line number out of sync after each indented statement-block

Open eremmel opened this issue 2 years ago • 0 comments

Describe the bug When program contains a bug at line N, the line number N is reported in the error block below the program-enter-window. But the line number gets out of sync after each indented code block (nested indenting adds as well). My impression is that the size (number of lines) in the indented block do not contribute to the line number deviation.

Paste the Hedy code & level The issue is observed at the levels: 8, 10, 13, 17, 18 (not all levels tested).

Add a screenshot (optional) Here is a program without indenting and an error on line 7. Reported correctly: image

Now lines 4 to 6 are replaced with indented block note the reported line number: image

This happens with two indented blocks of code: image

So some larger and complicated programs get hard to debug...

Expected behavior Correct line number should be show regardless program contains indented code block or not.

What machine and browser you were using (optional) N/A. Server issue.

eremmel avatar Sep 16 '22 14:09 eremmel