toblum / McLighting

The ESP8266 based multi-client lighting gadget
MIT License
1.05k stars 291 forks source link

Error Compiling #438

Open Haschu87 opened 5 years ago

Haschu87 commented 5 years ago

Hi, I installed everything following the install instruction. First I got 3 Error messages, that there are missing files.

..\async-mqtt-client-master\src the File "ESPAsyncTCP.h" was missing. copied from ..\libraries\ESPAsyncTCP-master\src

..\async-mqtt-client-master\src the File "async_config.h" was missing. copied from ..\libraries\ESPAsyncTCP-master\src

..\libraries\WS2812FX\src the File "Adafruit_NeoPixel.h" was missing. copied from ..\libraries\Adafruit_NeoPixel

Now I get the following problem

I attached a text file for the Error Message ErrorMessage_01.txt

deftdawg commented 5 years ago

Hi @Haschu87,

I'm not sure if you're having the same problem I had, but when I tried to build with the latest version of VSCode on Linux, platformIO would seeming delete stuff as things were being compile causing errors about missing this file or bad assembly... seems like some kind of strange race condition, it would take me between 3 and 5 compile attempts to build a firmware.bin file.

Here's a script I wrote to work around it, you can try it out, if it doesn't work after 10 attempts you might have a real dependency issue:

#!/usr/bin/env bash

t=0; until platformio run --target upload --environment nodemcuv2
do
  t=$((t + 1))
  echo
  echo "$(date +%H:%M) Trying again... (${t})"
  echo
  if [ -e .pio/build/nodemcuv2/firmware.bin ]; then
     echo "binary built!! quiting..."
     break;
  fi
done
echo Took ${t} tries..