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] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) Building/Uploading with Start (Read 25998 times)
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Building/Uploading with Start
Sep 19th, 2016 at 9:59pm
Print Post  
Hi
After updating to 1609.18.1 I have a problem with building and uploading my sketches with Start/F5/Debug>Start Debugging. 

Quote:
1>------ Build started: Project: Test1, Configuration: Release Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018: The "VCMessage" task failed unexpectedly.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018: System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at System.String.Format(IFormatProvider provider, String format, Object[] args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at  messageResourceName, Object[] messageArgs)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at Microsoft.Build.CPPTasks.VCMessage.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at Host.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Building with F6/Build>Build Solution works fine. Uploading from the toolbar 'Micro Project' also works

Regards
Johan
« Last Edit: Sep 19th, 2016 at 10:02pm by Johan Gummesson »  

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: Building/Uploading with Start
Reply #1 - Sep 19th, 2016 at 10:56pm
Print Post  
Hi,

Which version of visual studio?

Have you just got the one project in the solution?

Is the test1 project name in bold in the solution explorer?

Thanks
« Last Edit: Sep 19th, 2016 at 10:56pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Building/Uploading with Start
Reply #2 - Sep 19th, 2016 at 11:23pm
Print Post  
Hi again,

Under "tools>options>visual micro>compiler" make sure you have not entered any values for "Debug Configuration" and "Release Confirguration"
  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Building/Uploading with Start
Reply #3 - Sep 20th, 2016 at 5:21pm
Print Post  
Hi

I'm using VS2015 Community Edition (14.0.25431.01), update 3. I have only one project and the project is set as startup. 
I can also right-click on the project and choose Debug>Start New Instance but nothing around F5/Ctrl F5 works

Regards
Johan
« Last Edit: Sep 20th, 2016 at 5:24pm by Johan Gummesson »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Building/Uploading with Start
Reply #4 - Sep 20th, 2016 at 5:25pm
Print Post  
Hi again

Attaching my solution

Regards
Johan
  

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: Building/Uploading with Start
Reply #5 - Sep 20th, 2016 at 6:59pm
Print Post  
Hi,

Did you see my note about ensuring the Debug and Release configuration settings in the options are not set

Under "tools>options>visual micro>compiler" make sure you have not entered any values for "Debug Configuration" and "Release Confirguration"

Thanks
  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Building/Uploading with Start
Reply #6 - Sep 20th, 2016 at 7:45pm
Print Post  
Hi

Sorry, I forgot to mention that. I checked it and it's all blank

Regards
Johan
  

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: Building/Uploading with Start
Reply #7 - Sep 20th, 2016 at 8:11pm
Print Post  
Okay thanks.

The build output is Visual Studio attempting the build which suggests some sort of error is happening.

After the build the output window name will change so please switch it back to "Micro Build" then post what you see as a .txt or email to info[at]visualmicro.com

Thanks
  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Building/Uploading with Start
Reply #8 - Sep 20th, 2016 at 8:28pm
Print Post  
The Micro Build output is empty, only Build has some errors wich I posted before

Regards
Johan
  
Back to top
 
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Building/Uploading with Start
Reply #9 - Sep 20th, 2016 at 8:47pm
Print Post  
Some obervations in the vcxproj that might not have anything to do with the problem:

ToolsVersion="4.0", should that be ToolsVersion="14.0"?

<DebuggerFlavor>VisualMicroDebugger</DebuggerFlavor>, This will give Project Properties>Configuration Properties>Debugging an 'Unsopported debug option'

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Building/Uploading with Start
Reply #10 - Sep 20th, 2016 at 8:53pm
Print Post  
Thanks.

It shouldn't really affect this. 

The <debuggerFlavor> certainly shouldn't come into play and is correct it says unspported.

Can you please right click the project so the standard c++ project property pages open. Then try picking a platform toolset. Then try it. I will be surprised if it works but worth a try.

Please confirm exact version of vs 2015 from help>about

Thanks

  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Building/Uploading with Start
Reply #11 - Sep 20th, 2016 at 9:11pm
Print Post  
No differance. Attached a screenshot of the version of VS.

//Johan
  

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: Building/Uploading with Start
Reply #12 - Sep 20th, 2016 at 9:39pm
Print Post  
Very strange. For VS2015 we have identical setup. 

Please push the copy button on the help>about then post as .txt

Is this problem with every Visual Micro project regardless of board?

Thanks

  
Back to top
IP Logged
 
Johan Gummesson
Junior Member
**
Offline


Posts: 24
Joined: Jan 1st, 2014
Re: Building/Uploading with Start
Reply #13 - Sep 20th, 2016 at 10:25pm
Print Post  
I have the same problem with all the boards I have. 

Let me try to do a recap of what I have done.
It started when I upgraded to 1609.18.1 The first problem was the upload error for ATmega32u4 (I'm quite sure I was able to build that one with the startbutton). I an attempt, I uninstalled the latest version and tried to install an older version from OneDrive (Visual.Micro.Arduino.Studio (53).vsix). That didn't work at all so I uninstalled that one and reinstalled the latest. I then updated VS to Update 3.

Is it possible that the problem lies in the 'downgrade' and upgrade combination?

Attaching the about text

//Johan
  

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: Building/Uploading with Start
Reply #14 - Sep 20th, 2016 at 11:38pm
Print Post  
Thanks

The issue with upload to leonardo type boards was a known issues in the last release caused by some OTA/IpAddress upload changes for the ESP8266. Was resolved in the .20 release. It's unrelated to this.

I suspect that the upgrade causes uninstall and reinstall moving Visual Micro to the end of the list of installed VS extensions. The way the VS event system works is to offer the event to each extension in order. An extension can elect to process the event and cancel it. In this case something is processing and Cancelling the event so Visual Micro isn't being offered the chance to handle it.

I asked for the VsAbout.txt so I can try to replicate what you have installed.

A couple of other tests that will help

1) Remove the following from the vcxproj
  <ItemGroup>
    <ProjectCapability Include="VisualMicro" />
  </ItemGroup>

  <PropertyGroup>
    <DebuggerFlavor>VisualMicroDebugger</DebuggerFlavor>
  </PropertyGroup>

Then save and reload the project to see of that has an effect

2) Switch the project off from C++ current build configuration

Build>Configuration Manager

3) Look at the solution properties and confirm the Startup is set to single project

Right click the Solution name in the Solution explorer > properties

Thanks






  
Back to top
IP Logged
 
7Kronos
Newbies
*
Offline


Posts: 4
Joined: Sep 27th, 2016
Re: Building/Uploading with Start
Reply #15 - Sep 27th, 2016 at 11:13am
Print Post  
I have exactly the same problem. Just started a trial, building and uploading from the VisualMicro tool bar works but VS commands from Debug menu don't work.

I also have the VCMessage exception stack.  Cry

My VS about :

Code
Select All
Microsoft Visual Studio Professional 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Professional

Visual Basic 2015   00322-40000-00000-AA283
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA283
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA283
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

Arduino for Visual Studio   1.0
Arduino extension for Visual Studio. For more information please see docs, faq and forum at http://www.visualmicro.com

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11106.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JetBrains ReSharper Ultimate 10.0.2   Build 104.0.20151218.120627
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Python Tools for Visual Studio   2.2.31124.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration   2.2.31124.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support   2.2.31124.00
Profiling support for Python projects.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

TypeScript   1.7.6.0
TypeScript for Microsoft Visual Studio 

« Last Edit: Sep 27th, 2016 at 11:20am by 7Kronos »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Building/Uploading with Start
Reply #16 - Sep 27th, 2016 at 12:04pm
Print Post  
Hi,

Thanks for the report but I already responded with some questions/tests. Hopefully someone can answer my last post so I can investigate further.

Thanks
  
Back to top
IP Logged
 
7Kronos
Newbies
*
Offline


Posts: 4
Joined: Sep 27th, 2016
Re: Building/Uploading with Start
Reply #17 - Sep 27th, 2016 at 1:08pm
Print Post  
Tim@Visual Micro wrote on Sep 27th, 2016 at 12:04pm:
Hi,

Thanks for the report but I already responded with some questions/tests. Hopefully someone can answer my last post so I can investigate further.

Thanks


I'm sorry I did not mention I followed your tests to investigate.

1) It builds as a standard C++ EXE
  • VCMessage go away
  • error message not being able to find the binary out to execute/debug


2) If I uncheck Build from configuration manager, nothing happend, Micro Build output stays empty
3) Solution startup is set to single and selected startup project is fine.

  • I uninstalled Visual Micro extention, and reinstalled it
  • I try this using an empty Sketch with only setup and loop methods.
  • I also checked Debug/Release configuration names are empty in the Visual Micro options section.


Let me know if you need anything to investigate. I can provide a Skype/TeamViewer session if it can help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Building/Uploading with Start
Reply #18 - Sep 27th, 2016 at 1:22pm
Print Post  
Thanks.

Please edit the .vcxproj file from the sketch/project folder you are using.

Edit with notepad and remove the following two sections then click save and try to open and use the project in VS

Remove the following from the vcxproj
  <ItemGroup>
    <ProjectCapability Include="VisualMicro" />
  </ItemGroup>

  <PropertyGroup>
    <DebuggerFlavor>VisualMicroDebugger</DebuggerFlavor>
  </PropertyGroup>

Thanks
  
Back to top
IP Logged
 
7Kronos
Newbies
*
Offline


Posts: 4
Joined: Sep 27th, 2016
Re: Building/Uploading with Start
Reply #19 - Sep 27th, 2016 at 1:44pm
Print Post  
After removing both sections from the project file, reloading the project works fine.

Build command still works.

If I leave Build unchecked at Build Configuration :
Start Debbuging/Widhout Debugging shows an error message : Unable to start program Sketch2.exe

If I check Build at Build Configuration :
VCMessage exception shows up again
« Last Edit: Sep 27th, 2016 at 1:48pm by 7Kronos »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint