When using the PlatformIO: Upload button I revive this from the terminal but nothing is flashed to the board.

Executing task in folder esp32 test: C:\Users\cloug.platformio\penv\Scripts\platformio.exe run --target upload
The screen cannot be set to the number of lines and columns specified.
=================================================================================================== [SUCCESS] Took 4.04 seconds ===================================================================================================
Terminal will be reused by tasks, press any key to close it.

The serial monitor works fine as I can upload upload with the Arudino IDE and connect with the PlatformIO serial monitor to see serial communication.