action Init:
val = 0
atomic action Next:
print(1,
y,
x)
The variables y and x are not defined. So, the error trace would look like,
E0623 01:29:13.795345 65903 starlark.go:34] Error executing stmt: filename.fizz:2:9: undefined: y
panic: Between Lines 5 and 7: Error executing statement: print(1,
y,
x)
On the first line, the actual error is present, but the linenumber and filename is incorrect. The second line has the correct line numbers, and the actual code that caused the error.
This not the perfect solution though.
For example: for this code,
The variables y and x are not defined. So, the error trace would look like,
On the first line, the actual error is present, but the linenumber and filename is incorrect. The second line has the correct line numbers, and the actual code that caused the error.
These will be fixed and cleaned up eventually.