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
Normal Topic Deep search for libraries (Read 1391 times)
amelia
Junior Member
**
Offline


Posts: 10
Location: ITALY
Joined: Apr 23rd, 2013
Deep search for libraries
Jul 23rd, 2022 at 6:03am
Print Post  
The "Deep search for libraries" function is obviously useful, but it takes a lot of time.
If there are "#include ..." in a ".h" or ".cpp" library, it is required.
My suggestion:
1- New project or new library added:
     a- "Deep search for libraries" = flag ON
     b- Generates a table with all the libraries in use and saves them for example in ".suo".
2- Project under development, no new libraries:
     a- "Deep search for libraries" = flag OFF
     b- Use the library table in use.

amelia
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Deep search for libraries
Reply #1 - Jul 23rd, 2022 at 5:03pm
Print Post  
Thanks for the post. It is a complicated discussion but always looking to improve this area.

First to confirm... There should already be caching for deep search for all files except the .ino code? 

Deep search honours conditional #include statements. For example #ifdef TEST #include <foo.h> #endif

This means that #defines and compiler statements can affect which libraries are discovered. 

Deep search also discovers libraries included in other libraries. This means that if underlying library sources are updated without updating the project code, the previous search results become invalid.

The current level of cache should already avoid a lot of re-work during 2nd build, but we are looking at how we can take it up a level. Another alternative we are considering is to offer a higher level of cache along the lines you have suggested ++ alongside a manual menu item or button that will re-scan when a user knows external changes have been made.

There are also other items on our list for this, hopefully the next few months will see some more improvements.

If you believe the cache is not caching then please build and provide the information requested in yellow above.

Thanks





  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint