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 VS 2012 upgrade - now Visual Micro is DEAD pse help (Read 479 times)
BobB
Newbies
*
Offline


Posts: 4
Joined: Oct 20th, 2012
VS 2012 upgrade - now Visual Micro is DEAD pse help
Mar 31st, 2013 at 3:04am
Print Post  
Been using VMicro on VS2012 for months - love it.

a couple of days ago, was notified of VS upgrade.  accepted upgrade (was for some Java stuff). 

now i get the following in a dialog box whenever i try to open either a new arduino project or any existing arduino project that i had under Visual Micro, which was working just fine.

"Unable to create new sketch
Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index."


also another similar dialog box... 

"OpenProject: Unable to ensure project sketch files: Index was out of range. Must be non-negative and less than the size of the collection. 
Paramter name: index."

my whole environment is broken now and all work has stopped.  

when i try to build the solution here is the exception stack that gets raised.

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.OnBeforeCommandEvent(String sGuid, Int32 ID, Object CustomIn, Object CustomOut, Boolean& CancelDefault)


i have uninstalled both the VM addin and the debugger addin and redownloaded/installed same thing. 

help me Obeewankenobee, your my only help!!

pse dont send me back to the Arduino.exe prison !! 

VS2012 still works fine for Win apps.

NEWS FLASH -

the list of arduino boards has disappeared from the "arduino boards" menu in VStudio.  Can this be the cause of the Index error given the exception occurs in at processing.app.SketchEditor.get_SelectedBoard() ???

how do i re-establish the list of avialable boards???

 



« Last Edit: Mar 31st, 2013 at 3:16am by BobB »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2012 upgrade - now Visual Micro is DEAD pse help
Reply #1 - Apr 3rd, 2013 at 3:23pm
Print Post  
Sounds like arduino is in a different location to when you originally installed vm. Check out the install guide and ensure the tools>options point to the path of your arduino exe. Use arduino 1.0.3 or 1.0.4, don't use arduino 1.5 yet
  
Back to top
IP Logged
 
BobB
Newbies
*
Offline


Posts: 4
Joined: Oct 20th, 2012
Re: VS 2012 upgrade - now Visual Micro is DEAD pse help
Reply #2 - Apr 3rd, 2013 at 4:27pm
Print Post  
thank you.

the ard location has been static since i moved from 103 to 104 a while ago... all was working well until the MS VS update came in.

see my other post on this subject in the general section of the forum.  somehow it fixed itself.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2012 upgrade - now Visual Micro is DEAD pse help
Reply #3 - Apr 4th, 2013 at 7:30am
Print Post  
This Topic was moved here from Installation & Troubleshooting [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint