Path to shell executable "pio" is not a file of a symlink. - help please

Well I’m on 1.51.1 regarding VSCode and I’m using the latest VSCode PIO extension version and it’s all fine here.

Please show a screenshot of your VSCode IDE when you execute the Build project task.

Another strange thing I notice in your output is that it says “Executing task: pio run” but that actual output should be much more verbose, telling what folder it’s running in and the path to the executable.