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) Installed and tested fine, but then....... (Read 9843 times)
Tommyb
Newbies
*
Offline


Posts: 9
Location: SFO
Joined: May 23rd, 2012
Installed and tested fine, but then.......
Jun 11th, 2012 at 4:08pm
Print Post  
Installed and tested VS '10 Pro with VM etc. Worked great, could open existing sketch save, etc.
A few days later went back to continue work and suddenly cannot open sketch, cannot start new sketch and now in twilight zone. 

Here is error if I try to open a new sketch
---------------------------
Visual.Micro.Visual.Studio.Arduino.10
---------------------------
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

Here is error when attempt to open sketch.ino that worked before.
---------------------------
Visual Micro
---------------------------
OpenOrCreateSketch: Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

Any help would be great and if you need any files etc let me know.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installed and tested fine, but then.......
Reply #1 - Jun 11th, 2012 at 7:00pm
Print Post  
Hmm, we only see this problem rarely and never once VM has been up and running....

Have you added any libraries since it was working?

Have you altered your arduino .exe location?

Have you tried closing vs, opening task manager, terminating any remaining devenv.exe processes and then re-starting vs?

If all of the above do not fix it then please shutdown vs, run the /resetaddin as documented on the main site and then restart vs. Working?

If not please switch on the "Trace" via Tools>Options>Visual Micro and then restart vs. Please post the contents of .txt file that is created in the Visual Micro install folder. If you don't know the install folder it is shown near the bottom of the options.

Thanks
  
Back to top
WWW  
IP Logged
 
Tommyb
Newbies
*
Offline


Posts: 9
Location: SFO
Joined: May 23rd, 2012
Re: Installed and tested fine, but then.......
Reply #2 - Jun 12th, 2012 at 2:58pm
Print Post  
Thanks for the quick reply. No changes made to install location or libraries, BUT, I did install VS2012 as a result of 'special offer'. I believe this was the only change........

1. Restarted computer, launched VS, created Ard Project; same error.
2. Enabled Trace; no *.txt file created in install folder (Assembly Location).
Here is text from Output pane.

ExecCommand: Visual.Micro.Visual.Studio.Arduino.Helper.SolutionOpenArduinoSketch
ExecCommand: Visual.Micro.Visual.Studio.Arduino.Helper.SolutionNewArduinoSketch
*RefreshIntellisense      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.build(Boolean verbose)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.RefreshIntellisenseOfSketch(Project oProject, SketchBuilder sk)

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installed and tested fine, but then.......
Reply #3 - Jun 12th, 2012 at 4:14pm
Print Post  
Well 2012 shouldn't affect us.

The error looks like it can't find any arduino boards or the selected board. 

Do you have the boards tool bar showing a list of boards correctly?

Do you see the same list of boards via the "Tools" menu?

In "Tools>Options>Visual Micro" can you see the last selected board name? What is it?

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installed and tested fine, but then.......
Reply #4 - Jun 14th, 2012 at 2:58pm
Print Post  
Question

In tools>options>Visual Micro>User Interface. Please switch on Trace and then reset the addin and send me the contents of the trace window that appears after vs has started.

Thanks
  
Back to top
WWW  
IP Logged
 
Tommyb
Newbies
*
Offline


Posts: 9
Location: SFO
Joined: May 23rd, 2012
Re: Installed and tested fine, but then.......
Reply #5 - Jun 15th, 2012 at 8:54pm
Print Post  
Hi , I posted a reply but it seems to be missing.
There are no boards in the pulldown yet the pulldown is there. 
In Tools menu I see Last Board UNO but it is grey'd out. 

I have trace enabled but do not get a *txt file in my VS or VM directories. Where would this be? The Output pane was blank the last start up after resetting addin. There was an output that I posted in my last message but no longer have that.

Here are some of the options and values:
Last Board Uno
Trace True
Version 27
Arduino True
ARM False
AVR False

Thanks!
  
Back to top
 
IP Logged
 
Tommyb
Newbies
*
Offline


Posts: 9
Location: SFO
Joined: May 23rd, 2012
Re: Installed and tested fine, but then.......
Reply #6 - Jun 15th, 2012 at 9:06pm
Print Post  
I think I found the Micro System Trace pulldown, but it is not always there.
It only shows up if I first launch an existing Arduino project that then fails as noted in first message of Unable to create sketch etc.
 
And then it shows up the first time I reset addin (this is probably what you meant). Here is the message:

CreateCommandBarItemsPerm      Begin AddinVer=27
Invalid Visual Studio SETUP Request Detected      Exiting visual micro setup due to an invalid visual studio cm_uisetup request!
CreateCommandBarItemsPerm      End
  
Back to top
 
IP Logged
 
Tommyb
Newbies
*
Offline


Posts: 9
Location: SFO
Joined: May 23rd, 2012
Re: Installed and tested fine, but then.......Solved - Dumb Mistake
Reply #7 - Jun 15th, 2012 at 9:16pm
Print Post  
Hello - I started to pay more attention to the Options and cross referenced the file location. You were correct in you first question, the Arduino.exe was moved Cry. When Arduino was first installed there was an extra empty directory that was loaded one level above Arduino-1.0.1 which I subsequently deleted. I think it was Arduino 1.0 but I do not remember. In any case, I corrected the path and it worked like a charm. Thanks for the help and sorry to bother you.
Two more questions:
1. When I download MS VM 2010, I  received a product key that does not work. My temp license was for 30 days and about expired. Any thoughts?
2. Should Itry 2012 or is there a know bug?

thanks again,
tb

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installed and tested fine, but then.......
Reply #8 - Jun 15th, 2012 at 9:44pm
Print Post  
good news thanks for the update

the best thing to do is to sign up for the microsoft websitespark program which gives you a 3 year license for vs 2010.

2012 isn't tested yet. it will probably fail but if you want to test its quite easy.

1) open the [vm.10].addin xml file in the vm program folder and you will see that it states Visual Studio 2010 as valid option(s). You can copy them and make a 2012 set.

2) in 2010 under options>macro security>search paths you will see how a path to vm was added by the installer. add the same path to 2012 options>macro security>search paths

Those are the two options that enable vm in 2010 so in theory should be the same in 2012. However when I told you about the 2012 free download I was passing on a tweet from the vs team. They failed to point out that the "free" offer liencense expires in January 2013. Doh!

So the websitespark program (see link on visualmicro.com home page) for 2010 is the best option.

Pls let me know what you do and how you get on
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint