Hello All, its been a long time since I have been here or used the IDE, a lot has changed with the online IDE (or is it called CLI?) in that time
I just tried to upload a simple blink sketch to familiarise myself with the new environment, works fine on the IDE but online I get an error "sketch data incomplete, either uploading or not compliant with cloud CLI"
I have tried to find the cause in the FAQ but am not able to locate the relevant answer. I presume this is something really basic?
I moved your topic to a more appropriate forum category @Dan0.
In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
I have managed to get my code ( and many tabs ) into the cloud … basically I first had to shorten the filename, then compile it on my Mac ( using IDE 2.3.3 ) … then load it onto a WiFi enabled board… then I can’t quite recall the detail ! .. but I think I may have first created a .zip file of the new Sketch and imported in the web editor.
The key issues was reducing the file name to about 20 characters.
NOW - I get loads of compilation errors which I’m working through - thus migration process is not as simple as I expected … good luck.
Thanks for the update @anoracknophobia2. I'm glad you were able to overcome this mysterious "sketch data incomplete" error.
These steps were definitely not necessary.
Interesting. Do you remember the filename it had when it produced the "sketch data incomplete, either uploading or not compliant with cloud CLI" error?
Hi @ivantalus. I'm going to ask you to provide the full output from an upload attempt that produces the "sketch data incomplete, either uploading or not compliant with cloud CLI" error.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Open your sketch in Arduino Cloud Editor.
Click the ➜ button in the Cloud Editor toolbar.
Wait for the upload to fail.
If the black "Console" panel at the bottom of the Cloud Editor page is minimized, click the ˄ icon at the right side of the "Console" toolbar to expand it.
Click the icon in the top right corner of the black "Console" panel at the bottom of the Cloud Editor page that looks like two pieces of paper ("Copy Console Output"):
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the error output from the upload into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Thanks! It is interesting. Arduino Cloud limits the length of sketch names to 32 characters, and E_NINJA_33IOT_H03_25SEPTEMBER2024 is 34 (I assume the [ and ] were added for stylistic purposes rather than being part of the actual filename). There is a bug in Arduino Cloud that allows you to import sketches with names longer than that limit (though you could also argue that the 32 character limit is actually the bug, since the Arduino Sketch Specification sets the limit at 63).
So this made me think that maybe the mysterious "sketch data incomplete, either uploading or not compliant with cloud CLI " error is caused by trying to use Cloud Editor to upload a sketch that has a name longer than 32 characters. However, I created a sketch on my computer with the name E_NINJA_33IOT_H03_25SEPTEMBER2024, imported it to Arduino Cloud, then uploaded it to my Arduino board and still didn't encounter the error. So either the error has a different cause, or else this was the cause of the error when you and the others encountered it, but Cloud Editor has been fixed since that time so it can now handle sketches with names >32 characters.