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 Always recompiles all code including libraries after updating to latest vmicro (Read 265 times)
iain frew
Junior Member
**
Offline


Posts: 13
Joined: Nov 17th, 2017
Always recompiles all code including libraries after updating to latest vmicro
Nov 30th, 2024 at 11:23pm
Print Post  
I couldn't figure this out. After updating to latest vs2019 and vmicro (purchased support for another year) my project always compiles everything again which slows things down greatly. I saw folks had issues with this before so I deleted my solution and recreated the solution with my source files. Same issue. I deletedthe temp vmbuilds and vmcore in my Appdata as well as the .vs in my solution. Same issue. To test if it was working, I then created a new test solution and compiled and recompiled and its NOT recompiling the libraries again. So there is somewhere a configuration that is  not picking up the precompiled libraries for my solution. Attached is the build output text file. Any help appreciated as its really really slow.
  

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


Posts: 2499
Joined: Feb 13th, 2019
Re: Always recompiles all code including libraries after updating to latest vmicro
Reply #1 - Dec 2nd, 2024 at 1:18pm
Print Post  
Thanks for the report and the log.

The root cause of the libraries being recompiled every time is the name of your Project (and main INO File) has spaces in it.

You can resolve this by right clicking the INO file in Solution Explorer, and rename it to remove the spaces, and click OK to the popup.   

The project will then reload, and the first compile will be a full one again, however after this it should use the cache as expected.
  
Back to top
IP Logged
 
iain frew
Junior Member
**
Offline


Posts: 13
Joined: Nov 17th, 2017
Re: Always recompiles all code including libraries after updating to latest vmicro
Reply #2 - Dec 3rd, 2024 at 5:11pm
Print Post  
Awesome! That worked. It used to accept spaces in the name but I guess that changed at some point from the last version I had to this latest version. 

Thanks!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2499
Joined: Feb 13th, 2019
Re: Always recompiles all code including libraries after updating to latest vmicro
Reply #3 - Dec 11th, 2024 at 9:25pm
Print Post  
Please install the latest release (2024.1211.0) from the top of the below board, this should resolve the caching issue even if there are spaces in the name:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Danie1
Junior Member
**
Offline


Posts: 20
Joined: Jan 12th, 2022
Re: Always recompiles all code including libraries after updating to latest vmicro
Reply #4 - Dec 14th, 2024 at 12:39pm
Print Post  
Awesome, this got my Teensy 4.1 project from 60s down to 10s when there was no change in the files (using Visual Studio and having a non-standard code structure).

Thanks for the effort and keep the spirit!
Best Regards
Daniel
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint