LilyGo-EPD47/examples/button$ pio run --list-targets
InvalidEnvNameError: Invalid environment name 't5-4.7'. The name can contain alphanumeric, underscore, and hyphen characters (a-z, 0-9, -, _)
Second (you need to prune ~/.platformio to see this):
UnknownPackageError: Could not find the package with 'espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch3' requirements for your system 'darwin_x86_64'
First:
This is due to https://github.com/platformio/platformio-core/commit/269d5e0a3ea5823a5dc7eeff9902cb7062017430
Second (you need to prune
~/.platformio
to see this):UnknownPackageError: Could not find the package with 'espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch3' requirements for your system 'darwin_x86_64'
This is probably caused by pinning an old arduino-esp32 version https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/blob/f6a4fabbfba39f29fcc166d1b8a87c342a379b99/examples/button/platformio.ini#L20
This was reported to me in https://github.com/nickolay/esphome-lilygo-t547plus/pull/6