Skip to content

Inform user when the indexes are outdated #984

Closed
@endorama

Description

@endorama

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 was 0.11.1.

But until someone told me about running arduino-cli lib updated-index I wasn't able to discover that. I was using arduino-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 my library 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 running core upgrade, but it didn't work. Guessed why? Yes, you got it: I had the core index outdated. Everything was fixed with core update-index and core 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions