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

With a large program, a WebUSB error triggers "Great coding skills!" instead of "micro:bit Connection failed..."

Open martinwork opened this issue 8 months ago • 6 comments

Describe the bug

Arising from support ticket https://support.microbit.org/helpdesk/tickets/88603 (private)

When the current project is too big for V1, it is good that a direct download to a V2 just works without showing the Great coding skills! dialogue

But a WebUSB error leads to the Great coding skills! dialogue instead of micro:bit Connection failed...

Clicking Download for V2 only leads to micro:bit Connection failed..., but after the connection is fixed, it saves a hex file instead of proceeding with the direct download.

By the way, when Great coding skills! is showing, switching tabs or refreshing the page triggers micro:bit Connection failed... to appear.

Tested in v7 and beta.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://makecode.microbit.org/_7vzdxx6H7FL0
  2. Connect V2 with USB only
  3. Click Download
  4. Program is transferred without an error dialogue
  5. Connect battery power
  6. Reconnect USB a few times until the Download button keeps pulsing
  7. Click Download
  8. See Great coding skills!

Expected behavior

Is it possible to do micro:bit Connection failed... before deciding to show Great coding skills!?

Can Download for V2 only ultimately lead to to direct transfer or saving a file depending on how it was started?

Screenshots

Great coding skills! Image

micro:bit Connection failed... Image

micro:bit version (please complete the following information): not hardware related ]

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

martinwork avatar May 14 '25 15:05 martinwork

After I connect to the micro bit, I click and download to the micro bit, which allows me to directly download the program. However, once I restart my computer, I am unable to reconnect to the web USB using the regular connection steps. Instead, I keep disconnecting and reconnecting the micro USB. When I click to connect after plugging it in, it says 'Oops, no device linked' and then excellent coding skills pop up.

fengxinrui2012 avatar May 15 '25 04:05 fengxinrui2012

DETAILS.TXT

Please go to the support page to view the video.

fengxinrui2012 avatar May 15 '25 07:05 fengxinrui2012

@fengxinrui2012 I need to look more carefully at the video, but I think the problem you are seeing might be different from this one I found while trying to reproduce it. It's might be best for us to continue on the support ticket.

martinwork avatar May 15 '25 09:05 martinwork

@abchatra @riknoll Closed by accident! Please reopen.

martinwork avatar May 15 '25 13:05 martinwork

@abchatra i think we can bump this one for this release

riknoll avatar Jun 10 '25 20:06 riknoll

This is minor annoyance. Lets move out of release.

abchatra avatar Jun 10 '25 23:06 abchatra