Skip to content

Serial Monitor and Plotter line ending menus not synced on open #1688

Open
@per1234

Description

@per1234

Describe the problem

Arduino IDE's Serial Monitor and Serial Plotter each have a Line Ending menu. This menu controls the type of line ending that is appended to data sent via their message field.

Picking the correct line ending is essential when sending data to a board running a sketch that only correctly parses received data with a specific line ending (which is common).

Arduino IDE has a nice feature where changing the Line Ending menu selection in Serial Monitor also changes it in Serial Plotter, and vice versa.

However, the two menus are not synced when the interfaces are opened. Each has a different behavior:

  • Serial Plotter: "New Line" is always selected in the menu when the plotter is opened, even when a different option was already set in the open Serial Monitor view.
  • Serial Monitor: the option selected during the previous Serial Monitor session is selected in the menu when the monitor is opened, even when a different option was already set in the open Serial Plotter window.

The two interfaces are only synced after the user changes the selection in one of them while they are both open.

🐛 Users accustomed to the convenient setting sync during other phases of operation may not notice the two interfaces have different settings and be confused when the data they send is not correctly parsed by the board.

To reproduce

  1. Select any board and port in Arduino IDE.
  2. Open the "Serial Monitor" view (Tools > Serial Monitor) if it is not already open.
  3. Select "Carriage Return" from the Line Ending menu in the Serial Monitor view.
  4. Select Tools > Serial Plotter from the Arduino IDE menus.
  5. Check the setting in the Line Ending menu in the Serial Plotter window.
    🐛 The Serial Plotter window's menu is set to "New Line":
    image
  6. Close the "Serial Monitor" view (Tools > Serial Monitor).
  7. Select "Both NL & CR" from the Line Ending menu in the Serial Plotter Window.
  8. Open the "Serial Monitor" view.
  9. Check the setting in the Line Ending menu in the Serial Monitor view.
    🐛 The Serial Monitor view's menu is set to "Carriage Return".
    image

Expected behavior

Line Ending setting is always in sync in Serial Monitor and Serial Plotter.

Arduino IDE version

2.0.2

Operating system

Windows

Operating system version

10

Additional context

The bug does not occur with the baudrate menus.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftopic: serial monitorRelated to the Serial Monitortype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions