arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.3k stars 390 forks source link

Serial Monitor takes visibility from Output view during upload #1096

Open per1234 opened 2 years ago

per1234 commented 2 years ago

Describe the problem

When uploading to a native USB board while Serial Monitor is open, the "Serial Monitor" view takes visibility from the "Output" view twice during the upload:

sm-focus

🐛 Users who want to monitor the upload process via the "Output" view will find it inconvenient to lose sight of it in the middle of the process, and then have to select the view once more after every upload.

To reproduce

  1. Connect a native USB board (e.g., Leonardo, Micro, MKR boards, Nano 33 IoT, Nano 33 BLE) to your computer.
  2. Select the board and port in the Arduino IDE.
  3. Open the "Serial Monitor" view.
  4. Select the "Output" view.
  5. Click the "Upload" button.

🐛 The view visible in the bottom panel is switched multiple times, as follows:

  1. "Output" view
  2. "Serial Monitor" view
  3. "Output" view
  4. "Serial Monitor" view

Note that the view that is visible after the process finishes does not match the user's selected focus.

Expected behavior

The "Output" view retains visibility throughout and after the upload process.

Arduino IDE version

2.0.0-rc7-snapshot-a54d7c8

Operating system

Windows

I am not able to reproduce the issue on my Linux machine.

Operating system version

10

Additional context

If the user had the "Serial Monitor" view selected at the time the upload process was triggered, it would be reasonable to return that view to visibility at the end of the upload process (as was requested here).

However, even in this case the switch from the "Output" view to the "Serial Monitor" view and then back to the "Output" view in the middle of the upload process is surely a poor user experience.

Issue checklist

intoku commented 1 year ago

yes, this is really annoying while coding. Hopefully this can be fixed soon