1

For a reason unknown to me, Arduino IDE 2.0.3 opens two tabs with the same name for this sketch. I'm not able to reproduce how to get into this situation.

Changes in one tab immediately changes the other tab as well.

How can I get rid of the second tab?

Duplicate tab

Things I tried:

  • File / Close (Ctrl+W) closes the whole sketch, i.e. Arduino IDE exists.
  • The usual key combination to close tabs (Ctrl+F4) does not work either.
  • I deleted all %AppData%\Local\Temp\.arduinoIDE-unsaved*.gfv2 folders
  • I deleted all %AppData%\Local\Temp\arduino-sketch-* folders
  • I deleted all %AppData%\Local\Temp\arduino-language-server* folders
  • I deleted all %AppData%\Local\Temp\arduino-ide2-* folders
  • I used Streams to check the INO file for alternate data streams
  • I deleted the folder %UserProfile%\.arduinoIDE

Maybe interesting: when I rename the sketch to HelloWorld2.ino, it opens only one tab. If I rename it back, I have two tabs again.

When I change the preferences to show the files in Sketchbook view, I only see one file: Sketchbook view

The other sketches have been created when trying to reproduce the problem. They are not affected

The tooltip which shows the full file name is identical on both files:

Identical tooltips

The Registry does not contain suspicious information. I found only one occurrence of HelloWorld in

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths
Thomas Weller
  • 1,058
  • 1
  • 8
  • 22

1 Answers1

5

How can I get rid of the second tab?

  • Press F1,
  • Type: View: Reset Workbench Layout into the Command Palette,
  • Press Enter,
  • IDE reloads.

If it does not help, get the layout data from the logs.

  • Open the DevTools with Ctrl/⌘+Alt+I built-in command,
  • Open the Console if it's not opened with Esc,
  • Right-click in the console and Save as...,
  • Share the data with the devs.

For example:

{"version":5,"mainPanel":{"main":{"type":"tab-area","widgets":[{"constructionOptions":{"factoryId":"code-editor-opener","options":{"counter":0,"kind":"navigatable","uri": ...
dankeboy36
  • 94
  • 4