pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

A programme that is too large raises two error modals, one for V1 and another for V2.

Open microbit-carlos opened this issue 7 months ago • 2 comments

When a programme is too large for both micro:bit V1 and V2 MakeCode will indicate this with two error modals, one for each board. Ideally this should be combined into a single error message:

https://makecode.microbit.org/25237-41240-70250-63183

Image Image

Tested on beta with:

  • makecode.microbit.org version: 7.1.29
  • Microsoft MakeCode version: 11.4.16
  • microbit runtime version: v2.2.0-rc6
  • codal-microbit-v2 runtime version: v0.2.69

microbit-carlos avatar May 01 '25 15:05 microbit-carlos

hmmmm, to fix this we would have to do both compiles before we show the first dialog. is it worth fixing this if it makes the experience significantly slower for v1 users in this scenario?

riknoll avatar May 27 '25 23:05 riknoll

is it worth fixing this if it makes the experience significantly slower for v1 users in this scenario?

Using the example programme in my dev laptop each compilation takes around 4 or 5 seconds, and with a "CPU slowdown of 20x" it takes ~22 sec.

We've discussed this internally and we think the overall improvement in the user experience is worth the additional wait time. 👍

microbit-carlos avatar Jun 18 '25 15:06 microbit-carlos