Listing directory: /
/NotoSansBold-36.vlw 159260 bytes
Font file NotoSansBold-15 not found!
5
Font file NotoSansBold-15 not found!
5
Font file NotoSansBold-15 not found!
5
PlatformIO is a great IDE, but this is really very very annoying!
How on earth is this possible?
There could be a problem with the allocated size for the SPIFFS partition or the creation if the SPIFFS archive if that file is not found. If the file is in data/ and you did execute the project task “Upload Filesystem Image” and the file is not there (and the code didn’t delete it), it’s a bug somewhere.
I used an Arduino sketch to upload those files to the ESP32.
The output from that sketch shows that those files are actually uploaded to the ESP32.
"
—Dir: /:
FILE: /NotoSansBold-15.vlw
FILE: /SansSerif36.vlw
FILE: /NotoSansBold-36.vlw
"
Weird thing is that executing the module ‘listDir(…)’ in the platformIO program, there’s only one font file listed.
I also tried a version with the font files in a data folder, but that didn’t change things.
Thank you for this explanation. So the above statement works for you.
Then the question remains:
the Arduino sketch reported:
SPIFFS initialization succesfull
—Dir: /:
FILE: /NotoSansBold-15.vlw
FILE: /SansSerif36.vlw
FILE: /NotoSansBold-36.vlw
So the Arduino sketch reported the on SPIFFS stored files correctly.
How can it be that the PlatformIO program, in which I use the same code as the Arduino sketch, reports only:
SPIFFS available!
Listing directory: /
/NotoSansBold-36.vlw 159260 bytes
Well, I’ll start a new project and do some double checking on the code.