Right hand panel UI is broken if Serial Monitor closed while window is loading #2710
Open
3 tasks done
Labels
topic: theia
Related to the Theia IDE framework
type: imperfection
Perceived defect in any part of project
Describe the problem
By default, the bottom panel of the Arduino IDE window is used as the container for the Serial Monitor view. The user can configure Arduino IDE to instead use the right hand panel as the view's container by setting the "Arduino › Monitor: Dock Panel" (
arduino.monitor.dockPanel
) advanced setting to "right" (#2102).When in this configuration, Serial Monitor is opened and closed by clicking the icon on the toolbar (not the similar icon on the right hand activity bar, which only expands/collapses the panel).
🐛 If
arduino.monitor.dockPanel
is set toright
and Serial Monitor is closed while the Arduino IDE window is still loading, it puts the right panel UI into a broken state.To reproduce
A menu will appear on the editor toolbar:
ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Settings" tab will open in the Arduino IDE main panel.
arduino.monitor.dockPanel
in the "Search Settings" field of the "Settings" tab.🙂 The right hand panel of the Arduino IDE window closes, as expected.
🙂 The Serial Monitor view opens in the right hand panel of the Arduino IDE window, as expected.
serial-monitor
process is not terminated, so the port is not freed up as expected.🐛 There is no visual change (though now the
serial-monitor
process is terminated).🐛 There is no visual change, but the
serial-monitor
process is launched again.Expected behavior
Arduino IDE UI remains fully functional regardless of the timing of closing the Serial Monitor.
Arduino IDE version
2.3.6
Operating system
Windows
Operating system version
11
Additional context
I bisected the regression to 859d29d / #2654 (does not occur when using the build at the previous commit d298b3f).
Originally reported by @KurtE at https://forum.arduino.cc/t/2-3-6-and-2-3-5-closing-serial-monitor-leaves-empty-window-pane-sometimes/1372240
Additional reports
Related
Workaround
Wait for the Arduino IDE window to load fully before closing Serial Monitor.
If you encounter the problem, close the window and then open the sketch again. After reopening the sketch, the Serial Monitor should be back in a functional state again.
Issue checklist
The text was updated successfully, but these errors were encountered: