With a large program, a WebUSB error triggers "Great coding skills!" instead of "micro:bit Connection failed..."
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:
- Go to https://makecode.microbit.org/_7vzdxx6H7FL0
- Connect V2 with USB only
- Click Download
- Program is transferred without an error dialogue
- Connect battery power
- Reconnect USB a few times until the Download button keeps pulsing
- Click Download
- 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!
micro:bit Connection failed...
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.
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 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.
@abchatra @riknoll Closed by accident! Please reopen.
@abchatra i think we can bump this one for this release
This is minor annoyance. Lets move out of release.