Content-Length: 256626 | pFad | http://github.com/bbcmicrobit/PythonEditor/issues/280

CD Beta: Pasting text into REPL is not consistent · Issue #280 · bbcmicrobit/PythonEditor
Skip to content

Beta: Pasting text into REPL is not consistent #280

Open
@microbit-mark

Description

@microbit-mark

micro:bit support #24686

When attempting to copy/paste text into the REPL, eg a code snippet, the copied text is often incorrectly represented in the editor eg copying 'microbit program' results in 'ram ram ram' etc
Screen Recording 2019-10-22 at 09 31 am

This isn't always the case and often the second or third attempt gets it right.

OSX Catalina
Chrome 77

Maybe related to #253

Activity

self-assigned this
on Oct 22, 2019
microbit-sam

microbit-sam commented on Oct 22, 2019

@microbit-sam
Collaborator

I'll see if upgrading hterm helps
chromium/hterm@5c9c211

microbit-mark

microbit-mark commented on Oct 28, 2019

@microbit-mark
ContributorAuthor

Feedback from the user was that

  • using ctrl+shift+v does paste correctly and also
  • there seems to be a character limit, for example this line would work :
    tune = ["C4:4", "D4:4", "E4:4", "C4:4", "C4:4", "D4:4", "E4:4"
    adding any new character for this example the " ] " at the end , then paste would not work.
    chopping it up in 62 characters in every paste seems to work.
microbit-sam

microbit-sam commented on Oct 28, 2019

@microbit-sam
Collaborator

chopping it up in 62 characters in every paste seems to work.

Ah cool, this is probably a limitation of DAPjs/WebUSB then. Max packet size is 64 bytes, so 62 chars + header info is probably the limit

I'll see what I can do to split and the queue the packets, as I think I'll need to do something similar to solve the 131->132 errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Beta: Pasting text into REPL is not consistent · Issue #280 · bbcmicrobit/PythonEditor








    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://github.com/bbcmicrobit/PythonEditor/issues/280

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy