Pioarduino can't compile old(er) project now

Not sure where to go from here. I got pioarduino running. (at least as far as I know, extension is there, enabled, pioarduino selected at startup)

I tried to compile a project I had working just two weeks ago. It uses an Ellecrow 7" display board with esp32-S3.

I tried re-creating the project from scratch with bare minimum and a different name, but that didn’t help. Deleting the cache and platform dirs, to force a new download. A couple of searches and AI “fixes” have done nothing.

I keep getting an error about sdkconfig.h not found.
Starts with:
PlatformIO/.platformio/packages/framework-arduinoespressif32-libs/esp32s3/include/newlib/platform_include/sys/cdefs.h:7:10: fatal error: sdkconfig.h: No such file or directory

I get the “box” with a message about “looking for dependency header…”
I’ve followed that, installed it via CLI, added header and modified the *.ini file, and none work.

Then it goes on about BLE errors, which I assume are related.
esp_gatt_defs.h: No such file or directory

So far, nothing I do seems to help. Any suggestions?

Then delete that folder. If in doubt, delete the entire C:\Users\<user>\.platformio\packages\ folder. The platform will redownload the packages it needs.

Nope.
I deleted everything, and it installed a whole boatload of stuff, but still not working.

It’s hanging on .platformio/packages/framework-arduinoespressif32-libs/esp32s3/include/newlib/platform_include/sys/cdefs.h:7:10: fatal error: sdkconfig.h:

It always comes down to sdkconfig.h.

It’s like it’s there, but something is just preventing pio from “seeing” it.