Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

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

    Scheduled Pinned Locked Moved MicroPython
    pymakrbugrepl
    2 Posts 2 Posters 1.2k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      peter
      last edited by peter

      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]
      
      A 1 Reply Last reply Reply Quote 0
      • A Offline
        abilio @peter
        last edited by

        @peter Thanks a lot for your detailed bug report. We will try to reproduce it, and fix it for the next release.

        1 Reply Last reply Reply Quote 0

        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
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom