This morning I hit an issue where my ESP32 projects were failing to compile, even though they were compiling fine a week ago. The error was something like this:
Code: Select all
LONG_PATH....curve25519xchacha20poly1305\box_seal_curve25519xchacha20poly1305.c.obj.d: error opening file
After some research I found a Windows registry setting that enables longer paths in this Microsoft article. However, I found this setting was already enabled in my registry. Further research showed that others were still having this problem even with this setting enabled.
I checked within Windows Explorer and this would not let me create files beyond this 260 path limit. Oddly, I could create files in long paths from a command prompt and even view them in Windows Explorer. So it seems like Windows Explorer has only partial support for this setting.
And I assume some part of the ESP32 toolchain also lacks support for long paths on Windows systems.
The workaround is to move the Flowcode project to a shorter folder name closer to the root of the drive and then compilation was successful.
Of course, there could be other reasons for a compilation failure. But it might be worth this quick test to ensure it is not caused by a long path issue.