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) Debugging issues (F5 experience) "VCMessage" task failed unexpectedly (Read 4590 times)
JochemK
Newbies
*
Offline


Posts: 5
Joined: Nov 18th, 2017
Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Nov 18th, 2017 at 10:07pm
Print Post  
Hi there,

I recently updated to VS2017 (build 15.4.4) and re-installed Visual Micro.

Unfortunately this resulted in nothing but trouble.
What I'm trying:

- Create a new Arduino project from the Visual Micro menu 
- Hit F5 (my board and port settings are correct)

First I kept getting the: "The "VCMessage" task failed unexpectedly" error. Some searching here lead me to change my build configuration.

This resulted in a dialog: "Unable to start debugging. Check your debugger settings by opening project properties and navigating to 'Configuration Properties --> Debugging'. Going there shows me that the project has an "Unsupported debug option".

What I've tried furthermore:

- .ino file, project folder and solution name are all the same
- reinstall visual micro
- remove everything other than the .ino file from the project
- create a new project

All to no avail. 
However, despite these errors, the project IS being built and uploaded.

I'm kinda stuck now... The dialog boxes are so annoying I won't be able to work with Visual Micro anymore. Any thoughts?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #1 - Nov 18th, 2017 at 11:20pm
Print Post  
Hi,

It's possible another extension is attempting to run an event after build or that gdb has been enabled.

You can switch off the project from Visual Studio builds and events in "Build>Configuration Manager". Visual Micro does not need anything to be checked in that window.

One question is to confirm the sane things happens if you use "File>New>Project>Visual C++>Arduino Project"?
  
Back to top
WWW  
IP Logged
 
JochemK
Newbies
*
Offline


Posts: 5
Joined: Nov 18th, 2017
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #2 - Nov 18th, 2017 at 11:31pm
Print Post  
Hi, thank you for your reply.

The project is already switched off from Visual Studio build, as far as I can tell. That was the first thing I tried.

Same thing happens when I try "File>New>Project>Visual C++>Arduino Project".
I get a warning that the project is out of date and needs to be built. Switch off VS builds. Warning "Unable to start debugging".

I'm pretty annoyed because I bought the pro version and it's now completely useless. 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #3 - Nov 18th, 2017 at 11:37pm
Print Post  
Are you sure "vMicro>Automatic Debugging" is checked and not "vMicro>Use Visual Studio Debugging"?

What happens if you click "vMicro>Build & Upload"?

Visual Micro does not use Visual Studio for build or for debug. So some config is causing this. Please show screen shot of your ide.

« Last Edit: Nov 18th, 2017 at 11:40pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
JochemK
Newbies
*
Offline


Posts: 5
Joined: Nov 18th, 2017
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #4 - Nov 18th, 2017 at 11:50pm
Print Post  
Are you sure "vMicro>Automatic Debugging" is checked and not "vMicro>Use Visual Studio Debugging"?
Automatic Debugging was off, turning it on made no difference.

What happens if you click "vMicro>Build & Upload"?
It builds and uploads.

Visual Micro does not use Visual Studio for build or for debug. So some config is causing this. Please show screen shot of your ide.
arduino1.png is the error message
arduino2.png is my build configuration and the project properties suggested in the error message.
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #5 - Nov 20th, 2017 at 12:27pm
Print Post  
Hi,

If you had switched off automatic debugging then you have been fiddling Smiley

+ Debug will not start because you have the tool bar set to Release and not Debug.


The issue you are having is related to another C++ extension that you have installed that is trying to do something it should not.

I suggest you uninstall all extensions except Visual Micro and prove the issue. I can confirm that the cause is not not a part of visual micro.

Thanks
  
Back to top
WWW  
IP Logged
 
JochemK
Newbies
*
Offline


Posts: 5
Joined: Nov 18th, 2017
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #6 - Nov 20th, 2017 at 1:05pm
Print Post  
Hi, thanks for getting back on this again.

I've been fiddling because it was not working, haha.

Also, my issue is not that debug doesn't start, it is that Visual Studio tries to do a build, where it shouldn't. (Or at least I think that is what's happening.)

The only extension I can think of is Resharper, I will try again tonight.
  
Back to top
 
IP Logged
 
JochemK
Newbies
*
Offline


Posts: 5
Joined: Nov 18th, 2017
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #7 - Nov 26th, 2017 at 12:33am
Print Post  
Problem seems to be caused by a defective Xamarin install.

Removed that and now VisualMicro is working as I want it to.

Thanks for the help!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugging issues (F5 experience) "VCMessage" task failed unexpectedly
Reply #8 - Nov 26th, 2017 at 4:21pm
Print Post  
Thanks very much for the update. Good to hear that.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint