Skip to content

Simulator sounds can run when MakeCode is not visible including in quite unexpected cases #772

@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

Simulator sounds aren't stopped when MakeCode isn't visible. That's potentially a problem in itself but at least when the user does this they can understand what's happened.

Giles reported this more interesting scenario:

Hex file: microbit-giles-weds.hex.zip

Screenshot:
Image

A tone started playing when on the Data Samples page.

Theory: removing all the data for “tap running” leads to it no longer being a valid action in the model and it’s removed from the MakeCode project so MakeCode will change its previous event block to “unknown”. Clicking “Save” (or perhaps some other user or MakeCode triggered actions) causes us to tell MakeCode about that new project, which causes it to restart the simulator behind the scenes. “unknown” which is the sim drop-down default now makes a noise.

Rob suggests you might only need to remove one data sample -- just enough to invalidate the model.

In a scenario where I'd recorded some new data samples for "tap running" to get back to MakeCode I also saw a modal explaining my project had errors (once dismissed the project was fine).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions