You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I see still an issue with the library manager. This was also reported in #4139
I noticed the issue is still there after I released a new version of a contributed library, which not did show up in the library manager. I tried this with the latest nightly build (of 20151204 02:17).
The symptoms are still the same, the file library_index.json.tmp.gz is not refreshed and I do not see the new libraries versions.
After renaming the file library_index.json.tmp.gz to something different, the IDE loads a new library_index.json.tmp.gz version and I see the new library updates in the library manager.
When I delete the newly copied library_index.json.tmp.gz and rename the old one back again, then I only see the old versions in the library manager.
Michael Jonker
The text was updated successfully, but these errors were encountered:
I checked the code. The issue is that the downloaded gz file is never deleted.
Consequently, when a new version is downloaded again, the "tmpFile.renameTo(gzipTmpFile)" fails (at cc/arduino/contributions/GZippedJsonDownloader.java:56 ).
The result (false) is not checked, so the process goes on and uncompresses the old version over and over again.
The fix is to delete the previous file by adding
gzipTmpFile.delete();
As the file is named "tmp", I guess the intention of the author was to delete it once uncompressed so I would add the delete right after the call to decompress(), as follows :
Hello, I see still an issue with the library manager. This was also reported in #4139
I noticed the issue is still there after I released a new version of a contributed library, which not did show up in the library manager. I tried this with the latest nightly build (of 20151204 02:17).
The symptoms are still the same, the file library_index.json.tmp.gz is not refreshed and I do not see the new libraries versions.
After renaming the file library_index.json.tmp.gz to something different, the IDE loads a new library_index.json.tmp.gz version and I see the new library updates in the library manager.
When I delete the newly copied library_index.json.tmp.gz and rename the old one back again, then I only see the old versions in the library manager.
Michael Jonker
The text was updated successfully, but these errors were encountered: