Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
(SOLVED) Slow compilation problem since V 1905 (Read 372 times)
CB
Newbies
*
Offline



Posts: 3
(SOLVED) Slow compilation problem since V 1905
Jun 11th, 2019 at 6:55pm
 
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.
Back to top
« Last Edit: Jun 13th, 2019 at 4:26pm by Visual Micro »  

build_006.txt (546 KB | 4 )
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10559
United Kingdom
Re: Compilation problem since V 1905
Reply #1 - Jun 11th, 2019 at 7:44pm
 
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:
#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
 


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



Posts: 10559
United Kingdom
Re: Compilation problem since V 1905
Reply #2 - Jun 11th, 2019 at 8:06pm
 
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
Re: Compilation problem since V 1905
Reply #3 - Jun 12th, 2019 at 8:21am
 
Hello,
Here are the versions 1904.29.0 and 1906.3.0 made on my VS2019 test PC.
Good day and thank you
Back to top
 

build_1906_3_0.txt (541 KB | 1 )
 
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10559
United Kingdom
Re: Compilation problem since V 1905
Reply #4 - Jun 12th, 2019 at 2:50pm
 
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
 
Visual Micro
Administrator
*****
Online



Posts: 10559
United Kingdom
Re: Slow compilation problem since V 1905
Reply #5 - Jun 13th, 2019 at 4:04pm
 
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
Re: Slow compilation problem since V 1905
Reply #6 - Jun 13th, 2019 at 4:23pm
 
Hi,
Thanks, it's OK now
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print