I have been using PIO on a project for months and it worked great. I have been storing my project on github with just a gitignore of .pio and .vscode. My computer died and I have cloned the repo onto a new machine with newly installed vscode and pio. Now it won’t compile. I did a clean and then build from the bottom of vscode.
All of the files mentioned in the error exist in .cpp form. Here is the output …
As a desperate temporary workaround I just relocated my .platformio directory from my Windows user directory to c:\.platformio by setting the following environment variable:
PLATFORMIO_CORE_DIR=c:\.platformio
Because the path to this directory is used so many times in the build command this relocation seems to have shortened the command just enough to be under the 32k limit mentioned above. If I get more desperate I’ll shorten the directory name to c:\p
Yes this is a terrible sad hack, but hopefully the esp32 environment will be repackaged in the not too distant future.