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) build fails after reopening file. This project is out of date, Sketch - Debug Win32 (Read 7343 times)
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
build fails after reopening file. This project is out of date, Sketch - Debug Win32
Nov 17th, 2016 at 10:22pm
Print Post  
running Windows 7, and Visual Studio 2015, Fresh install, and fully updated. Newly installed arduino-1.6.12 default location. I downloaded and installed Visual.Micro.Arduino.Studio.vsix, current version. At first everything seemed to be working fine. Loaded and compiled the examples\01.Basics\Blink\Blink.ino  sketch. sketch is unaltered. Compiled without a problem. After closing the sketch, and reopening the sketch, I got this message "  This project is out of date, Sketch - Debug Win32 " it then asked me if I would like to build it anyway, if I press yes I got This repeating error,

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()      Sketch      C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets      57      


I can press clean sketch and rebuild sketch and I still get the same problem. The only thing that works, Is if I removed all additional files and leave only the Blink sketch and text files. after I do that it successfully compiles.

I have done an Internet search and come up with nothing. 

Why is this happening and how can I fix it.

thanks in advance.

Joe.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #1 - Nov 18th, 2016 at 3:39pm
Print Post  

some ideas:-

1)
Maybe it's because the examples\01.Basics folder resides below the arduino ide and permissions makes it readonly.

2)
Try using micro explorer to open a copy of the example and then see if you have the problem.

3)
Ensure that you have not switched on vmicro>debugger>use visual studio debugger. If you cant see the menu item then ignore this.

4)
Check the "Micro Build" output window, the standard c++ build is not supposed to happen but does change the output window so can be confusing.

5)
Make sure the folder name, project name and .ino name match.
  
Back to top
IP Logged
 
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #2 - Nov 19th, 2016 at 12:45am
Print Post  
Tim@Visual Micro wrote on Nov 18th, 2016 at 3:39pm:
1)
Maybe it's because the examples\01.Basics folder resides below the arduino ide and permissions makes it readonly.


This is the example file that came with the Arduino programming tool, it is not right protected.

Tim@Visual Micro wrote on Nov 18th, 2016 at 3:39pm:

2)
Try using micro explorer to open a copy of the example and then see if you have the problem.


Unfortunately, there is no difference in the error message.

Tim@Visual Micro wrote on Nov 18th, 2016 at 3:39pm:
3)
Ensure that you have not switched on vmicro>debugger>use visual studio debugger. If you cant see the menu item then ignore this.


This option is not available.

Tim@Visual Micro wrote on Nov 18th, 2016 at 3:39pm:
4)
Check the "Micro Build" output window, the standard c++ build is not supposed to happen but does change the output window so can be confusing.


cpp flag is not set. It is building using the Arduino compiler.

Tim@Visual Micro wrote on Nov 18th, 2016 at 3:39pm:
5)
Make sure the folder name, project name and .ino name match.


As stated at the beginning, these are the example files that came with the Arduino programming IDE. These files are correctly labeled and should work as installed. I have not made any changes to these files or their names.


thanks for trying. if you can think of anything else, it will be greatly appreciated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #3 - Nov 19th, 2016 at 12:56am
Print Post  
Hi,

The arduino examples are fine and you will find the same in the visual micro explorer > examples tab. 

The explorer simply lists the examples found with the ide and with libraries/hardware that is installed.

It's possible if you installed arduino using the window installer that visual studio does not have permissions to access the files (that is different to readonly)

Can you please zip the blink example folder and attach as zip or email to info[at]visualmicro.com

Thanks
  
Back to top
IP Logged
 
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #4 - Nov 19th, 2016 at 5:07am
Print Post  
Tim@Visual Micro wrote on Nov 19th, 2016 at 12:56am:
Can you please zip the blink example folder and attach as zip or email to info[at]visualmicro.com


The files were installed using the zip folder. I log in as administrator, and I am the only one that uses this machine. All programs were installed using administrative privileges. 

I have noticed something else. After I removed the added files from the sketch, Once loaded, the micro directory has six additional menu items. These items are, Toggle hidden files, project properties, add librarys, Add code, Build and Build and Upload. Once I close the project, and reopen it, these menu items are no longer available. I don't know if this helps track down the problem, but it is annoying to me to no longer have these items available.

again any help is greatly appreciated. Thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #5 - Nov 19th, 2016 at 3:33pm
Print Post  
Okay then install via zip isn't the problem. Is it a network drive?

It is correct that the "vMicro" menu and toolbar items only appear when visual micro considers an arduino project to be open and active.

1) Please say how you are opening the blink example? What command do you click to open the sketch?

2) Please show a screen shot with the project open when the items are missing.



  
Back to top
IP Logged
 
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #6 - Nov 19th, 2016 at 6:45pm
Print Post  
Tim@Visual Micro wrote on Nov 19th, 2016 at 3:33pm:
Okay then install via zip isn't the problem. Is it a network drive?

It is correct that the "vMicro" menu and toolbar items only appear when visual micro considers an arduino project to be open and active.

1) Please say how you are opening the blink example? What command do you click to open the sketch?

2) Please show a screen shot with the project open when the items are missing.



no it is not a network drive programs are installed on drive C:.

I am opening the program by going to the micro/open an existing Arduino project. once I navigate to the appropriate directory, I click on the Blink.ino file and press open. I have also tried going to file/open/Arduino project. Both give the same results.

Sorry, I have the screenshot but this site is not allowing me to upload it. 

again I appreciate the help you are giving. Thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #7 - Nov 19th, 2016 at 7:08pm
Print Post  
Okay I will test. In the meantime use the "visual micro explorer > examples tab" to view source code or open a copy of the example
« Last Edit: Nov 19th, 2016 at 7:09pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #8 - Dec 2nd, 2016 at 9:23pm
Print Post  
Note: just applied latest Update, December 1, 2016. The problem seems to have disappeared. As of now, it seems to have fixed the problem. So no further effort is needed on your part.

Thank you for your help.
« Last Edit: Dec 2nd, 2016 at 9:26pm by Sam6 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: build fails after reopening file. This project is out of date, Sketch - Debug Win32
Reply #9 - Dec 2nd, 2016 at 9:53pm
Print Post  
Ok thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint