HipsterBrown / xs-dev

The quickest way for getting started with JS on devices
https://xs-dev.js.org
MIT License
39 stars 13 forks source link

Attempting ESP32 build without esp32 set-up fails confusingly #79

Closed phoddie closed 1 year ago

phoddie commented 1 year ago

After a set-up of the Moddable SDK on macOS, but without having set-up the ESP32 tools, the failure message isn't helpful in guiding the user to the solution.

$ xs-dev run --example helloworld --device=esp32
⠸ Building and deploying project ~/.local/share/moddable/examples/helloworld on esp32

/opt/homebrew/lib/node_modules/xs-dev/node_modules/gluegun/build/index.js:15
    throw up;
    ^

Error: Command failed with exit code 2: mcconfig -m -p esp32 -t all -o ~/.local/share/moddable/build -d
fatal: not a git repository (or any of the parent directories): .git
~/.local/share/moddable/build/tmp/esp32/debug/helloworld/makefile:152: Could not detect ESP-IDF version.