-
-
Notifications
You must be signed in to change notification settings - Fork 398
Inform user when the indexes are outdated #984
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
Comments
@endorama
this could be possible, but consider that we'd need to send a query every time a user uses the why would a user's due diligence |
A lighter solution might be to print the date of the last index update on various lib commands, so a user could at least notice that he's looking at old information (without really needing to know whether any new information actually exists) and realize that he should update the indexes. |
@matthijskooijman We have a
|
I wasn't thinking so much about the JSON output, but the human-readable output. E.g. something like:
Or maybe the message could be more prominent and at the end of the results, but then only when the last update is more than, say 3 days ago or so? So something like:
OTOH, I guess that always showing the entry might be useful, to prevent the case where someone has recently updated, changes his own library and can't figure out why the new version isn't showing up somehow. |
I like the second approach since we're mainly talking about the library index and not versions of the libraries. |
@ubidefeo the |
thank you @per1234 |
TL;DR: @ubidefeo I like the direction the fix is going, that would be a sufficient mitigation in my view.
Yes, automatically update the index on I would consider what's the use case for having a not-up-to-date index. Is there a use case?
How am I, as a user, expected to know (or discover) it? The text proposed by @matthijskooijman ( Side note: my laptop and servers have auto updates enabled since years 😉 and yours too, probably |
interesting and doable
There's no interest, of course. An updated set of index files is always good The reason why I talk about "due diligence" is because I and many HomeBrew users out there, but also Linux shell users, manually issue a Adding such automated update when searching makes sense in matter of UX, so I'm adding this to our backlog :) |
Hello team :)
Today I was fighting against a compilation error when using a library (
ArduinoIoTCloud
to be precise). For some reason a type that should have been defined wasn't.After some debugging the issue was discovered: my library was outdated. I was using the
0.8.0
while the latest available was0.11.1
.But until someone told me about running
arduino-cli lib updated-index
I wasn't able to discover that. I was usingarduino-cli lib search
to search for the library and check if my version was the latest, and nowhere there was an hint about the fact that mylibrary index
was outdated.So I'm here proposing a small feature request that may help in such cases: include a log when running any lib related command to inform the user if their
library index
is out of date in relation to the latest published. Is this possible? Would have greatly helped in my case.Once that was done I tried compiling and had another error (missing
SNU.h
). Again I was left in the dark, without any clue. I tried runningcore upgrade
, but it didn't work. Guessed why? Yes, you got it: I had the core index outdated. Everything was fixed withcore update-index
andcore upgrade
, but the experience was a real pain.I would have loved something that alerted me that not only I had outdated things installed but that I had outdated indexes, so searching for newer version was incomplete due to this.
Thank you and keep up the amazing work ❤️
PS: I have no idea (as I don't know how to downgrade my library index now) if the
outdated
command is affected by the same behaviour: does that command show outdated in relation to the latest "online" library index or does it show outdated based on the local library index?The text was updated successfully, but these errors were encountered: