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 Error message, failed Build and Upload (Read 1981 times)
NF1Z
Junior Member
**
Offline


Posts: 57
Joined: Aug 18th, 2013
Error message, failed Build and Upload
Mar 2nd, 2023 at 1:22am
Print Post  
Just updated VM and now getting this
Quote:

Error during processing of the command. Please review or post the stack trace in the www.visualmicro.com forumObject reference not set to an instance of an object. (Visual.Micro.Visual.Studio.Arduino.Helper.SketchCompileUpload)


But the file uploads OK as a separate operation.

I have also noticed another strange effect - maybe not at all related.  The output goes into
obj\ARM\Release instead of Release.  The ARM element is a little confusing to say the least.

I also have a problem in debug configuration that I will post separately.

Thanks
  

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


Posts: 2697
Joined: Feb 13th, 2019
Re: Error message, failed Build and Upload
Reply #1 - Mar 2nd, 2023 at 1:13pm
Print Post  
Thanks for the report.

I assume you have another (non vMicro) project in the solution, which is set as the Startup Project when this happens?

If this is correct, to work around the issue either:
1) Set the "client-with-wifi" project as the startup project
2) Enable vMicro > General > Active Code has Priority Over Solution Explorer and ensure the client-with-wifi.ino file is the open and focused document when performing the build and upload.

We will update when there is more resiliency added to resolve this issue.


more info: If you have enabled the visual micro "copy output to intermediate" option then the result of the comliation is copied to the folder specified as the "Intermediate build folder" in the project properties. Visual Studio allows the path to inclue macros such as $(Configuration) or $(Platform). Thesse relate to whatever platform and configuration you have selected (see the tool bar). This is std. VS functionality that can optionally also be used to enhance the build process. You can switch it off if you don't need the output copied to a specific folder.
« Last Edit: Mar 2nd, 2023 at 7:12pm by Tim@Visual Micro »  
Back to top
IP Logged
 
NF1Z
Junior Member
**
Offline


Posts: 57
Joined: Aug 18th, 2013
Re: Error message, failed Build and Upload
Reply #2 - Mar 2nd, 2023 at 7:08pm
Print Post  
Simon.
Thanks for the response.  But I don't think so.  Not sure exactly what "non Vmicro" means, but it was the only project that was not an Arduino library added as a shared project, or a library cloned to the solution.  I always make sure it's highlighted and set as startup, then build and upload from the vMicro menu - been burned before.

I just re-ran the build making sure it is set up as you said: same result.

As I said, this is new since I installed version 2.2023.0220 yesterday.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error message, failed Build and Upload
Reply #3 - Mar 2nd, 2023 at 7:13pm
Print Post  
Thanks for the report. This is hopefully resolved in the LATEST update available from this forum https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
NF1Z
Junior Member
**
Offline


Posts: 57
Joined: Aug 18th, 2013
Re: Error message, failed Build and Upload
Reply #4 - Mar 3rd, 2023 at 5:19am
Print Post  
Thank you, seems to have fixed it for me.

Regards,
Jed
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint