Error when using REPL in PyMakr 1.0.0.b5-1 and hitting backspace



  • Steps to reproduce:

    1. Open PyMakr.
    2. Attach LoPy via ttyUSBx
    3. Enter any command, like print("Hello world!") and hit enter
    4. Go back to this command with arrow up, move around with the cursor and try changing some characters by deleting them with backspace.
    5. There are some strange reactions to that, like sudden "ESC" sequences popping up in the line.
    6. 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.


Log in to reply
 

Pycom on Twitter