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

board list --watch occasionally fails to detect any serial ports on macOS #2784

Open
3 tasks done
dankeboy36 opened this issue Dec 16, 2024 · 0 comments
Open
3 tasks done
Labels
type: imperfection Perceived defect in any part of project

Comments

@dankeboy36
Copy link
Contributor

dankeboy36 commented Dec 16, 2024

Describe the problem

I have been experiencing an intermittent issue with the board list --watch command while using version 1.1.1 of the CLI on macOS. Occasionally, the command does not detect any serial ports, resulting in missing watch events via gRPC.

To reproduce

  1. Open a Terminal on macOS.
  2. Run the command: board list --watch
  3. Monitor the output for the detection of the serial ports.
  4. Press Ctrl+C to terminate the watch process.
  5. Repeat from 2.) until you hit the bug.
./arduino-cli board list --watch
Port Type Event Board Name FQBN Core


The OS can detect the serial ports with ls /dev/tty.* at the same time while the watch process runs.

Proof 👇

Image

Expected behavior

The board list --watch command should consistently detect the serial ports and trigger appropriate board list watch events.

Arduino CLI version

arduino-cli Version: 1.1.1 Commit: fa6eafc Date: 2024-11-22T09:31:36Z

Operating system

macOS

Operating system version

11.7.10

Additional context

  • I initially suspected a potential bug in my code via grpc, but I could reproduce it from a shell.
  • I have never noticed this defect before 1.1.1.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@dankeboy36 dankeboy36 added the type: imperfection Perceived defect in any part of project label Dec 16, 2024
@dankeboy36 dankeboy36 changed the title board list --watch fails to detect the built-in Bluetooth port on macOS board list --watch fails to detect anything port on macOS Dec 16, 2024
@dankeboy36 dankeboy36 changed the title board list --watch fails to detect anything port on macOS board list --watch fails to detect any serial ports on macOS Dec 16, 2024
@dankeboy36 dankeboy36 changed the title board list --watch fails to detect any serial ports on macOS board list --watch occasionally fails to detect any serial ports on macOS Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant