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) Problem after VS 2012 upgrade (Read 9996 times)
BobB
Newbies
*
Offline


Posts: 4
Joined: Oct 20th, 2012
Problem after VS 2012 upgrade
Mar 31st, 2013 at 3:33am
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 in VStudio VM Boards pulldown menu ???
« Last Edit: Apr 4th, 2013 at 7:27am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Problem after VS 2012 upgrade
Reply #1 - Apr 3rd, 2013 at 3:12pm
Print Post  
Hi,

You need to set Tools>options>visual micro>arduino location to the place where your arduino.exe is stored. Do not use arduino 1.5 yet. Ensure you are using arduino 1.0.3 or 1.0.4

Thanks
« Last Edit: Apr 4th, 2013 at 7:28am by Tim@Visual Micro »  
Back to top
IP Logged
 
BobB
Newbies
*
Offline


Posts: 4
Joined: Oct 20th, 2012
Problem after VS 2012 upgrade
Reply #2 - Apr 3rd, 2013 at 4:24pm
Print Post  
i've had this working on 103 and 104 for months - and use the 15x version for the DUE only (and NOT via VMicro).

the tools>options>vm>arduino location has been set since swapped from 103 to the 104 version.  

like i said all was working well, then i get this exception because of the board selection being blank all of a sudden.
If it wasnt for the exception stack dump, i wouldnt have known it was because of the board choices being blanked out/null.

so, now today, without changing a thing, its again working and the dialog box with the boards in it is again populated with boards.  I havent touched configuration of VS at all - just saw the boards again populated and tried it - self fixing code - cool.    Since i can no longer reproduce the problem (which occurred after the VS update from microsoft) i guess we can consider this closed for now.

something was hosed for a days, now its fixed.

i have been working with Visual Studio professionally since it's inception years ago.  You really have a great little product for those of us used to it's environment.  For a casual hobbyist, VS may be a steep learning curve/overkill. 

-bob
« Last Edit: Apr 4th, 2013 at 7:29am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Problem after VS 2012 upgrade
Reply #3 - Apr 3rd, 2013 at 5:08pm
Print Post  
Thanks for the update. Strange that it fixed itself but pleased that no one else has had this problem. Maybe vs hadn't shut down properly so the addin hadn't reloaded after the upgrade. But only a guess. Good to hear you find the plugin useful but not sure its much of a learning curve if you use the arduino helper menus and tool bars. Don't forget that intellisense and code completion is especially useful for new users and reduces the learning curve enourmously  Smiley thanks for the update and sorry for the delayed responses
« Last Edit: Apr 4th, 2013 at 7:29am by Tim@Visual Micro »  
Back to top
IP Logged
 
Galen Barnes
Newbies
*
Offline


Posts: 3
Joined: Mar 16th, 2014
Re: Problem after VS 2012 upgrade
Reply #4 - Mar 23rd, 2014 at 4:45pm
Print Post  
I am now having the same problem as described above.  I'm running VS2012 V11.0.61030 Update4 and I've tried uninstalling and reinstalling both Visual Micro and The Arduino code but still get the same error. 

Any help/suggestions would be greately appreciated
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem after VS 2012 upgrade
Reply #5 - Mar 23rd, 2014 at 4:52pm
Print Post  
Which Arduino application is configured to the location of which Arduino Ide?

Arduino 1.0.x or Arduino 1.5.x pointing to which path?

Which board is selected?

Can you see a list of boards?

Thanks
« Last Edit: Mar 23rd, 2014 at 4:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Galen Barnes
Newbies
*
Offline


Posts: 3
Joined: Mar 16th, 2014
Re: Problem after VS 2012 upgrade
Reply #6 - Mar 23rd, 2014 at 5:41pm
Print Post  
It's an 1.0.x and I installed it at c:\arduino 

I am running the most recent full release of your software. and configured the software location as: C:\arduino\arduino.exe

VS does not list any boards which is part of the problem.  Com port appears to be selectable.   

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem after VS 2012 upgrade
Reply #7 - Mar 23rd, 2014 at 6:18pm
Print Post  
Hi,

The location must be the folder name C:\arduino

Thanks
  
Back to top
IP Logged
 
Galen Barnes
Newbies
*
Offline


Posts: 3
Joined: Mar 16th, 2014
Re: Problem after VS 2012 upgrade
Reply #8 - Mar 23rd, 2014 at 6:29pm
Print Post  
Thanks, that solves everything.

Task 1 for the day, learn to read instructions fully.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem after VS 2012 upgrade
Reply #9 - Mar 23rd, 2014 at 6:42pm
Print Post  
I'm going to strip the file name if it gets entered. That will save some reading Smiley
« Last Edit: Mar 23rd, 2014 at 6:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint