Skip to content

board list command fails if there's no active network connection  #1612

@silvanocerza

Description

@silvanocerza

Bug Report

Current behavior

$ arduino-cli board list
Error detecting boards: Error getting board list: [listing ports from discovery builtin:mdns-discovery: command failed: mdns lookup error: failed to bind to any unicast udp port]

board list commands returns an error when called with no active network connection, this happens because the mdns-discovery process searches for boards in the currently active local network.

Expected behavior

board list error doesn't return errors if mdns-discovery can't find an active network connection.

Environment

  • CLI version (output of arduino-cli version): arduino-cli Version: git-snapshot Commit: 12adc538 Date: 2022-01-03T08:54:26Z
  • OS and platform: Arch x64

Additional context

Originally reported by @Belamat in #1543 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions