Error when using REPL in PyMakr 1.0.0.b5-1 and hitting backspace
-
Steps to reproduce:
- Open PyMakr.
- Attach LoPy via ttyUSBx
- Enter any command, like
print("Hello world!")
and hit enter - Go back to this command with arrow up, move around with the cursor and try changing some characters by deleting them with backspace.
- There are some strange reactions to that, like sudden "ESC" sequences popping up in the line.
- Go on editing like before using backspace and the error ensues.
Here is the log:
2016-10-23, 10:01:19 -------------------------------------------------------------------------------- <type 'exceptions.IndexError'>: string index out of range -------------------------------------------------------------------------------- File "/usr/share/pymakr/modules/Plugins/REPL/Shell.py", line 559, in __write advance = self.__simulateVT100(s[i:]) File "/usr/share/pymakr/modules/Plugins/REPL/Shell.py", line 534, in __simulateVT100 if s[0] == 'K': -------------------------------------------------------------------------------- Version Numbers: Python 2.7.12 Qt 4.8.7 PyQt 4.11.4 sip 4.17 QScintilla 2.9.1 WebKit 537.21 Pymakr 1.0.0.b5 Platform: linux2 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609]
-
@peter Thanks a lot for your detailed bug report. We will try to reproduce it, and fix it for the next release.