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 Build/Upload commands only work for the "Startup project" (Read 4598 times)
Oliver H
Newbies
*
Offline


Posts: 7
Joined: Oct 3rd, 2015
Build/Upload commands only work for the "Startup project"
Nov 25th, 2015 at 9:58pm
Print Post  
I've also found that both Build and Build & Upload (both on the button bar and under the Visual Micro menu) no longer work since the 12th Nov update (I'm now on the latest extension)

If I right click, Rebuild, on the project name then my project compiles, but doesn't upload.

I can get it to compile and upload using the context menu, Debug->Start new instance, but why would the menu commands stop working?

Arduino IDE 1.6.5, Mega 2560 board.
« Last Edit: Nov 26th, 2015 at 11:02am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latest visual micro - break Build and Upload command
Reply #1 - Nov 25th, 2015 at 10:11pm
Print Post  
Hi,

This is different to the other issue which was to do with compiler cache not detecting changes during build and was fixed in a release shortly after.

Please post an image of your ide just prior to clicking build. Also confirm if build works

Tip:

The "green toolbar arrow" does the same as start new instance as does F5
  
Back to top
IP Logged
 
Oliver H
Newbies
*
Offline


Posts: 7
Joined: Oct 3rd, 2015
Re: latest visual micro - break Build and Upload command
Reply #2 - Nov 26th, 2015 at 10:41am
Print Post  
Hi Tim,

I think something must have changed in relation to the "current StartUp project".

I'm developing a .Net application along side an Arduino library and I've had the .Net app set as the default startup application so the green arrow (F5) would launch that.  However, I was still able to build and upload the Arduino sketches using the Visual Micro tool bar simply by selecting the appropriate sketch, and clicking on the Build or Build&Upload buttons.

I'm not sure if this is/was the right way to use it, but it was very convenient.  Now I have to right click->Set as StartUp Project before I can build/upload - which is a bit of a pain.
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: latest visual micro - break Build and Upload command
Reply #3 - Nov 26th, 2015 at 11:01am
Print Post  
Thanks for the info.

Yes that should work but the combination wasn't clear from your original report Smiley

I will test thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build/Upload commands only work for the "Startup project"
Reply #4 - Dec 14th, 2015 at 3:20am
Print Post  
The latest release has some changes in this area. 

The Visual Micro build and upload buttons should now work if the code currently being edited is arduino code but the startup project is a windows or other non-arduino project.

++ Might be of interest
As an experiment there is also a new "tools>options>visual micro>Application features>Upload/debug active code" setting that can be enabled which always ignores the startup project if arduino code is open and active for edit. The functionality of this setting might be more obvious when multiple arduino projects are in the same solution and one is the  startup project. In this case the F5/continue shortcut key during debug sessions might be more intuitive with the setting switched on.
  
Back to top
IP Logged
 
Oliver H
Newbies
*
Offline


Posts: 7
Joined: Oct 3rd, 2015
Re: Build/Upload commands only work for the "Startup project"
Reply #5 - Dec 14th, 2015 at 12:39pm
Print Post  
Excellent - many thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint