bbcmicrobit / PythonEditor

A MicroPython editor for the BBC micro:bit that works with browsers.
https://python.microbit.org/
MIT License
197 stars 130 forks source link

Error displays incorrect line #365

Closed microbit-mark closed 3 years ago

microbit-mark commented 3 years ago

micro:bit support: #42322

In this example, a syntax error is introduces on line 3, removing the : from the loop

from microbit import *

while True
    display.scroll(str(temperature()))
    display.scroll(' celsius ')

However, The micro:bit displays that there is a syntax error on line 4. This is the same in there console.

It should display line 3.

Not sure if this is a MicroPython error, as my version of Mu is not currently working so haven't tested. The ticket requester states that this does not reproduce in Mu though

microbit-carlos commented 3 years ago

If we are talking about the micro:bit scrolling the error this would be MicroPython related. Could you open in the respective V1 or V2 repo depending on the version affected? or is it present in both versions?

microbit-mark commented 3 years ago

Raised in https://github.com/microbit-foundation/micropython-microbit-v2/issues/59 so closing here