Skip to content

Cache the library/package indexes #2506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
VladimirVecera opened this issue Sep 14, 2024 · 1 comment
Closed
3 tasks done

Cache the library/package indexes #2506

VladimirVecera opened this issue Sep 14, 2024 · 1 comment
Assignees
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@VladimirVecera
Copy link

Describe the request

I'm using ESP32 and let's say after daily powering on Arduino 2.3.2 I wait a few minutes for ESP32 downloading index. Why is the ESP32 index downloaded and not cached?

It delays work unnecessarily. What's more, if I open a new scatch in a new window during downloading, insert the code and want to upload the code to the ESP32, the compilation is completely blocked, because the downloading index of the ESP32 is in the first window.

image

Describe the current behavior

Do not use the ESP32 downloading index every time you turn on the Arduino. It really hinders the use of the program.

Arduino IDE version

2.3.2

Operating system

Windows

Operating system version

11

Additional context

No response

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@VladimirVecera VladimirVecera added the type: enhancement Proposed improvement label Sep 14, 2024
@per1234 per1234 self-assigned this Sep 14, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Sep 14, 2024
@per1234
Copy link
Contributor

per1234 commented Sep 14, 2024

Hi @VladimirVecera . Thanks for taking the time to submit an issue.

I wait a few minutes for ESP32 downloading index

I see we have another report about this at arduino/arduino-cli#2347.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

Why is the ESP32 index downloaded and not cached?

It is cached, but only for four hours:

return 4 * 60 * 60 * 1_000; // four hours in millis

The reason for this is that the platform developer makes new releases of the platform by updating the package index. So we must periodically download a fresh copy of the index to check whether there is a new version of the platforms from the index.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2024
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Sep 14, 2024
@per1234 per1234 changed the title Waiting a few minutes for the ESP32 downloading index Cache the library/package indexes Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants