Open homonto opened 11 months ago
Yup, this and the other libraries depending (e.g. ottowinter/ESPAsyncWebServer-esphome) on this are currently completely broken.
Given the libs that use this also do not specify which versions they depend on, the build system just goes and grabs the highest available version. Therefore, it is impossible as a user of ESPAsyncWebServer to pin an earlier version and have a working build.
It's pretty poor form to a) commit code that doesn't build but then also b) push it and c) version it and release it for use and d) have other libraries depend only on the latest version of it.
this works for me for my project (platformio.ini):
ottowinter/ESPAsyncTCP-esphome @ ^1.2.3
esphome/ESPAsyncWebServer-esphome@^2.1.0
; fixed to 2.0.0 as newer does not compile
esphome/AsyncTCP-esphome@2.0.0
I can't see any reasoning for why this would have been committed and released. From looking at the code changes I can't see any justification for getting rid of the entire if else block in the area of line 753 or the one at 1020, therefor I would imagine that it was a mistake that the if line should be added back to 749 and the else block back to 1024-1026. Doing so locally fixes the build issues.
here: