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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login