Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Library Manager: update library / check for updates (Read 1965 times)
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Library Manager: update library / check for updates
Jan 26th, 2024 at 6:01pm
Print Post  
In Micro explorer there is not correct representation of latest library version. For example:
- RTClib by Adafruit is 1.14.2 as latest; but actually the latest is 2.1.3
- ArduinoJson, shown is 6.21.5, should be 7.0.2

When I update it manually, VM wants to update back to old version (PrtScr attached)

(only some Libs are affected, and NO double Libs are installed)

Do I do something wrong, or...?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library Manager: update library / check for updates
Reply #1 - Jan 26th, 2024 at 7:18pm
Print Post  
Did you click the reload button on the top of the explorer? its' not in your image.
« Last Edit: Jan 26th, 2024 at 7:20pm by Tim@Visual Micro »  
Back to top
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Library Manager: update library / check for updates
Reply #2 - Jan 26th, 2024 at 8:27pm
Print Post  
If you mean "rescan": yes. PrtScr is done after rescan.
  
Back to top
 
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Library Manager: update library / check for updates
Reply #3 - Jan 26th, 2024 at 8:33pm
Print Post  
This is info of SW:
- Microsoft Visual Studio Community 2019, Version 16.11.33
- VS: 2024.102.1903

(but, the same problem was noticed even on older versions)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library Manager: update library / check for updates
Reply #4 - Jan 26th, 2024 at 9:28pm
Print Post  
If you expand the "all" part of the library manager and search or navigate to the arduinojson library. Expanding it shows all versions of the lib. Can you install the correct one from that list?
  
Back to top
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Library Manager: update library / check for updates
Reply #5 - Jan 26th, 2024 at 9:41pm
Print Post  
Yes, I can install any version if I expand to all versions. This is what I meant with "manual update" in my first post above.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library Manager: update library / check for updates
Reply #6 - Jan 27th, 2024 at 4:09am
Print Post  
I see. it's possible the library index has the versions in the wrong order and that visual micro isn't using the right ordering when installing from the updates section. 

we will look at it thanks
  
Back to top
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Library Manager: update library / check for updates
Reply #7 - Jan 28th, 2024 at 4:31pm
Print Post  
It maybe even extracts the wrong version number from "library.properties" file. For example on RTClib:
- in library.properties: 
    name=RTClib
    version=2.1.3
    author=Adafruit
- VM explorer shows version 1.11.3 as beeing currently installed and that it is possible to upgrade to 1.14.2. Altough, it has 2.1.3 listed (see PrtScr), but not as installed.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Library Manager: update library / check for updates
Reply #8 - Jan 28th, 2024 at 10:14pm
Print Post  
Thanks, that could be a mistake in the libraries. 

The list of versions in Library Manager comes from the arduino.cc > library-index.json. The version in the library.properties can only be known after install of a specific library version (it is also set by the library author).

In the design of the arduino specification there is no correlation between the entries shown in the library manager (index) and the library that is actually installed. This is because installing a library is simply just copying the (any) library sources to documents/arduino/libraries/libname.

Does the arduino ide library manager show same issue?
« Last Edit: Jan 28th, 2024 at 10:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
marc1
Junior Member
**
Offline


Posts: 10
Joined: May 4th, 2017
Re: Library Manager: update library / check for updates
Reply #9 - Jan 29th, 2024 at 8:51am
Print Post  
I checked and compared to arduino IDE Lib manager. It shows correct versions an suggests the updates. So, I think it all points to VM Explorer. I am attaching my library-index.json, just in case.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint