Error: The PlatformIO task detection didn't contribute a task for the following configuration:

I was working on a project and everything was working fine. I suddenly start getting the error out of the blue and on top of this every PlatformIO project I have has the following error :
error: ‘class HardwareSerial’ has no member named ‘println’

I checked similar issues but there is no file named tasks.json.
I did a full clean uninstall and reinstall but still the same error

This might be related to the toolchain breaking. Is your project also generating junk files, and giving you toolchain directory not found errors? This is very common the last two days. There are other threads that already answer this issue - such as this one:

Yeah I already tried that. I tried both the pre-release and the release version. Nothing seems to work.