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
Hot Topic (More than 8 Replies) very slow compilation 1906_29 (Read 6053 times)
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
very slow compilation 1906_29
Jun 30th, 2019 at 11:54pm
Print Post  
After updating very slow compilation over 100 sec.
Visual Studio 2019, v_1906_29_0
Deep Search takes a lot of time.
If you disable Deep Search and add #incude library - the project is compiled but does not work

How to return compilation speed?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #1 - Jul 1st, 2019 at 12:06am
Print Post  
Hi,
please follow the guide in yellow at the top of this forum which includes enabling verbose. Then attach the output as a .txt file. Yu might have to click "Reply" before you can attach the file.

I removed your post with some build properties because it was truncated and did not show the required information.

Thanks

ps: I might be wrong but normally this type of report results in discovery that the arduino ide was also updated or the board manager was used to update tool chains. Slow tool chains are often a result of virus checker interference.  Which virus checker are you using?

Deep search for libraries simply avoids the need to add at least one #include for all required libraries to .ino code. 

« Last Edit: Jul 1st, 2019 at 12:22am by Tim@Visual Micro »  
Back to top
IP Logged
 
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
Re: very slow compilation 1906_29
Reply #2 - Jul 1st, 2019 at 1:30am
Print Post  
Antivirus is not used.
Arduino Also updated to 1.8.9
« Last Edit: Jul 1st, 2019 at 1:36am by Vladislav Somov »  
Back to top
 
IP Logged
 
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
Re: very slow compilation 1906_29
Reply #3 - Jul 1st, 2019 at 1:33am
Print Post  
Compile log
  

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #4 - Jul 1st, 2019 at 11:35am
Print Post  
Thanks but you need to switch on vMicro>Compiler>verbose

One thing I notice which might be unrelated but you should fix is your project name is not so good. In the arduino ide you will not be able to use that project name but also it contains a lot of spaces and unicode which mcu's don't like.

Right click "Вар2 на базе M5StickC.ino" and rename to "Вар2_M5StickC" or something simple. Then you should be prompted to rename the entire project. Maybe this will help but actually I can not compile with the project name you have used. Maybe in the future we will enforce strict control of file names but the arduino ide is too strict and that used to cause complaints in this forum.
« Last Edit: Jul 1st, 2019 at 11:46am by Tim@Visual Micro »  
Back to top
IP Logged
 
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
Re: very slow compilation 1906_29
Reply #5 - Jul 1st, 2019 at 12:54pm
Print Post  
Project name changed to var2_M5StickC.ino
Log with Verbose parameter in attachment
Compilation speed is still low
  

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #6 - Jul 1st, 2019 at 1:02pm
Print Post  
Thanks, pls click Build a second time so that I can see the cached output. Click Build not Rebuild

Thanks

EDIT: Also give link to board package (json) or github etc. so we can test same.
« Last Edit: Jul 1st, 2019 at 1:05pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
Re: very slow compilation 1906_29
Reply #7 - Jul 1st, 2019 at 2:04pm
Print Post  
Log Third build in attachment.
I do not understand what link should be sent.
This is the M5StickC board: https://docs.m5stack.com/#/en/core/m5stickc
I installed Arduino with this instruction: https://docs.m5stack.com/#/en/quick_start/m5stickc/m5stickc_quick_start_with_ard...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
Re: very slow compilation 1906_29
Reply #8 - Jul 1st, 2019 at 2:09pm
Print Post  
may be: ESP32 Boards Manager url: https://dl.espressif.com/dl/package_esp32_index.json
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #9 - Jul 1st, 2019 at 2:11pm
Print Post  
Sorry I forgot this board is listed in the standard esp32 boards list.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #10 - Jul 1st, 2019 at 2:17pm
Print Post  
Okay now we can clearly see that cache is failing for the deep search for libraries. We will have to look into it some more because it works in our tests. We will use your build output to replicate.

You can switch back to an older version using the releases section of this gallery. You would need to use extension manager in the ide to uninstall the current visual micro first because it has newer version number. You can probably also switch off deep search if you add at least one #include from each library to your .ino code. The easy way might be to use "visual micro > add library" 

Using library M5StickC-0.0.7 version 0.0.7 in folder 
Using library Wire version 1.0.1 in folder 
Using library SPI version 1.0 in folder 
Using library FS version 1.0 in folder
Using library Adafruit_VEML6070_Library
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #11 - Jul 2nd, 2019 at 9:41pm
Print Post  
Can you please try changing your build folder to a simple path as a test.

Click "vMicro>General>Global Options>Compiler" and set the "Build Folder" to something like "c:\tmp\vmbuild"

Then try two compiles. The second build should take approx. 4.5 seconds. A full build, for me, took 67 seconds.

  
Back to top
IP Logged
 
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
Re: very slow compilation 1906_29
Reply #12 - Jul 7th, 2019 at 2:24pm
Print Post  
After entering the folder "C:\tmp\vmbuild"
First compilation 134,44 secs 
The second and third compilation 103,19 and 79,69 secs
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #13 - Jul 7th, 2019 at 3:37pm
Print Post  
Sorry I reviewed your output again and it looks like you have switch off deep search library cache? It defaults to True.

Tools>options>visual micro>compiler>Deep Library Search Cache = TRUE

Thanks

« Last Edit: Jul 7th, 2019 at 3:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Vladislav Somov
Newbies
*
Offline


Posts: 9
Joined: Jun 30th, 2019
Re: very slow compilation 1906_29
Reply #14 - Jul 14th, 2019 at 12:38am
Print Post  
After set option Tools>options>visual micro>compiler>Deep Library Search Cache = TRUE
First compilation 147,70 secs 
The second and third compilation 37,72 and 36,96 secs
It's still long
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #15 - Jul 15th, 2019 at 10:22am
Print Post  
Okay so we see that some options were changed to disable cache.

It's impossible to help you without the information shown in yellow at the top of this page. 

Let's try another way. If you know how to use regedit.exe delete the key hk_current_user\software\visual micro

Then try the build. If it is slow you must post the information to show what is happening. The compiler output is very detailed so we can see the full picture without guessing.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: very slow compilation 1906_29
Reply #16 - Aug 4th, 2019 at 12:23pm
Print Post  
There is a fix to the deep search cache relating to the use of shared libraty projects in 1908.3+.

It is also now possible to easily make a local clone of a specifc version of a library if needed.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint