This happened the first time a while ago after I upgraded from IDE 2.0.2 to 2.0.3. After that it was fine till this afternoon.
I did find an older closed issue on github (Selecting sketch file with double-click results in duplicate tabs · Issue #656 · arduino/arduino-ide · GitHub), not sure if it's the same issue.
I noticed the double tabs this afternoon again; todays sequence of events
- Started Windows 10 PC this morning at an indecent time
- Worked a bit in the IDE
- Shutdown just before 4 am
- Started Windows PC again at approx. 8 am
- Ran Windows update
It ran into an issue (no idea what), PC rebooted and Windows updated restarted itself and completed succesfully. - Started IDE 2.0.3, I did not observe any problems.
- Shutdown PC just before 12:00.
- Started PC again after 16:00
- Started IDE 2.0.3 and observed double tabs with the same sketch name for the sketch that I was working on.
- Closed IDE.
Image taken from nightly build, 2.0.3 is the same
Note
The sketch in the left tab has the cursor on the first line of the sketch
The sketch in the right tab has the cursor on the line where I probably left off.
Searched for files in AppData that contained double2float
Deleted C:\Users\Wim\.arduinoIDE\recent-sketches.json
and C:\Users\Wim\.arduinoIDE\recentworkspace.json
Deleted C:\Users\Wim\AppData\Roaming\arduino-ide\config.json
Restarted the IDE, it opens with a double tab for the new sketch
Opening the double2float.0.1.ino using the menu file → open resulted in the double tab again
Closed the IDE
- Installed nightly build
- Cleaned out all the crap that I'm aware off that the IDE leaves behind in different places (mostly in
C:\Users\Wim\AppData\Local\Temp
); might have left something, not sure. - Started the nighltly build, still the same double tab.
Other observations
If I open an older existing sketch that wasn't opened for a while, there is no issue with that sketch (no double tab). However using <ctrl><N>
to open a new one again shows a double tab.
attached
- old.log; copy of log at the moment that I noticed the issue
- log: anything after that
2022-12-17_log.log (1014.1 KB)
2022-12-17_log.old.log (1.5 MB)