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 Nonblocking project compiling (Read 4045 times)
lorenzo.delana
Newbies
*
Offline


Posts: 4
Joined: Mar 3rd, 2016
Nonblocking project compiling
Mar 3rd, 2016 at 12:14pm
Print Post  
Would nice to have the compile phase of the project to run under another thread (asynchronously) so that the IDE not gets blocked.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Nonblocking project compiling
Reply #1 - Mar 3rd, 2016 at 12:21pm
Print Post  
Agreed thanks. It's being worked on but do please say if you are encountering long compile times. 

Normally the compile should be less than a few seconds. 

If you are using libraries that contain many files then switching off "visual micro>deep search includes" can produce significant performance increase.
  
Back to top
IP Logged
 
lorenzo.delana
Newbies
*
Offline


Posts: 4
Joined: Mar 3rd, 2016
Re: Nonblocking project compiling
Reply #2 - Mar 3rd, 2016 at 12:41pm
Print Post  
Hi, thx for the reply,
yes It worked

With "Deep Search Includes" option it takes about 43 secs, while without it takes 8 seconds.
I suggest then to let this option disabled for new installations, and to put a message in the Output window about as hint to enable that option only if compilation results in error for missing header files.

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


Posts: 12192
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Nonblocking project compiling
Reply #3 - Mar 3rd, 2016 at 12:47pm
Print Post  
It's a difficult one.

It is the default/forced in the arduino ide since 1.6.6 and can not be disabled....

New users always hit problems when a library also requires another library. Most common is spi.h and wire.h. 

The feature automatically finds these hidden relationships and #includes them but more experienced users can simply added them to the project_name.ino and then the feature has no purpose.

So, either new users get compile errors or more experienced users find it slow. 

However most important is that new users don't give Visual Micro a bad review because something works in Arduino and not in Visual Micro.

I put a big link at the top of the visualmicro.com home page about this and am considering how else to tell people. 

Hopefully you can now understand the dilemma Smiley
« Last Edit: Mar 3rd, 2016 at 12:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint