Skip to content

Fix More Category in Radio Extension#1505

Open
thsparks wants to merge 3 commits intomasterfrom
thsparks/fix_radio_more
Open

Fix More Category in Radio Extension#1505
thsparks wants to merge 3 commits intomasterfrom
thsparks/fix_radio_more

Conversation

@thsparks
Copy link
Copy Markdown
Contributor

Fixes microsoft/pxt-arcade#4860

There was an error in the block definition which caused parsing to fail, so the toolbox wasn't loading correctly. Specifically, the control_event_source_id and control_event_value_id block ids referenced for the src and value params do not exist in this repo. (They're specific to micro:bit.)

I've removed the references to those parameters and hidden the block. I didn't want to fully delete the code in case some project somewhere was actually using it, but this way no-one else will try to use it.

TO DO: I have not checked if micro:bit is depending upon this block for its (presumably working) radio implementation.

The raiseEvent block was referencing block ids control_event_source_id and control_event_value_id which don't exist in common packages. I didn't remove the code completely in case anyone already has this block in their project, but I don't think we need to show it. In live, it's already basically impossible to access because it messes up the toolbox load.

One unknown is if this is needed by micro:bit, which does actually have the block ids. If that's the case, correct fix may be to actually bring the missing block into common packages instead.
@abchatra
Copy link
Copy Markdown
Collaborator

This would mess up microbit right?

@thsparks
Copy link
Copy Markdown
Contributor Author

thsparks commented Mar 14, 2025

This would mess up microbit right?

That was my concern, yes.

A more correct fix is probably to bring the missing block into common-packages.

@srietkerk
Copy link
Copy Markdown
Contributor

We might have a system where we can just override a block for a specific target, although I'm not super sure of how this would work with C++. Just looked at this a bit, it looks like we have something for game, but again, this is all in TS, so it might be trickier when you throw C++ in the mix. This is the file in arcade, but there is also a file defined in common packages named the same: https://github.com/microsoft/pxt-arcade/blob/b7c058d590b055248d59aeae85e81f88610873be/libs/game/gameoverrides.ts#L7

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Radio extension bug

3 participants