-
Notifications
You must be signed in to change notification settings - Fork 333
Description
This concerns "Configure ESP-IDF Extension", in particular when a new ESP-IDF is being installed.
Problem
Download is large and can cause aborts in the case of network issues, esp on slow connections. This has been noted in #1180 and #1362 and I've experienced multiple times. The downloader used by the VSCode extension seems to be particularly unreliable; I've had it fail many times but using firefox direct to github is more successful. The comments on those two issues refer to network issues as if that is the end of the matter, and the OPs "fault". Rather the download should cope better with network issues!
Additionally, when adding the zip file into the "ESP-IDF container directory", and then running "Configure Tools", the extension does not respect the presence of the zip file; it deletes it. Quite annoying! Also not convenient when trying to share an IDF download among several machines without multiple downloads.
Improvement Part 1
Simple: make the configuration tool respect the presence of a zip file.
Improvement Part 2
Use a more robust network client so that socket issues do not immediately fail with:
esp-idf-v5.4.2.zip progress: 14.55% (194560.00 / 1336780.87) KB
Error: aborted
at TLSSocket.socketCloseListener (node:_http_client:478:19)
at TLSSocket.emit (node:events:530:35)
at node:net:351:12
at TCP.done (node:_tls_wrap:650:7)
Failed download. Retrying...
Error: Error: HTTP/HTTPS Response error
It looks like the retry is not really trying!
And/or:
Make download available using torrent etc