[IDE 2.0.3]Double tabs

Thanks for your reports everyone.

The Arduino IDE developers are tracking this bug via the formal report here:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.


Unfortunately, I have not been able to reproduce this fault via use patterns resembling those described here and in the associated reports. I am aware of a couple of other use patterns that can produce duplicate tabs, which I have listed here, however, I think the fault you are encountering is produced by some other unknown conditions.

I found this workaround removes the duplicate tabs from a sketch when I produce the fault via either of those known procedures:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
  2. Select the "View: Reset Workbench Layout" command from the menu.

This is clearing bad "workbench" data associated with a given sketch, which was produced by a change to the environment since that data was originally established. The reports here of the fault occurring even with a new sketch indicate that the data is bad from the very start, so I'm not sure whether the workaround will be effective in that case. If you try it out, please let me know what results you get.


The fact the Arduino IDE developers and I are not able to reproduce the fault as it affects you makes the preparation and validation of a fix for this bug more difficult. If anyone is able to determine the specific conditions required to produce the fault, that would be very helpful.

One such condition seems to be the use of Arduino IDE 2.0.3 or newer. I surveyed all the reports and found they have this in common. So it seems there was some regression between 2.0.2 and 2.0.3. From experience with the previous incarnations of this type of bug, my suspicion is it was here: