Platformio monitor deletes .pio/build files when using filter esp8266_exception_decoder

Hi everyone…

I’m using:

build_type = debug
monitor_filter = esp8266_exception_decoder

Every time I launch the monitor it complains that it cannot find the firmware.elf file.

I did verify that firmware.elf and firmware.bin get built. I’ve tried building it first, then uploading. I’ve also tried the “build and upload” task and for all of them it creates all the files in .pio/build/.

What I did notice is that when I use monitor_filter = esp8266_exception_decoder when I launch the monitor it deletes all the contents of the .pio/build/ directory including the firmware.elf and firmware.bin.

If I use any monitor_filter combined options that DOES NOT include esp8266_exception_decoder then all the files remain in the ./pio/build/ directory even after launching the monitor.