Trouble updating LVGL

The last three days I think, when I start the IDE, it says there are libraries to
update. In particular LVGL. I have 9.2.2 installed and it wants to install 9.3.0

I choose it and after a bit I get an error message:

Downloading lvgl@9.3.0
lvgl@9.3.0
Failed to install library: 'lvgl:9.3.0'.
Error: 13 INTERNAL: Can't download library: context deadline exceeded (Client.Timeout or context cancellation while reading body)

Hi @KurtE. The timeout at which Arduino IDE cancels a download is configurable. You should be able to work around this problem by configuring a higher timeout value. I'll provide instructions you can follow to do that:

  1. Select File > Quit from the Arduino IDE menus if it is running.
    All Arduino IDE windows will close.
  2. Open the file at the following path in any text editor:
    C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
    
    (where <username> is your Windows username)
  3. Add the following content to the arduino-cli.yaml file (or replace the existing content if equivalent content is already present in the file):
    network:
      connection_timeout: 300s
    
    ⓘ I arbitrarily chose a timeout value of 300 s. You can adjust this as needed.
  4. Save the file.
  5. Start Arduino IDE.

Now try updating the library again. Hopefully this time it will be successful.


It might make sense for the Arduino CLI developers to increase the default timeout value from the current 60 s, as was suggested here:

https://github.com/arduino/arduino-cli/issues/2899#issuecomment-2834199190

Thanks,

That did it!

There is now a dedicated issue tracking the proposal here:

Thank-you!
I had an idea it was some default value because in experimenting, (new installation of IDE, boards and libraries) I found that it didn't timeout if I installed the oldest lvgl library listed (8.3.0) which loaded faster due to being smaller.