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 Unable to ensure project sketch files: (Read 3314 times)
James Brown
Junior Member
**
Offline


Posts: 46
Location: Near San Diego
Joined: Jul 31st, 2012
Unable to ensure project sketch files:
Nov 14th, 2012 at 9:04pm
Print Post  
I installed Arduino 1.0.2, then the Visual Micro, then the debugger.  Now I get this from Visual Micro:
----------------------
OpenProject: Unable to ensure project sketch files; Index was out of range.  Must be non-negative and less than the size of the collect.
Parameter name: index
-----------------------
And this in the Output window
-------------------------
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at processing.app.SketchEditor.get_SelectedBoard()
   at processing.app.SketchEditor.getBoardPreferences()
   at processing.app.SketchBuilder.get_BuildFolder()
   at processing.app.SketchBuilder.get_BuildPath()
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand)
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to ensure project sketch files:
Reply #1 - Nov 14th, 2012 at 10:03pm
Print Post  
That's a problem loading the boards list which would indicate vm is looking for arduino in the wrong place. Does arduino load okay? Did you set the correct arduono path in tools options visual micro?
  
Back to top
WWW  
IP Logged
 
James Brown
Junior Member
**
Offline


Posts: 46
Location: Near San Diego
Joined: Jul 31st, 2012
Re: Unable to ensure project sketch files:
Reply #2 - Nov 14th, 2012 at 10:21pm
Print Post  
Ah yes.  I did move Arduino and forgot that I had to point to the new installation.
Works fine new.  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint