VS Arduino
Visual Micro >> Installation & Troubleshooting >> (SOLVED) Slow compilation problem since V 1905
https://www.visualmicro.com/forums/YaBB.pl?num=1560275718

Message started by CB on Jun 11th, 2019 at 5:55pm

Title: (SOLVED) Slow compilation problem since V 1905
Post by CB on Jun 11th, 2019 at 5: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.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=build_006.txt ( 546 KB | 4 Downloads )

Title: Re: Compilation problem since V 1905
Post by Visual Micro on Jun 11th, 2019 at 6: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
[/code]

Title: Re: Compilation problem since V 1905
Post by Visual Micro on Jun 11th, 2019 at 7:06pm
Would you please post the equivalent build output using  1904.29.0

Thanks v much

Title: Re: Compilation problem since V 1905
Post by CB on Jun 12th, 2019 at 7:21am
Hello,
Here are the versions 1904.29.0 and 1906.3.0 made on my VS2019 test PC.
Good day and thank you
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=build_1904_29_0.txt ( 55 KB | 1 Download )
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=build_1906_3_0.txt ( 541 KB | 1 Download )

Title: Re: Compilation problem since V 1905
Post by Visual Micro on Jun 12th, 2019 at 1: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.

Title: Re: Slow compilation problem since V 1905
Post by Visual Micro on Jun 13th, 2019 at 3: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.

Title: Re: Slow compilation problem since V 1905
Post by CB on Jun 13th, 2019 at 3:23pm
Hi,
Thanks, it's OK now

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