Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEBUSB] Connection breaks #277

Open
fabianhugo opened this issue Jan 24, 2024 · 0 comments
Open

[WEBUSB] Connection breaks #277

fabianhugo opened this issue Jan 24, 2024 · 0 comments

Comments

@fabianhugo
Copy link

Describe the bug

In certain situations the WEBUSB connection somewhat crashes and a download of the program is only possible after a new manual coupling action. The known situations currently are:

  • saving project settings
  • adding an extension to the program
  • clicking the "add blocks" button when Jacdac modules are connected

These action have in common that they seem to do an internal reload of makecode in the background.
That the connection breaks can be seen by missing USB icon next to the download button, interestingly the tab still shows a WEBUSB connection.






To Reproduce

  1. Go to makecode.calliope.cc, connect device, establish WEBUSB connection
    Do one of the following:
  2. Click on project settings and save
  3. Click on extension, add any extension
  4. Add jacdac extension, connect jacdac module, click add
    Then:
    The WEBUSB connection of makecode is lost, while the WEBUSB connection of the browser inside the tab seems to be intact.

Expected behavior
WEBUSB should remain connected, pressing download should trigger a transfer of the program.

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

No branches or pull requests

1 participant