VSCode 1.14.1 with PlatformIO IDE 0.4.0 all up to date at time of writing. Fresh install into Windows 10.
tasks.json gets automatically created as follows:
"command": "\"C:\\Users\\Bob Brown\\.platformio\\penv\\Scripts\\platformio.exe\"",
Note the “Bob Brown” in the command path.
This causes a build to fail:
C:\Users\Bob : The term 'C:\Users\Bob' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ C:\Users\Bob Brown\.platformio\penv\Scripts\platformio.exe -c vscode ...
+ CategoryInfo : ObjectNotFound: (C:\Users\Bob:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
If I try to manually update tasks.json (change “Bob Brown” -> “BOBBRO~1”, so that no spaces are in the path) it is automatically overwritten (I think by ms-vscode.cpptools).
Is there any workaround for this? My google fu hasn’t been able to turn up any solution.