Odd error when attempting to compile

Just to flag this. I have compiled this code many many times without the error shown below. Today I returned to the code to implement a bug fix and I get the error below.

Executing task in folder Stepper: c:\Users\Paul\Documents\PlatformIO\Projects\Live\Stepper\platformio.exe run <

The terminal process failed to launch: Path to shell executable "c:\Users\Paul\Documents\PlatformIO\Projects\Live\Stepper\platformio.exe" does not exist.

Terminal will be reused by tasks, press any key to close it.

just to add a little more info, I’ve just found that if i close the two project workspace and open the project from the PIO home screen so that it is the only project open in PIO, the compile works fine. So something to do with workspace I guess.