You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <buildCommand> and <cleanCommand> in .\nbproject\configurations.xml don't surround the full path to the platformio.exe executable with "s, which causes the commands to fail if there's a space in the path (since everything after the space is interpreted as an argument)
Steps to Reproduce
Install PlatformIO Core on Windows using get-platformio.py for a user whose username has a space in it
Create a new folder and run pio project init --ide netbeans --board uno
Open the project in NetBeans
Add some code
Run the "Build" command
Expected Results
The project should build
Actual Results
Cannot run program "C:/Users/Firstname" (in directory "C:\Users\Firstname Lastname\Documents\project"): CreateProcess error=2, The system cannot find the file specified
Work-around
Manually editing .\nbproject\configurations.xml to add " around the full path for <buildCommand> and <cleanCommand> (i.e. <buildCommand>C:/Users/Firstname Lastname/.platformio/penv/Scripts/platformio.exe -f -c netbeans run</buildCommand> becomes <buildCommand>"C:/Users/Firstname Lastname/.platformio/penv/Scripts/platformio.exe" -f -c netbeans run</buildCommand>) allows the project to build as expected
The text was updated successfully, but these errors were encountered:
Configuration
Operating system: Windows 10 21H1 Pro
PlatformIO Version (
platformio --version
): 5.2.2Description of problem
The
<buildCommand>
and<cleanCommand>
in.\nbproject\configurations.xml
don't surround the full path to theplatformio.exe
executable with"
s, which causes the commands to fail if there's a space in the path (since everything after the space is interpreted as an argument)Steps to Reproduce
get-platformio.py
for a user whose username has a space in itpio project init --ide netbeans --board uno
Expected Results
The project should build
Actual Results
Cannot run program "C:/Users/Firstname" (in directory "C:\Users\Firstname Lastname\Documents\project"): CreateProcess error=2, The system cannot find the file specified
Work-around
Manually editing
.\nbproject\configurations.xml
to add"
around the full path for<buildCommand>
and<cleanCommand>
(i.e.<buildCommand>C:/Users/Firstname Lastname/.platformio/penv/Scripts/platformio.exe -f -c netbeans run</buildCommand>
becomes<buildCommand>"C:/Users/Firstname Lastname/.platformio/penv/Scripts/platformio.exe" -f -c netbeans run</buildCommand>
) allows the project to build as expectedThe text was updated successfully, but these errors were encountered: