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 Error: "Unable to Create New Sketch" (Read 11289 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Error: "Unable to Create New Sketch"
Jan 15th, 2013 at 2:50pm
Print Post  
Greets to all! Total newbie with Visual Studio 2012 and Visual Micro.  I believe I have the latest versions and updates, but when I attempt to create a new Arduino sketch project, I get the following message from Visual Micro:

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

In a word:  WTF???   Cheesy

Have I installed things wrong? Watzup??   Tongue

=Alan R.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error: "Unable to Create New Sketch"
Reply #1 - Jan 15th, 2013 at 3:23pm
Print Post  
Hi, sounds like your arduino exe location has been entered incorrectly or has changed since you set it in the Tools>options.

Index out of range needs to become a better error but generally means that it can't find a board in the boards list. Normally means the boards list is empty because the arduino exe location is incorrect.

Does this help?
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Error: "Unable to Create New Sketch"
Reply #2 - Jan 15th, 2013 at 5:30pm
Print Post  
Yes - it is a start!  Seems like my "Boards" menu is still grayed out.  AFAIK I've found the Ardunio-1.0.3 app ok, and VisMicro shows "Last Board" as "Uno" which is correct.

If I altered any of the standard save-paths, could that screw things up?  I generally don't like to keep things in the Win7 default "Documents", and create my own folders.

There are also some lengthy Intellisense errors...

=Alan R.
  
Back to top
 
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
SOLVED: Error: "Unable to Create New Sketch"
Reply #3 - Jan 15th, 2013 at 5:39pm
Print Post  
Stop the presses!  Problem found: You MUST have the board plugged in before you can start creating sketches....    Shocked

=Alan R.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error: "Unable to Create New Sketch"
Reply #4 - Jan 15th, 2013 at 8:26pm
Print Post  
Hi, thanks for the note. Vm doesn't really care if the board is plugged in or not so I am still confused.

However, it's good to know it is working for you so thanks for the note.

I'll do some testing to see if I can replicate the problem. If anyone else has this problem please join the forum and report it. Thank you.
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Error: "Unable to Create New Sketch"
Reply #5 - Jan 15th, 2013 at 8:33pm
Print Post  
It seem that once I had the UNO plugged in it sort of got initialized and after that seems to remember.  Maybe it is a one-time thing...  Now  when VS and I starts up and shows the UNO is the board, the board list is populated and I'm on my COM12 port.  I did have VS2012 up before I added VM - maybe it needs one live hookup to get things in sync. All seems well now.

=Alan R.  Cool
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error: "Unable to Create New Sketch"
Reply #6 - Jan 15th, 2013 at 8:35pm
Print Post  
Yes vs probably needed a re-start. Sometimes it doesn't shutdown properly. As you say I think it was a one-off. Thanks for the good reporting
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint