As you suggested I removed the entire .platformio folder and it fixed the issue. Thanks a lot for your help.