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) 1.2021.0427 Broke my project (Read 3025 times)
MacGuyver
Newbies
*
Offline


Posts: 9
Joined: May 7th, 2021
1.2021.0427 Broke my project
May 10th, 2021 at 9:15am
Print Post  
I updated my VM to 1.2021.0427, and now I get some pretty silly errors:

Code (C++)
Select All
Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E0338	more than one instance of overloaded function "atexit" has 'C' linkage	IO_Controller	es\arduino\api\Common.h	83
Error (active)	E0338	more than one instance of overloaded function "itoa" has 'C' linkage	IO_Controller	es\arduino\api\itoa.h	29
Error (active)	E0338	more than one instance of overloaded function "utoa" has 'C' linkage	IO_Controller	es\arduino\api\itoa.h	31
Error (active)	E0020	identifier "__gnuc_va_list" is undefined	IO_Controller	7-2017q4\arm-none-eabi\include\stdio.h	46
Error (active)	E0140	too many arguments in function call	IO_Controller	H:\Gene Mayes BuzBall\PLC_Programming\PLC_Programs\IO_Controller\Menu.cpp	76
Error	MSB4018	The "VCMessage" task failed unexpectedly.
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
   at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
   at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
   at  messageResourceName, Object[] messageArgs)
   at Microsoft.Build.CPPTasks.VCMessage.Execute()
   at Host.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	H:\Gene Mayes BuzBall\PLC_Programming\PLC_Programs\IO_Controller\IO_Controller.vcxproj	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets	439
 



Example of silliness, the E0140 error too many arguments, 
here's the code it's referring to:

Code (C++)
Select All
input = toupper((int)rxchar); 



Everything worked prior to the update, and now these...which I can't get over.  I've even gone back a couple of revisions.

So it seems to me there's some basic switch or something that got goobered up, but for the life of me I can't find it.  Any help at all is much appreciated.

Thanks! Scott
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: 1.2021.0427 Broke my project
Reply #1 - May 10th, 2021 at 9:56am
Print Post  
Thanks for the report.

Please attach the full build log with the verbose and show build properties options checked as shown at the top of the page, so we can replicate the issue correctly.
  
Back to top
IP Logged
 
MacGuyver
Newbies
*
Offline


Posts: 9
Joined: May 7th, 2021
Re: 1.2021.0427 Broke my project
Reply #2 - May 10th, 2021 at 10:55am
Print Post  
Here's my build properties:

https://www.dropbox.com/s/cvboga7o5hapxw9/BuildProps.pngdl=0

Log: https://www.dropbox.com/s/2xeccceclo839cz/IO_Controller.log?dl=0
(I don't have permission to post attachements)
I can share the code if I can do it privately.
Scott
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: 1.2021.0427 Broke my project
Reply #3 - May 10th, 2021 at 2:16pm
Print Post  
Attachments can be posted in the Attachment box below the message reply box, and should be attached as text files.

Try changing the Build > Configuration Manager option, and uncheck the Build box for this project (this should give a clearer error message)

Then Run Build > Clean Project
Then Run the Build process on your project
Then copy all output from the Output Window in for the Micro Build Selection


You can email the project to us for investigation, and we will remove it once the investigation is complete.
« Last Edit: May 10th, 2021 at 3:14pm by Simon@Visual Micro »  
Back to top
IP Logged
 
MacGuyver
Newbies
*
Offline


Posts: 9
Joined: May 7th, 2021
Re: 1.2021.0427 Broke my project
Reply #4 - May 10th, 2021 at 10:34pm
Print Post  
Instructions followed.

Error messages:
Code
Select All
Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB4018	The "VCMessage" task failed unexpectedly.
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)
   at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)
   at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)
   at  messageResourceName, Object[] messageArgs)
   at Microsoft.Build.CPPTasks.VCMessage.Execute()
   at Host.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	IO_Controller	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets	439
Error (active)	E0338	more than one instance of overloaded function "atexit" has 'C' linkage	IO_Controller	es\arduino\api\Common.h	83
Error (active)	E0338	more than one instance of overloaded function "itoa" has 'C' linkage	IO_Controller	es\arduino\api\itoa.h	29
Error (active)	E0338	more than one instance of overloaded function "utoa" has 'C' linkage	IO_Controller	es\arduino\api\itoa.h	31
Error (active)	E0020	identifier "__gnuc_va_list" is undefined	IO_Controller	7-2017q4\arm-none-eabi\include\stdio.h	46
Error (active)	E0140	too many arguments in function call	IO_Controller	H:\Gene Mayes BuzBall\PLC_Programming\PLC_Programs\IO_Controller\Menu.cpp	76
Error (active)	E0006	comment unclosed at end of file	IO_Controller	H:\Gene Mayes BuzBall\PLC_Programming\PLC_Programs\IO_Controller\Paths.h	812
Error (active)	E0040	expected an identifier	IO_Controller	H:\Gene Mayes BuzBall\PLC_Programming\PLC_Programs\IO_Controller\Paths.h	812
 



and output window wont fit pasted here, build log file attached.



  

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1.2021.0427 Broke my project
Reply #5 - May 11th, 2021 at 4:45am
Print Post  
That's visual studio attempting to build the project as a standard c++ project. It means that Visual Micro is attempting to do the build or is failing.

When vs attempts to build it changes the output window to "Output". You can use the combobox above the output window to select the Visual Micro output window which is called "Micro Build". It is the information from that output window that we need.

Please also confirm the version of visual studio you have installed using Help>About.

Thanks
  
Back to top
IP Logged
 
MacGuyver
Newbies
*
Offline


Posts: 9
Joined: May 7th, 2021
Re: 1.2021.0427 Broke my project
Reply #6 - May 11th, 2021 at 9:51am
Print Post  
OK, we're getting to the root of the problem here - there is no choice for Micro Build in the dropdown - so somehow I've lost association of the solution to Visual Micro.  How can I get it back?

Here's my vs info:
Code
Select All
Microsoft Visual Studio Community 2019
Version 16.9.4
VisualStudio.16.Release/16.9.4+31205.134
Microsoft .NET Framework
Version 4.8.03752

Installed Version: Community

Visual C++ 2019   00435-60000-00000-AA039
Microsoft Visual C++ 2019

Arduino IDE for Visual Studio by Visual Micro   19.0
Visual Micro is an Arduino Compatible IDE for Visual Studio 2017-2019. For more information and forum please visit www.visualmicro.com.

ASP.NET and Web Tools 2019   16.9.693.2781
ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0   16.9.693.2781
Azure App Service Tools v3.0.0

C# Tools   3.9.0-6.21160.10+59eedc33d35754759994155ea2f4e1012a9951e3
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

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

IntelliCode Extension   1.0
IntelliCode Visual Studio Extension Detailed Info

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Node.js Tools   1.5.21130.2 Commit Hash:dacc0e71a5e060cdcab466a301cacea359c1b6da
Adds support for developing and debugging Node.js apps in Visual Studio

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

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Python   16.9.21026.1
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Profiling support   16.9.21026.1
Profiling support for Python projects.

SerialMonitor Extension   1.0
SerialMonitor Visual Studio Extension Detailed Info

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.

TSVN   1.9
Control TortoiseSVN from within Visual Studio

TypeScript Tools   16.0.30201.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   3.9.0-6.21160.10+59eedc33d35754759994155ea2f4e1012a9951e3
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   16.9.0-beta.21102.9+7ce7132f1459095e635194d09d6f73265352029a
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake 


  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: 1.2021.0427 Broke my project
Reply #7 - May 11th, 2021 at 11:42am
Print Post  
Thanks for the additional information.

Can you confirm that the Folder Name, Project Name, and INO Name all match exactly?

Also if you create a new Arduino project from scratch, does this build correctly?
  
Back to top
IP Logged
 
MacGuyver
Newbies
*
Offline


Posts: 9
Joined: May 7th, 2021
Re: 1.2021.0427 Broke my project
Reply #8 - May 11th, 2021 at 12:20pm
Print Post  
I was able to create a new project and copy the files into it and it does build.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: 1.2021.0427 Broke my project
Reply #9 - May 12th, 2021 at 10:18am
Print Post  
Thanks for the information and project, it has been invaluable in resolving this issue.

We have identified and resolved the issue in the latest release (21.04.27.2) available from the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

The issue was that in the Solution Explorer View, the INO had been moved to "Source Files" virtual folder, which should not have been a problem.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint