Files newly added to Cloud sketch via Arduino Web Editor are not shown on pull #444
Labels
criticality: medium
Of moderate impact
topic: cloud
Related to Arduino Cloud and cloud sketches
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
When you do a "Pull" on a file in your Remote Sketchbook, the content of the sketch from Arduino Cloud is downloaded to your computer and the sketch updated accordingly.
Arduino sketches may consist of multiple files, which are always shown in the Arduino IDE as tabs when that sketch is open.
🐛 If you do a "Pull" on a sketch in the IDE's Remote Sketchbook after a new file was added to the sketch via Arduino Web Editor, the new file is downloaded, but not opened in Arduino IDE as a tab, and often some of the existing tabs are even closed.
To Reproduce
🙂 The expected two files (
Foo.ino
,ReadMe.adoc
) are shown in tabs and also shown in sketchbook explorer along withsketch.json
(assuming you have the IDE's "Show files inside sketches" preference enabled).🐛 The "ReadMe.adoc" tab disappears, leaving only the "Foo.ino" tab. The sketchbook explorer file listing is unchanged. However, if you check the contents of the sketch folder on your hard drive you can see that
Bar.ino
was downloaded as expected.🐛 This time, "Foo.ino" disappears and is replaced by "Bar.ino". As before, the files on disk are as expected.
Expected behavior
All sketch files of the currently open sketch are always shown as tabs in the Arduino IDE and in sketchbook explorer when "Show files inside sketches" preference is enabled.
Desktop
Date: 2021-07-07T15:45:28.645Z
CLI Version: 0.18.3 alpha [d710b642]
The text was updated successfully, but these errors were encountered: