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 Tip: How to resolve tool bars and some menu items missing after re-install (Read 6175 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12205
Location: United Kingdom
Joined: Apr 10th, 2010
Tip: How to resolve tool bars and some menu items missing after re-install
Oct 3rd, 2011 at 11:16pm
Print Post  
If you uninstall or disable the arduino addin, you might find that the toolbars and some of the menu items are not available after a reinstall. 

We won't bore you with the internal details of Visual Studio and the reasons behind this issue. Instead you simply need to close Visual Studio and perform a reset of the Arduino for Visual Studio add-in by running the following command:-

•Close all IDE instances. 
•Open a Visual Studio .NET Command Prompt ("Run...", "Programs", "Visual Studio .NET", "Visual Studio .NET Tools", "Visual Studio .NET Command Prompt")
•Enter "devenv.exe /resetaddin Visual.Micro.Visual.Studio.Arduino.Helper" (without the quotes) and press ENTER
« Last Edit: Nov 4th, 2012 at 11:41pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Dustin Maki
Newbies
*
Offline


Posts: 1
Joined: Oct 11th, 2011
Re: Tip: How to resolve tool bars and some menu items missing after re-install
Reply #1 - Oct 16th, 2011 at 5:13pm
Print Post  
I followed this advice because I received "Visual Micro failed to create command bar items" each time I would launch VS.   
In my installation, the command prompt is reached from Start, All Programs, Microsoft Visual Studio 2010, Visual Studio Tools, Visual Studio Command Prompt (2010)
However, the command prompt revealed "Cannot determine the location of the VS Common Tools folder"  So I followed further advice here http://schrievkrom.wordpress.com/2011/01/25/error-cannot-determine-the-location-... and added c:\windows\system32 back to my path.  After that, the command prompt worked normally.   I reset the environment.  However the original error remains.
Dialog Title"Visual.Micro.Visual.Studio.Arduino.10"
"Visual Micro failed to create command bar items"
"The parameter is incorrect. (Exception from HRESULT:0x80070057(E_INVALIDARG))"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12205
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Tip: How to resolve tool bars and some menu items missing after re-install
Reply #2 - Oct 16th, 2011 at 5:57pm
Print Post  
Interesting problems. Questions/requests...

1) Is this your first installation of the addin? Has it previously worked?

2) Can you do this please...

Switch on the Tools>Options>Visual Micro>User Interface>Trace

Set read/write permissions for everyone for the visual micro install folder. (You can see the install folder in the Options>Visual Micro>Version>AssemblyLocation

Close vs and perform a resetaddin

Open VS

Click away any errors

Close VS

Email or attach the addin trace .txt file that will have been created in the Visual Micro install folder

Thanks

  
Back to top
IP Logged
 
IanJ
Newbies
*
Offline


Posts: 3
Joined: Feb 1st, 2012
Re: Tip: How to resolve tool bars and some menu items missing after re-install
Reply #3 - Feb 2nd, 2012 at 11:58am
Print Post  
Tim@Visual Micro wrote on Oct 3rd, 2011 at 11:16pm:
If you uninstall or disable the arduino addin, you might find that the toolbars and some of the menu items are not available after a reinstall. 

We won't bore you with the internal details of Visual Studio and the reasons behind this issue. Instead you simply need to close Visual Studio and perform a reset of the Arduino for Visual Studio add-in by running the following command:-

•Close all IDE instances. 
•Open a Visual Studio .NET Command Prompt ("Run...", "Programs", "Visual Studio .NET", "Visual Studio .NET Tools", "Visual Studio .NET Command Prompt")
•Enter "
devenv.exe /resetaddin Visual.Micro.Visual.Studio.Arduino.Helper" (without the quotes) and press ENTER


Downloaded latest VM a couple days ago, fresh install and all was fine.
Then I lost the serial port & board type on the toolbar after I had updated VS with SP1.
The above command prompt session fixed the problem...........but would still like to see it fixed permanent.

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


Posts: 12205
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Tip: How to resolve tool bars and some menu items missing after re-install
Reply #4 - Feb 2nd, 2012 at 1:07pm
Print Post  
yep. we have no control over this. vs isn't very good at managing addins. i hope to move to a vs extension based system which will not suffer these problems.

and to give an idea of how bad vs is with this:-

1) some users had multiple tool bar controls. This problem was vs telling the addin that it needs to re-run its internal setup but vs has not cleared the vm controls
2) some users have missing tool bar and menus after upgrade of vs. This problem is vs clearing our controls but not telling the addin to re-run its internal setup

It's very fustrating and worse for me because every time I want to change my addin from dev location to release/test I get the problem! We have NO control over this.

It is complicated by that fact that vs allows two types of control creation. Temporary and permanent. 

Temporary are best because they get re-created each time vs loads (such as boards and libraries etc). 

However if we want to add tool bar objects that you can alter the width of (such as boards drop down list) or if we want to add menu items to vs menus that are sometimes hdden we have to use permanent controls. 

If we put a temporary control on a vs menu item that vs sometimes hides (such as project specific) then vs fails to hide the menu.

It's the permanent controls that are always the problem but we would not be so neatly integrated without them

Roll on extensions which are more complicated and difficult to implement but don't  appear to suffer the addin problems.

I need a drink! Smiley
« Last Edit: Feb 2nd, 2012 at 1:56pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint