microbit-foundation / micropython-microbit-v2

Temporary home for MicroPython for micro:bit v2 as we stablise it before pushing upstream
MIT License
43 stars 24 forks source link

Error message does not scroll line number on V2 #56

Closed microbit-mark closed 3 years ago

microbit-mark commented 3 years ago

micro:bit support #42322

Micro bit v2 will tell you if there is an error eg syntax or name error, but, unlike the original microbit, does not specify which line the error is on. It shows a sad face then the error message. Is there any way, other than using the original microbit, to locate the error?

This is true both of the scrolling message and in the REPL.

V1 contains the line number V2 does not contain the line number

Could we still offer the line number for V2 to help people locate the error?

carlosperate commented 3 years ago

Have you tried this in the beta editor? I think it's been included in the beta.3 release of MicroPython.

microbit-mark commented 3 years ago

Thanks @microbit-carlos. Tested in https://python.microbit.org/v/beta and this is resolved

microbit-carlos commented 3 years ago

Great, thanks for checking. I'll close this issue then.