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 (SOLVED) Slow compilation problem since V 1905 (Read 1874 times)
CB
Newbies
*
Offline


Posts: 3
Joined: May 15th, 2019
(SOLVED) Slow compilation problem since V 1905
Jun 11th, 2019 at 5:55pm
Print Post  
Hello,
For some time, the compilation time has grown considerably. I did tests on an old PC with a fresh version of Vindows10 with only Arduino Ide 1.89 and Visual Studio Community  17 V 15.9.12. No antivirus and Windows defender disabled.
I have tried several versions of Visual Micro and here are compilations times (not the first, but the second compilation).
v 1904.24.12  20 seconds
v 1904.27.0   20 seconds
v 1904.29.0   20 seconds
v 1905.1.8    3 minutes 30seconds
v 1905.05.19 3 minutes 30 seconds
v 1905.24.0   3 minutes 30 seconds
v 1906.3.0    3 minutes 30 seconds

It seems that there is a problem since the 1905 version ...
Thanks.
« Last Edit: Jun 13th, 2019 at 3:26pm by Tim@Visual Micro »  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation problem since V 1905
Reply #1 - Jun 11th, 2019 at 6:44pm
Print Post  
Thanks very much for the useful testing. Initial tests indicate the hold up is during the deep search phase. We will investigate more over the next 24 hours.

If the deep search is the issue you might be able to workaround the issue for now by switching off "vMicro>Compiler>Deep search for libraries"

If you switch off deep search you must #include at least one header from all required libraries in the .ino code. For example:-
Code
Select All
#include <HTTPClient.h>
#include <WiFiClientSecure.h>
#include <ssl_client.h>
#include <WiFiUdp.h>
#include <WiFiType.h>
#include <WiFiSTA.h>
#include <WiFiServer.h>
#include <WiFiScan.h>
#include <WiFiMulti.h>
#include <WiFiGeneric.h>
#include <WiFiClient.h>
#include <WiFiAP.h>
#include <WiFi.h>
#include <ETH.h>
#include <FS.h>
#include <SPIFFS.h>
#include <SPI.h>
#include <Wire.h>
+++ any other lib header.h so we find the libs/paths
 


« Last Edit: Jun 11th, 2019 at 6:45pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation problem since V 1905
Reply #2 - Jun 11th, 2019 at 7:06pm
Print Post  
Would you please post the equivalent build output using  1904.29.0

Thanks v much
  
Back to top
WWW  
IP Logged
 
CB
Newbies
*
Offline


Posts: 3
Joined: May 15th, 2019
Re: Compilation problem since V 1905
Reply #3 - Jun 12th, 2019 at 7:21am
Print Post  
Hello,
Here are the versions 1904.29.0 and 1906.3.0 made on my VS2019 test PC.
Good day and thank you
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation problem since V 1905
Reply #4 - Jun 12th, 2019 at 1:50pm
Print Post  
Thanks, that confirms the issue is related to caching. Both deep search and the project code are being compiled too often.

This will relate to the new compiler flags ahead of the new gdb debugging that is about to be released which allows core, libraries and projects to use different flags.

Hope to have a fix over the next 24 hours, I will update this post when it is available.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Slow compilation problem since V 1905
Reply #5 - Jun 13th, 2019 at 3:04pm
Print Post  
Hi.

Thanks again for the really great report. This issue is resolved, please install 1906.12 from the releases section of this forum. 

We are currently implementing a new test framework so this type of issue should not happen in future. 


note: The release will be published to the gallery shortly., however the forum offers early download.
  
Back to top
WWW  
IP Logged
 
CB
Newbies
*
Offline


Posts: 3
Joined: May 15th, 2019
Re: Slow compilation problem since V 1905
Reply #6 - Jun 13th, 2019 at 3:23pm
Print Post  
Hi,
Thanks, it's OK now
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint