Selecting sketch tab via menu results in duplicate tabs #793
Labels
conclusion: resolved
Issue was resolved
criticality: high
Of high impact
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The ▼ button on the right side of the editor bar lists all the editor tabs of the sketch. The user can select the tab from this menu, which can be useful for navigating sketches with many tabs.
🐛 If a sketch tab which has not previously been opened via the standard tab UI is opened from this menu, a duplicate tab is opened.
To Reproduce
TabB
.(this is necessary because the bug only occurs when a tab has not yet been opened in the current window, and at this point both the tabs have been opened)
🐛 You now have two duplicate tabs for the file that was selected from the menu:
(in this screenshot, I selected "TabA.ino" from the menu)
Expected behavior
Each sketch file only ever gets a single tab in the editor.
Desktop
Original report
Date: 2022-01-31T13:15:29.574Z
CLI Version: 0.20.2 [13783819]
Last checked with
Date: 2022-02-11T14:52:06.341Z
CLI Version: 0.21.0 [10107d24]
Additional context
This is most likely another incarnation of the same bug that causes #656. I decided to open a separate issue for it since this one is encountered via a significantly different and more common UI path than #656 and there have been multiple user reports of this general issue.
The duplicate tabs contain the file parent path as reported at #665
The issue is not dependent on the specific sketch creation method from the instructions. It will occur with any multi-tab sketch.
The text was updated successfully, but these errors were encountered: