I have been experiencing this behavior with Micropython v1.9.4. When I Ctrl/C a running script after I save a new version to my PyBoard, the script does not start when I Ctrl/D. Instead, I get a bogus "SyntaxError: invalid syntax" at a line where there is no error or anywhere above it. Eventually, the script starts, but this is pretty annoying.
Code: Select all
>>>
PYB: sync filesystems
PYB: soft reboot
Traceback (most recent call last):
File "main.py", line 25
SyntaxError: invalid syntax
MicroPython v1.9.4 on 2018-05-11; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
PYB: sync filesystems
PYB: soft reboot
Traceback (most recent call last):
File "main.py", line 25
SyntaxError: invalid syntax
MicroPython v1.9.4 on 2018-05-11; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
PYB: sync filesystems
PYB: soft reboot
Press Ctrl/C to quit.
8-Dale