First of all: Platform IO is really revolutionary and helpful and I use it every day.
As I’m using the ESP32 I can use the Arduino framework or the ESP-IDF or both!
But these frameworks are changing a lot and using the defaults you’re stuck with ESP-IDF 3.3 which is more then a year old.
It was possible to use a special branch (idf-release/v4.0) of the arduino espressif repo but this branch was deleted and it is still unclear what the solution is.
No information of the breaking change can be found in the docs! New users will be in trouble right away!
I want to stress that is it vital to be able to use staging versions of these frameworks so I thinks this must be fixed ASAP!