arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.11k stars 7k forks source link

compile command execution slows down with bad internet connection? #5421

Open elektor-labs opened 7 years ago

elektor-labs commented 7 years ago

IDE 1.6.11. When I have bad Wi-Fi I noticed that it can take a rather long time (up to 10 secs or so) before the IDE will execute a compile/upload command. When in such a case I disable Wi-Fi everything works normal again. Is the IDE checking something online before it starts compiling?

facchinm commented 7 years ago

Hi @elektor-labs , we do call a web API to discover boards insertion (if the core is not installed or the VID/PID not recognized). If you are using one of these boards, the GET request could stall for a long time in case of unreliable connectivity. Maybe it would be interesting to blacklist the generic UART-to-USB ICs so the request is not performed (and failed) every time. @cmaglie , would it be interesting? For the implementation, see https://github.com/arduino/Arduino/blob/efc07a1c0e0a6d5ed067bbcbfc1fee7746d3ceaf/arduino-core/src/cc/arduino/packages/discoverers/serial/SerialBoardsLister.java#L163