Compiling ... esp8266 generic - error: id returned 1 exit status

Please read this.

We will need a lot more info and properly formatted logs to be able to read them and help. Also post you yaml and any links to your source info.