Skip to content

[Bug] Starting a builtin program after opening connection dialog locks Pybricks Code connect button #911

@laurensvalk

Description

@laurensvalk

Describe the bug
Starting a builtin program after opening connection dialog locks Pybricks Code connect button

To reproduce (prepare)

  • Save this program on the hub (Prime/Technic).
from pybricks.tools import wait

while True:
    wait(1000)
  • In practice this can happen with any infinitely running program already stored on the hub. This is just a simple test case.

To reproduce

  • Click Bluetooth icon to open connection dialog, wait for the hub to be listed.
  • Start the program on the hub with the button
  • Attempt to connect because you can still see the hub listed (which we can't work around)
  • Pybricks Code connection spinner runs indefinitely.

Expected behavior
Connection failure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: upstreamThis issue is with a 3rd-party project and is out of scope of Pybrickssoftware: pybricks-codeIssues with https://code.pybricks.com application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions