Skip to content

Script name can change when a file fails to load #108

Description

@microbit-rosslowe

When a module (with the "magic comment") is dragged & dropped into the editor it is added to the filesystem and doesn't replace the user's code in the editor, as expected. However, the script name will change to the name of the loaded file:

image

Additionally, when using older versions of the editor (e.g. https://python.microbit.org/v/1.0), trying to load an invalid hex file (e.g. from the newer version of the editor) will not load (as expected), but the script name will still change.

Completion criteria - if a user attempts to upload a file and it doesn't replace the main editor code, it also shouldn't change the script name.

Activity

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

Metadata

Metadata

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