ExpressLRS / ExpressLRS-Configurator

Cross platform configuration & build tool for the ExpressLRS radio link
GNU General Public License v3.0
595 stars 130 forks source link

Flash Fails when upgrading BetaFPV 2400TX Nano to 2.0. Path Issue? #275

Closed trfridle closed 2 years ago

trfridle commented 2 years ago

When flashing a BetaFPV Nano (2400TX) 2.4Ghz to ELRS Version 2.0 for the first time via USB, the software is built and flashed.

Current Behavior

Configurator builds software for the first time. Creates platformio environment within user home directory. (User home directory contains a space in the name). Firmware is properly built. At flash, an error occurs, and the Flash fails.

Flash error
'C:\Users\User' is not recognized as an internal or external command,
operable program or batch file.
Error: spawn C:\Users\User Name\.platformio\penv\Scripts\platformio.exe ENOENT

It appears that the command to be executed is not properly escaped and the Space in the User Directory Name causes an error.

Steps to Reproduce

Install a Fresh copy of ExpressLRS Configurator 1.3.7 for Windows.

Build an IMS Domain, all other options default.

1.

'C:\Users\User' is not recognized as an internal or external command,
operable program or batch file.
Error: spawn C:\Users\User Name\.platformio\penv\Scripts\platformio.exe ENOENT

2.

3.

4.

Possible Solution (Not obligatory)

Context

Can not update module to 2.0

Your Environment

trfridle commented 2 years ago

Uninstalled 1.3.7 and tried 1.3.5. No error and the flash succeeded. Seems to be something introduced in 1.3.6 or 1.3.7