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?
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:
The Registry does not contain suspicious information. I found only one occurrence of HelloWorld in
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\TypedPaths
1 Answer 1
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": ...
-
Absolute abuse of the F1 button for such a purpose, but anyway, resetting the workbench layout did it.Thomas Weller– Thomas Weller2022年12月29日 22:25:23 +00:00Commented Dec 29, 2022 at 22:25
-
Seems a perfectly good use to me. =) Upvote.timemage– timemage2022年12月29日 23:08:32 +00:00Commented Dec 29, 2022 at 23:08
sketch_dec27a.ino
i.sstatic.net/IgHxa.png However, the video just shows this right after starting the IDE, nothing done.