Hi, today nothing will compile for me using the Web Editor. Even the most basic project gives the following error: This is the BareMinimum project provided by the web editor examples. Everyting was OK yesterday. Any help is appreciated.
Error during build: loading library from /mnt/create-efs/webide/3e/61/3e61b182246c3cf796660d3611ad9d61:countsrc84/libraries_v2/tmp1675716866781661577: invalid library: no header files found
Hi @countsrc84 , did you manage to resolve this? As far as I can interpret, I think I have the same issue (or at least same symptoms), and it has prevented me from compiling anything in Arduino Web Editor for about a week.
Same as you, even the BareMinimum sketch (from Arduino web editor, Examples->Basics->BareMinimum), unchanged, fails to compile.
Error message in the verbose output looks the same:
Error during build: loading library from /mnt/create-efs/webide/ba/3a/ba3a26448824b47cb2b186c431e8c23f:colosb/libraries_v2/tmp1680355281012809998: invalid library: no header files found
In the red status bar reporting failure, for me the error is reported as:
"TypeError: undefined is not an object (evaluating 'a.hex.length')
I had already tried: different standard example sketches, logging out/in of Arduino account; restarting browser, different browsers, rebooting computer. I tried asking Arduino Support in case it was a wider system issue, but just received a stock reply advising all the things I had already tried.
I am currently wondering if there is some sensitivity/vulnerability in the Arduino Web Editor with sketches not being truly independent, and if one of my recent sketches might have something like a broken library installation? If so, I can't think of any way to diagnose or resolve this other than to download (for safe-keeping) and delete (from Arduino Web Editor) my recent sketches to see if that resolves the issue.
Where did you get to with this?
Any other insights or suggestions?
In short:
I interpret that Arduino Web Editor can fail on library import/installation, leaving an invisible and un-deletable (by user) temporary library folder which causes failure for any subsequent sketch compilations.
Longer description:
I looked closer at the compile command reported in verbose output from the Arduino web editor compile, and it does indeed include all the libraries from all of my sketches over time ... even for compiling the standard Examples->Basics->BareMinimum sketch.
Therefore I interpret that a recent library import problem could indeed have caused problems affecting any future sketches.
Also, same as @countsrc84 , my compilation library list included a temporary library name (in my case: tmp1680355281012809998).
I couldn't figure out what that temporary library could be from, so chose to download (for safe keeping) all my sketches and libraries, and then delete them from Arduino Web Editor.
So ... I now have no libraries, and no sketches (until Arduino web editor creates as default minimum sketch) ... but it still fails to compile anything (whether the new default minimum sketch, or standard Examples->Basics->BareMinimum sketch).
The overall compilation failure is still the same:
TypeError: undefined is not an object (evaluating 'a.hex.length')
And the verbose compilation output error is also still the same:
Error during build: loading library from /mnt/create-efs/webide/ba/3a/ba3a26448824b47cb2b186c431e8c23f:colosb/libraries_v2/tmp1680355281012809998: invalid library: no header files found
I have asked Arduino Support to help delete this broken temporary library from my account, and to help report this as a technical issue/fragility and opportunity for improvement in Arduino web editor.
The Arduino Cloud maintainers have completed their investigation and we think the problem that caused the unexpected "invalid library: no header files found" error should now be resolved. Please try compiling again in Arduino Cloud and then reply here to let us know whether or not you still get that unexpected error message.
Please let me know if you have any questions or concerns.
I re-tested with a couple of the Examples -> BASICS, including “BareMinimum” and “Blink”, both of which had previously consistently failed with the “invalid library: no header files found” error.
… and success! … they now compile and verify successfully.
I assume that there was an underlying fragility that could result in empty/partial library tmp files being left around, and I will assume that you will have done whatever is necessary to resolve the fragility such that all users should now be safe against this issue occurring in future. (i.e. not just a ’sticking-plaster’ temporary fix by deleting the tmp libraries from our accounts)
Out of interest I looked back at my email history, and I submitted my report of the issue exactly 2 months ago, on 16-June-2023.
I will observe that it felt to me as though I had to work very hard to be taken seriously, to not be ‘brushed-off’, and have this issue investigated properly.
But anyway, thank you for getting to the root of this issue and resolving it.