microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
727 stars 638 forks source link

WebUSB fail - unable to find device #5192

Closed Jaqster closed 1 year ago

Jaqster commented 1 year ago

Windows, Edge, v2 micro:bit. Tried to pair via WebUSB, and despite the micro:bit being connected, it failed to find the device. image

jwunderl commented 1 year ago

Do you happen to remember if you had makecode open in another browser session (e.g. incognito + normal, or edge + chrome) that was connected to the device at the same time? There isn't much we can do to smooth that experience out, as it's a limitation of the usb device in the first place. It's possible we could add some logic to try close the webusb connection when focus is out of the tab for e.g. > 30 seconds and not actively flashing, and try and reopen when focus comes back?

abchatra commented 1 year ago

Can this be resolved now?

jwunderl commented 1 year ago

closing this one as a dup of https://github.com/microsoft/pxt-microbit/issues/5189