Skip to content

Importing HEX file adds characters to end of file #74

Closed

Description

@microbit-mark
  1. Open editor at https://python.microbit.org/
  2. Edit and download default program
  3. Drag/Load downloaded hex file and see issue.

screen recording 2019-01-02 at 12 03 pm

Activity

  1. microbit-carlos commented on Jan 7, 2019

    @microbit-carlos
    Collaborator

    @microbit-sam Could you look at this one?

    We have this problem with all the 1.1.x editors (but not the beta one? Is beta not using MicroPython v1.0?), having a quick look I think they are missing this line: https://github.com/bbcmicrobit/PythonEditor/pull/57/files#diff-6d9d88a8fbf6c28991df9328acc4142aR158

    var lines = hex_lines.slice(start_line + 1, -5);

  2. microbit-sam commented on Jan 7, 2019

    @microbit-sam
    Collaborator

    Yep, literally just submitted a PR to add that in
    https://github.com/microbit-foundation/python-editor/pull/28

  3. microbit-carlos commented on Jan 7, 2019

    @microbit-carlos
    Collaborator

    Great, thanks Sam!

  4. microbit-carlos commented on Feb 1, 2019

    @microbit-carlos
    Collaborator

    Fix on #89.

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

Metadata

Metadata

Assignees

No one assigned

    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