Skip to content

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

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

Closed
silvanocerza opened this issue Jan 3, 2022 · 0 comments · Fixed by arduino/mdns-discovery#20
Closed
Assignees
Labels
conclusion: resolved Issue was resolved topic: CLI Related to the command line interface type: imperfection Perceived defect in any part of project

Comments

@silvanocerza
Copy link
Contributor

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)

@silvanocerza silvanocerza added type: imperfection Perceived defect in any part of project topic: CLI Related to the command line interface labels Jan 3, 2022
@silvanocerza silvanocerza self-assigned this Jan 3, 2022
@silvanocerza silvanocerza changed the title board list command fails when called board list command fails if there's no active network connection Jan 3, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Jan 4, 2022
@ubidefeo ubidefeo reopened this Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: CLI Related to the command line interface type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants