esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
294 stars 38 forks source link

Platformio 4.2.0 is out and breaks esphome-dev #1049

Closed middelink closed 4 years ago

middelink commented 4 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

native linux, venv

This is an esphome-1.15.0.dev0 instance with esphome.egg-info/requires.txt edited to "platformio==4.2.0" to make it even start compiling.

ESP (ESP32/ESP8266, Board/Sonoff):

esp32

Affected component:

ble_tracker, but I don't think thats relevant.

Description of problem:

Problem-relevant YAML-configuration entries:

esphome:
  name: ble_tracker_${chipid}
  platform: ESP32
  board: nodemcu-32s
  arduino_version: latest
  build_path: .build

substitutions:
  chipid: "042a30"
  mqtt_prefix: esp8266/${chipid}

wifi: !include common/wifi-ch.yaml

mqtt: !include common/mqtt-ch.yaml

# Enable logging
logger:
  level: INFO

# Enable OTA
ota:

# Enable BLE scanning
esp32_ble_tracker:

sensor:
  - platform: xiaomi_hhccjcy01
    mac_address: 80:EA:CA:88:EF:2D
    temperature:
      name: "${chipid} Xiaomi MiFlora Temperature"
    moisture:
      name: "${chipid} Xiaomi MiFlora Moisture"
    illuminance:
      name: "${chipid} Xiaomi MiFlora Illuminance"
    conductivity:
      name: "${chipid} Xiaomi MiFlora Soil Conductivity"
    battery_level:
      name: "${chipid} Xiaomi MiFlora Battery Level"

  - platform: wifi_signal
    name: "${chipid} WiFi Signal"

Logs (if applicable):

$ esphome ble_tracker_042a30.yaml run
INFO Reading configuration ble_tracker_042a30.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d .build
Processing ble_tracker_042a30 (board: nodemcu-32s; framework: arduino; platform: espressif32)
------------------------------------------------------------------------------------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif32 2.10004.191002 (1.0.4) 
 - tool-esptoolpy 1.20600.0 (2.6.0) 
 - toolchain-xtensa32 2.50200.80 (5.2.0)
Looking for AsyncTCP-esphome library in registry
LibraryManager: Installing id=6798 @ 1.1.1
AsyncTCP-esphome @ 1.1.1 has been successfully installed!
Looking for AsyncMqttClient-esphome library in registry
LibraryManager: Installing id=6759 @ 0.8.4
AsyncMqttClient-esphome @ 0.8.4 has been successfully installed!
Looking for ESPAsyncTCP-esphome library in registry
LibraryManager: Installing id=6757 @ ^1.2.2
ESPAsyncTCP-esphome @ 1.2.2 has been successfully installed!
LibraryManager: Installing id=6798 @ ^1.1.1
Looking for ArduinoJson-esphomelib library in registry
LibraryManager: Installing id=3837 @ 5.13.3
ArduinoJson-esphomelib @ 5.13.3 has been successfully installed!
Dependency Graph
|-- <AsyncTCP-esphome> 1.1.1
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <AsyncMqttClient-esphome> 0.8.4
|   |-- <ESPAsyncTCP-esphome> 1.2.2
|   |-- <AsyncTCP-esphome> 1.1.1
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <Update> 1.0
|-- <WiFi> 1.0
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/json/json_util.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/logger/logger.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/custom_mqtt_device.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_binary_sensor.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_client.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_climate.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_component.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_cover.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_fan.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_light.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_sensor.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_switch.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/mqtt/mqtt_text_sensor.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/ota/ota_component.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/ruuvi_ble/ruuvi_ble.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/sensor/automation.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/sensor/filter.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/sensor/sensor.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/wifi/wifi_component.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/wifi/wifi_component_esp32.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/wifi_signal/wifi_signal_sensor.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/xiaomi_ble/xiaomi_ble.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/components/xiaomi_hhccjcy01/xiaomi_hhccjcy01.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/application.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/component.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/controller.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/esphal.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/helpers.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/log.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/preferences.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/scheduler.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/esphome/core/util.cpp.o
Compiling .pioenvs/ble_tracker_042a30/src/main.cpp.o
Generating partitions .pioenvs/ble_tracker_042a30/partitions.bin
Compiling .pioenvs/ble_tracker_042a30/libda7/AsyncTCP-esphome_ID6798/AsyncTCP.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/ETH.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFi.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiAP.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiClient.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiGeneric.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiMulti.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiSTA.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiScan.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiServer.cpp.o
Archiving .pioenvs/ble_tracker_042a30/libda7/libAsyncTCP-esphome_ID6798.a
Indexing .pioenvs/ble_tracker_042a30/libda7/libAsyncTCP-esphome_ID6798.a
Compiling .pioenvs/ble_tracker_042a30/lib4b4/WiFi/WiFiUdp.cpp.o
Compiling .pioenvs/ble_tracker_042a30/libb5d/ESPmDNS/ESPmDNS.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/AsyncPrinter.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/ESPAsyncTCP.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/ESPAsyncTCPbuffer.cpp.o
In file included from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/opt.h:51:0,
                 from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/init.h:40,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.h:31,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.h:26,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:22:
/home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwipopts.h:326:0: warning: "TCP_MSS" redefined
 #define TCP_MSS                         CONFIG_TCP_MSS
 ^
In file included from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.h:25:0,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.h:26,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:22:
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/async_config.h:13:0: note: this is the location of the previous definition
 #define TCP_MSS (1460)
 ^
In file included from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/opt.h:51:0,
                 from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/init.h:40,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.h:31,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:75:
/home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwipopts.h:326:0: warning: "TCP_MSS" redefined
 #define TCP_MSS                         CONFIG_TCP_MSS
 ^
In file included from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.h:25:0,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:75:
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/async_config.h:13:0: note: this is the location of the previous definition
 #define TCP_MSS (1460)
 ^
In file included from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/opt.h:51:0,
                 from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/init.h:40,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.h:31,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.h:37,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp:29:
/home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwipopts.h:326:0: warning: "TCP_MSS" redefined
 #define TCP_MSS                         CONFIG_TCP_MSS
 ^
In file included from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.h:25:0,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.h:37,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp:29:
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/async_config.h:13:0: note: this is the location of the previous definition
 #define TCP_MSS (1460)
 ^
Compiling .pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/SyncClient.cpp.o
Compiling .pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/tcp_axtls.c.o
In file included from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/opt.h:51:0,
                 from /home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwip/init.h:40,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.h:31,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/SyncClient.cpp:23:
/home/middelin/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/lwip/lwipopts.h:326:0: warning: "TCP_MSS" redefined
 #define TCP_MSS                         CONFIG_TCP_MSS
 ^
In file included from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/SyncClient.h:32:0,
                 from .piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/SyncClient.cpp:22:
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/async_config.h:13:0: note: this is the location of the previous definition
 #define TCP_MSS (1460)
 ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/SyncClient.cpp:25:24: fatal error: interrupts.h: No such file or directory

********************************************************************
* Looking for interrupts.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:interrupts.h"
* Web  > https://platformio.org/lib/search?query=header:interrupts.h
*
********************************************************************

compilation terminated.
Compiling .pioenvs/ble_tracker_042a30/lib0e7/AsyncMqttClient-esphome_ID6759/AsyncMqttClient.cpp.o
*** [.pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/SyncClient.cpp.o] Error 1
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp: In constructor 'AsyncPrinter::AsyncPrinter(AsyncClient*, size_t)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:48:11: error: 'panic' was not declared in this scope
     panic(); //What should we do?
           ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp: In member function 'int AsyncPrinter::connect(IPAddress, uint16_t)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:71:11: error: 'panic' was not declared in this scope
     panic();
           ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp: In member function 'int AsyncPrinter::connect(const char*, uint16_t)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:88:11: error: 'panic' was not declared in this scope
     panic();
           ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp: In member function 'void AsyncPrinter::_onConnect(AsyncClient*)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:109:11: error: 'panic' was not declared in this scope
     panic();
           ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp: In member function 'AsyncPrinter& AsyncPrinter::operator=(const AsyncPrinter&)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:130:11: error: 'panic' was not declared in this scope
     panic();
           ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp: In member function 'size_t AsyncPrinter::_sendBuffer()':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/AsyncPrinter.cpp:182:11: error: 'panic' was not declared in this scope
     panic(); // Connection should be aborted instead
           ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp: In member function 'bool AsyncClient::connect(IPAddress, uint16_t)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:248:8: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
   addr.addr = ip;
        ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp: In member function 'bool AsyncClient::connect(const char*, uint16_t)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:282:35: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
     return connect(IPAddress(addr.addr), port);
                                   ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp: In member function 'bool AsyncClient::operator==(const AsyncClient&)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:331:66: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
   return (_pcb != NULL && other._pcb != NULL && (_pcb->remote_ip.addr == other._pcb->remote_ip.addr) && (_pcb->remote_port == other._pcb->remote_port));
                                                                  ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:331:96: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
   return (_pcb != NULL && other._pcb != NULL && (_pcb->remote_ip.addr == other._pcb->remote_ip.addr) && (_pcb->remote_port == other._pcb->remote_port));
                                                                                                ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp: In member function 'void AsyncClient::_dns_found(const ip_addr*)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:707:31: error: 'const struct ip_addr' has no member named 'addr'
     connect(IPAddress(ipaddr->addr), _connect_port);
                               ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp: In member function 'uint32_t AsyncClient::getRemoteAddress()':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:837:26: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
   return _pcb->remote_ip.addr;
                          ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp: In member function 'uint32_t AsyncClient::getLocalAddress()':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:849:25: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
   return _pcb->local_ip.addr;
                         ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp: In member function 'void AsyncServer::begin()':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCP.cpp:1122:14: error: 'ip_addr_t {aka struct ip_addr}' has no member named 'addr'
   local_addr.addr = (uint32_t) _addr;
              ^
*** [.pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/AsyncPrinter.cpp.o] Error 1
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp: In constructor 'AsyncTCPbuffer::AsyncTCPbuffer(AsyncClient*)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp:35:15: error: 'panic' was not declared in this scope
         panic();
               ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp: In member function 'virtual size_t AsyncTCPbuffer::write(const uint8_t*, size_t)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp:127:23: error: 'panic' was not declared in this scope
                 panic();
                       ^
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp: In member function 'size_t AsyncTCPbuffer::_handleRxBuffer(uint8_t*, size_t)':
.piolibdeps/ble_tracker_042a30/ESPAsyncTCP-esphome_ID6757/src/ESPAsyncTCPbuffer.cpp:469:21: error: 'panic' was not declared in this scope
               panic(); //TODO: What action should this be ?
                     ^
*** [.pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/ESPAsyncTCP.cpp.o] Error 1
*** [.pioenvs/ble_tracker_042a30/lib783/ESPAsyncTCP-esphome_ID6757/ESPAsyncTCPbuffer.cpp.o] Error 1
=============================================================== [FAILED] Took 10.76 seconds ===============================================================

Additional information and things you've tried:

middelink commented 4 years ago

Addendum: going back to platformio-4.1.0 it compiles again, but I noticed the dependencies changes as well:

$ esphome ble_tracker_042a30.yaml compile
INFO Reading configuration ble_tracker_042a30.yaml...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d .build
**************************************************************************************************************************************************************
Obsolete PIO Core v4.1.0 is used (previous was 4.2.0)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/page/faq.html#multiple-pio-cores-in-a-system
**************************************************************************************************************************************************************
Processing ble_tracker_042a30 (board: nodemcu-32s; framework: arduino; platform: espressif32)
--------------------------------------------------------------------------------------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
Dependency Graph
|-- <AsyncTCP-esphome> 1.1.1
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <AsyncMqttClient-esphome> 0.8.4
|   |-- <AsyncTCP-esphome> 1.1.1
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <Update> 1.0
|-- <WiFi> 1.0
Compiling .pioenvs/ble_tracker_042a30/src/main.cpp.o
Linking .pioenvs/ble_tracker_042a30/firmware.elf
Retrieving maximum program size .pioenvs/ble_tracker_042a30/firmware.elf
Checking size .pioenvs/ble_tracker_042a30/firmware.elf
Building .pioenvs/ble_tracker_042a30/firmware.bin
DATA:    [==        ]  18.6% (used 60812 bytes from 327680 bytes)
PROGRAM: [========= ]  88.7% (used 1452710 bytes from 1638400 bytes)
================================================================ [SUCCESS] Took 10.75 seconds ================================================================
INFO Successfully compiled program.
Dependency Graph
|-- <AsyncTCP-esphome> 1.1.1
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <AsyncMqttClient-esphome> 0.8.4
|   |-- <ESPAsyncTCP-esphome> 1.2.2
|   |-- <AsyncTCP-esphome> 1.1.1
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <Update> 1.0
|-- <WiFi> 1.0

vs

Dependency Graph
|-- <AsyncTCP-esphome> 1.1.1
|-- <ESPmDNS> 1.0
|   |-- <WiFi> 1.0
|-- <AsyncMqttClient-esphome> 0.8.4
|   |-- <AsyncTCP-esphome> 1.1.1
|-- <ArduinoJson-esphomelib> 5.13.3
|-- <Update> 1.0
|-- <WiFi> 1.0

Note the extra <ESPAsyncTCP-esphome> 1.2.2 when using 4.2.0?

glmnet commented 4 years ago

you shouldn't edit that file and then comply it does not work, it should work as is, thus you cannot upgrade platformio and expect it to work, it's like an art to have it working finding all versions matching, etc.

I mean, if the requirements specifies a version, it means it should work with that version, otherwise I don't understand the issue here

middelink commented 4 years ago

Right. And from your words I can conclude you are not interested in other people helping? Never mind then, I'll wait till you discover platformio 4.2.0 is out yourself and run into the same problems.