VS Arduino
>> >> Libraries not loading
https://www.visualmicro.com/forums/YaBB.pl?num=1597753758

Message started by TheEngineersBeard on Aug 18th, 2020 at 12:29pm

Title: Libraries not loading
Post by TheEngineersBeard on Aug 18th, 2020 at 12:29pm
Hello,

I am having a problem where compilation is failing in Atmel studio as it is failing to find the libraries. The libraries do appear in the "Add Library" menu, so I don't understand why it can't find them when compiling.

Everything compiles fine in the Arduino IDE.

I've attached the verbose output from atmel studio and arduino IDE.

Suggestions on how to fix this? I'd really much rather be working in Atmel studio.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=AtmelVerbose.txt ( 29 KB | 5 Downloads )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=ArduinoVerbose.txt ( 246 KB | 2 Downloads )

Title: Re: Libraries not loading
Post by Visual Micro on Aug 18th, 2020 at 12:37pm
Hi,

It looks like you have switched off the "vMicro>Compiler>Deep search for libraries". The code you are using #includes the libraries from .cpp source and therefore requires deep search.

Alternatively you can #include a .h from each library that you need into the .ino code. That will then allow them to be discovered without the need for deep search.

The Arduino IDE does not give facility to switch off Deep Search.

Title: Re: Libraries not loading
Post by TheEngineersBeard on Aug 18th, 2020 at 12:54pm
I definitely have deep search enabled (see image).

Plus the libraries in the .ino are also not loading...
AtmelSettings.png ( 17 KB | 2 Downloads )

Title: Re: Libraries not loading
Post by Visual Micro on Aug 18th, 2020 at 1:19pm
Sorry yes you are right. We need to test why deep search is not running for you in AS7.

One thing to try in the meantime is that there is an updated version due to be released to the microchip gallery.

However, the release is available as the LATEST here https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Please try.

Thanks

Title: Re: Libraries not loading
Post by TheEngineersBeard on Aug 18th, 2020 at 1:46pm
Upgrading to the latest version has fixed the problem.

Thank you!

Title: Re: Libraries not loading
Post by Visual Micro on Aug 18th, 2020 at 2:20pm
Good, thanks for update.

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