The project did not refer to this header file for the ESP32 target. It refered to “freertos/FreeRTOS.h” which is located in the IDF framework.
I’ve managed to get rid of the errors by deleting platformio and reinstalling it. Apparently upgrading python broke my installation and a reinstall of platformio was needed.
I removed paths to older python versions and reinstalled platformio like in this topic:
This fixes the problem, but now I have new problems:
Warning! Starting with ESP-IDF v4.0, new project structure is required:
Error: Couldn't find target config target-__idf_esp_http_client-b11bf138e832222dhttps://docs.platformio.org/en/latest/frameworks/espidf.html#project-structure
92Reading CMake configuration...
16.json