PIO stopped working and cannot complie

Pointing to both #master for Platform and Arduino core is an extremely unstable environment. And now it broke.

The Arduino core did some major refactoring in regards to where the precompiled libraries (aka ESP-IDF) comes from and the Arduino-ESP32 builder script references a framework-arduinoespressif32-libs package which does not even exist yet, nor is it referenced as a included package in mainline platform-espressif32.

https://registry.platformio.org/search?q=framework-arduinoespressif32-libs

So, they broke compilation with PlatformIO’s mainline platform-espressif32.

I’d recommend reverting to a stable version. This is as simple as

  1. Set platform = espressif32 in your platformio.ini
  2. Remove all platform_packages instructions in your platformio.ini
  3. Close CLion
  4. Delete all folders /Users/petertomich/.platformio/platforms/espressif32* and /Users/petertomich/.platformio/packages/framework-arduinoespressif32*
  5. Restart CLion and press “Build” once to trigger the redownload (of stable versions).

If you absolutely must have a specific commit of the platform and the Arduino-ESP32 core (that is not a 3.0.0 preview version), you should pin that by commit. Setting it to bleeding-edge master is just asking for trouble.

; example
platform = https://github.com/platformio/platform-espressif32.git#f6ec3926f9f660ee9abada8540ffe1e205da4bbf
platform_packages = 
   platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#44da992b774f76777bb2e931dd76cfcf12b9fe70