VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> VS2022 'Install a library from a zip' does not load examples
https://www.visualmicro.com/forums/YaBB.pl?num=1660134802

Message started by Lee Critchlow on Aug 10th, 2022 at 12:33pm

Title: VS2022 'Install a library from a zip' does not load examples
Post by Lee Critchlow on Aug 10th, 2022 at 12:33pm
Installing grbl-Mega-edge.zip using the 'Install a library from a zip' in Micro Explorer loads the library but does not populate the the examples into the Library Examples. Therefore, I cannot create a Project directly from grbl examples. :'(

Title: Re: VS2022 'Install a library from a zip' does not load examples
Post by Simon@Visual Micro on Aug 10th, 2022 at 12:39pm
Thanks for the report. 

Question

Have you run the vMicro > General > Rescan Toolchains and Libraries since installing the library from ZIP?

Info

Installing a library is simply a matter of extracting the zip to the libraries location. You can extact the libraries manually if they have failed to extract.

Title: Re: VS2022 'Install a library from a zip' does not load examples
Post by Lee Critchlow on Aug 11th, 2022 at 5:36pm
Yes, I've clicked Rescan after installing the library.
The manual install folder is two levels down in the zip file, which I believe is the problem when installing by zip. :-?
When I copy the folder manually the library appears in Examples. >:(

Title: Re: VS2022 'Install a library from a zip' does not load examples
Post by Tim@Visual Micro on Aug 12th, 2022 at 11:24pm
We have looked at the "grbl-Mega-edge" library and it does not conform to the arduino standard. The Arduino IDE refuses to unzip it.

One issue is that the gtihub zip contains others files and folders. It is not possible to know which folder is the library folder. An modern arduino library would have a library.properties text file in the library root and an \src folder containing the library sources.

After unzipping the library manually it was recognized by both Visual Micro and the Arduino IDE

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.