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

The monitor command does not recognize port specified in the sketch.yaml file. #2280

Closed
3 tasks done
woolseyj opened this issue Aug 27, 2023 · 1 comment · Fixed by #2329
Closed
3 tasks done

The monitor command does not recognize port specified in the sketch.yaml file. #2280

woolseyj opened this issue Aug 27, 2023 · 1 comment · Fixed by #2329
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@woolseyj
Copy link

Describe the problem

I can use the arduino-cli board attach command to specify the default FQBN and serial port attached to a sketch. However, if I then try to run the arduino-cli monitor command (without any other options) I get the following error.

required flag(s) "port" not set

I expected the monitor command would pick up the default port set in the sketch.yaml file, but that does not appear to be the case.

To reproduce

Create a sketch that includes serial output.

Attach a board to the sketch.
$ arduino-cli board attach --fqbn arduino:renesas_uno:unor4wifi --port /dev/cu.usbmodemDC5475C3BE142

Compile and upload the sketch to the board.
$ arduino-cli compile --upload

Display the board's serial output.
$ arduino-cli monitor

Expected behavior

I expected the
$ arduino-cli monitor
command to display the board's serial output. Instead, I received the required flag(s) "port" not set error. Adding the port specification to the command
$ arduino-cli monitor --port /dev/cu.usbmodemDC5475C3BE142
shows the expected serial output.

Arduino CLI version

arduino-cli Version: nightly-20230827 Commit: f5a9b7c Date: 2023-08-27T01:27:51Z

Operating system

macOS

Operating system version

13.5.1

Additional context

No response

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
@woolseyj
Copy link
Author

Confirmed that the update works in the latest nightly build (Version: nightly-20231025 Commit: b7ce9c8 Date: 2023-10-25T01:27:05Z).

Thank you.

@per1234 per1234 added the conclusion: resolved Issue was resolved label Oct 27, 2023
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: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
4 participants