Changing case of secondary sketch filename results in duplicate editor tabs #1276
Closed
3 tasks done
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
In addition to the required primary
.ino
file, sketches may contain additional code files, which are represented as editor tabs in the Arduino IDE user interface.🐛 The IDE may show tabs for non-existent files, and handle these tabs in unexpected ways, under the following conditions:
To reproduce
foo
foo.ino
from the saved sketch folder toFoo.ino
🐛 In addition to the expected Foo.ino tab, the sketch contains an unexpected foo.ino tab.
😕 The tab does not contain the text added to the Foo.ino tab.
This is a minor curiosity, but might give the user the further impression that actions taken on one tab don't affect the other.
🐛 The Foo.ino tab is removed, the foo.ino tab remains in the editor (even though the user attempted to delete the foo.ino tab).
Expected behavior
Tabs always reflect the files present in the sketch.
Arduino IDE version
2.0.0-rc9.1
Operating system
Windows
Operating system version
10
Additional context
I was not able to reproduce the issue on Linux (surely due to its case sensitive file system). I did not test on macOS (which uses a case insensitive file system by default, like Windows).
Originally reported by @xinkiknix at https://forum.arduino.cc/t/file-delete-not-case-sensitive/1018207
Issue checklist
The text was updated successfully, but these errors were encountered: