Arduino : Downloading index

bdoan

Well-known member
Why does Arduino repeatedly need to download the " package_teensy_index_json "

If this index is only about 20K , why does it take 5 minutes to update in Arduino?
 
I have this problem too... but mine doesn't complete in 5 min. I found some guidance in an Arduino forum thread once to back-level Arduino IDE to 2.0.something to fix, but I just switch my selected board in Arduino IDE to COM3, which forces the index d/l to timeout quickly, allowing me to compile again. I've tried un- and re-installing the board and teensyduino, but no fix.
 
By default, it downloads the indexes each time you start the IDE where the delta time is > timeout from the last download.

It does not take 5 minutes to download the Teensy, it simply does not update the message from downloading the last index to when it is processing all of the indexes.

2.3.3 has issue on sort of hanging downloads if the Serial monitor is open. It is fixed in the current nightly builds, which my gut tells me, there about to release 2.3.4 but just guessing, due to the current number of things pulled in.
 
By default, it downloads the indexes each time you start the IDE where the delta time is > timeout from the last download.

It does not take 5 minutes to download the Teensy, it simply does not update the message from downloading the last index to when it is processing all of the indexes.

2.3.3 has issue on sort of hanging downloads if the Serial monitor is open. It is fixed in the current nightly builds, which my gut tells me, there about to release 2.3.4 but just guessing, due to the current number of things pulled in.
So if I close serial monitor, will it complete quickly?
 
So if I close serial monitor, will it complete quickly?
quickly is a relative term 😆. Still can take a while. But least it will complete. There is also the ability to disable all of this. I don't remember the settings (have not used it), nor once you disable the automatic how you trigger it to check. But i know that it has been mentioned on some threads on the Arduino forum.
 
So if I close serial monitor, will it complete quickly?

Yes, it should be quick. This file is only 24K, so unless your internet connection is through something as slow as an old 1990s dial-up modem, the total time taken ought to be only a second or two.

But recently Arduino software does have a known bug where it gets stuck downloading if the serial monitor is open. Arduino developers have fixed it in their code, but not yet released a new version with the fix.

To answer your original question about *why* Arduino IDE downloads this file, this is how Arduino detects when a new version is available. It re-downloads the index every several hours. Maybe that's excessive, but it does give you a really convenient way (without the serial monitor interfering bug) to automatically tell you when a new version has been published and give you a 1-click way update.

Arduino IDE downloads several of these index files. The one for Teensy is only 24K. But the file they publish with a list of all libraries is megabytes. The names look similar, so if you recently saw a message about Teensy's index file and a download is taking time (and you've closed the serial monitor), look again closely at the name. In theory any of the index files for whatever boards you've installed could be any size, but in practice the only large file is the list of all libraries which Arduino publishes.
 
Last edited:
Back
Top