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) Desperately long compile times are back :-( (Read 4096 times)
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Desperately long compile times are back :-(
Sep 25th, 2023 at 6:27pm
Print Post  
Hi,
for a while build times have been much improved.
I just updated to the latest VM and also updated to the latest ESP32 core.
Sadly build times are back to sufficient time to make a coffee..

First build (after a Clean build) 191.54 seconds
Rebuild (having changed absolutely nothing) 195.43 seconds.
I have attached the build output.

In build.txt I have:
« Last Edit: Sep 30th, 2023 at 6:12pm 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: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #1 - Sep 25th, 2023 at 6:33pm
Print Post  
I would expect a rebuild to take that time. Are you clicking build or rebuild?
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #2 - Sep 25th, 2023 at 6:50pm
Print Post  
Build (using the build icon)
  
Back to top
 
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #3 - Sep 25th, 2023 at 6:52pm
Print Post  
It looks like ALL the libraries are being rebuilt every time I run a build (timestamp is updated)
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #4 - Sep 25th, 2023 at 7:01pm
Print Post  
Yes it's doing full lib discovery too but with your board.txt it should not if no changes to the .ino

It looks like a rebuild not a 2nd build. The prototypes are also not found, it should at least discover setup and loop.

You do have two errors shown, not sure if that would cause it.

Ignoring source code that is included in the project but can not be located: S:\Arduino\Avionics\ImuCan\cct.cpp
Ignoring source code that is included in the project but can not be located: S:\Arduino\Avionics\ImuCan\cct.h

If you look at the solution explorer you should see that there are two exclamation marks or errors showing for two missing files. Right click them and remove/exclude.

If that does not solve then please zip and email your .ino code to us.




  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #5 - Sep 25th, 2023 at 7:54pm
Print Post  
I have removed the files although they weren´t listed in the project explorer - a restart of VS seems to have sorted it out.

Still the same so I´ve emailed the project.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #6 - Sep 26th, 2023 at 12:45am
Print Post  
The project you send wasn't recognised as an arduino project. we will look into why that is.

As a test, remove the vcxproj files from the sketch dir and then use file>open>arduino project to reopen the ImuCan.ino

btw: I suspect this should also be in the ImuIncludes.h intsead of .ino. The .h has pragma once. ...

extern void setupImu();
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #7 - Sep 26th, 2023 at 4:18am
Print Post  
I removed the vcxproj files and re-opened the project from the .ino and did 2 builds but still the same, 174 seconds.

The setupImu(); was done to move the setup out of the ino as previously the build was fast as long as no changes were made to the ino - changing any of the source files except the ino and the build was fast, any change to the ino and it did a full rebuild.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #8 - Sep 26th, 2023 at 2:06pm
Print Post  
The vcxproj was okay, I called the folder Imu instead of ImuCan

Where does device.h come from which is referenced in you bmeSensor.h and please send the canCodes.h which might be the issue.
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #9 - Sep 27th, 2023 at 3:54am
Print Post  
device.h seems to be a leftover from a library addition - I commented it out and the code builds.

I´ve attached the CanCodes.h which is just some common defines used across several projects.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #10 - Sep 27th, 2023 at 4:04am
Print Post  
I don´t know if it´s relevant but on several of the include files, if I right click and select Go to document I get a message 
"File ´xxx´ not found in current source file´s directory or in build system path"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #11 - Sep 30th, 2023 at 3:36pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #12 - Sep 30th, 2023 at 3:41pm
Print Post  
@Acurio 

We noticed your libraries are always being recompiled. They have seperate cache options in the vmicro F4 project properties. Either the lib caching has been switched off or something is causing the library sources to be updated. That would also cause the deep search to klick off again.

Do you get the same problem in a new project?

We also noticed you have an #include to a fixed path s:\. It's better to use a shared code project for that include. Not sure if that is related but it's definately out of the oridinary
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #13 - Oct 1st, 2023 at 1:26pm
Print Post  
Can you confirm if "Tools>Options>Visual Micro>Micro Debug>Library Debugging" is on or off?
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #14 - Oct 1st, 2023 at 1:33pm
Print Post  
It is set to False
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #15 - Oct 7th, 2023 at 7:00pm
Print Post  
Sorry for the delayed update. Can you please rename or remove the board.txt and then clear re-build. Then try another Build, then post or email the output.

Thanks
  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #16 - Oct 8th, 2023 at 3:43am
Print Post  
I have emailed various build outputs.
Hope they are helpful.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Desperately long compile times are back :-(
Reply #17 - Oct 8th, 2023 at 9:24pm
Print Post  
Thanks for the files.

it would be useful to try a new project that has all libraries #included <lib.h> in an ino but with only an empty setup() and loop(). No actual code required, just an .ino file.

Does that have the same issue?



  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: Desperately long compile times are back :-(
Reply #18 - Oct 11th, 2023 at 5:39am
Print Post  
I tried that and the long compiles stopped.
So bit by bit I transferred my whole project to a new project, checking at each stage the compile times.
I now have the whole project copied over and compile times are now short.
So it´s a mystery what happened to the project.

One odd thing I noted when building, some project files are always recompiled even though they haven´t changed. I tried to work out why but another mystery. I thought it was something to do with the length of the file name but it doesn´t seem to be consistent.

Adding a new file with a different name (.h and .cpp) to the project and copying the code from the old file to the new file stops it recompiling every time.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint