Skip to content

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

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

Open
3 tasks done
per1234 opened this issue Nov 17, 2022 · 0 comments
Open
3 tasks done

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

per1234 opened this issue Nov 17, 2022 · 0 comments
Labels
topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project

Comments

@per1234
Copy link
Contributor

per1234 commented Nov 17, 2022

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
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project topic: serial monitor Related to the Serial Monitor labels Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

1 participant