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) VS 2010 Install - Error Failed to create UI command items (Read 17937 times)
Lakes
Junior Member
**
Offline


Posts: 19
Joined: Oct 26th, 2012
VS 2010 Install - Error Failed to create UI command items
Oct 26th, 2012 at 3:25pm
Print Post  
Installation VS2010 + SP1
From help- about
Quote:
Installed Version: Professional

Microsoft Visual C# 2010   01018-532-2002163-70825
Microsoft Visual C# 2010

Microsoft Visual C++ 2010   01018-532-2002163-70825
Microsoft Visual C++ 2010

Microsoft Visual Studio 2010 Team Explorer   01018-532-2002163-70825
Microsoft Visual Studio 2010 Team Explorer

Crystal Reports Templates for Microsoft Visual Studio 2010   
Crystal Reports Templates for Microsoft Visual Studio 2010

Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509)   KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - ENU.

Error code is

Also tried running Quote:
devenv.exe /resetaddin Visual.Micro.Visual.Studio.Arduino.Helper

This is what I have in tools-options
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #1 - Oct 26th, 2012 at 3:36pm
Print Post  
oh poo! The scroll bar is missing from the options window and the size has gone astray. I'm pleased you posted that screen shot! 

I will look into that however you can use the keyboard to scroll down. Click one of the labels and then use the down arrow (cursor down) on the keyboard



I wonder how many other people have this issue but haven't reported it
« Last Edit: Oct 26th, 2012 at 3:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #2 - Oct 26th, 2012 at 3:41pm
Print Post  
I have just noticed that you haven't installed VB.NET. This is probably the problem.

VB.NET is in the required install list on codeplex because some older parts of vm still use vb for visual studio commands and macros.
« Last Edit: Oct 26th, 2012 at 3:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Lakes
Junior Member
**
Offline


Posts: 19
Joined: Oct 26th, 2012
Re: VS 2010 Install - Error Failed to create UI command items
Reply #3 - Oct 26th, 2012 at 4:42pm
Print Post  
Ok, installed Visual Basic, still getting the error code though.

Here`s the System Trace output.
Quote:
Get Bar      Tools
Create Bar      Tools>Arduino
Adding      Tools>Ports
Adding      Tools>Programmers
Adding      Tools>Using Programmer
Adding      Tools>Burn Bootloader
Get      CustomToolBarObjects
Adding      UI Menu-Board-Items
Unable to create UI command items      The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #4 - Oct 26th, 2012 at 5:38pm
Print Post  
Sorry to waste your time with the vb. it's good to know it is no longer required. It's not an easy thing to test without screwing up my vs installs.

The trace shows the basic system is working but is failing to create the boards menu. This is a standard part of the system used by all so I need to ask you about your arduino install.

In the options, have you pointed visual micro to a clean arduino.exe 1.0.1 installation?
  
Back to top
IP Logged
 
Lakes
Junior Member
**
Offline


Posts: 19
Joined: Oct 26th, 2012
Re: VS 2010 Install - Error Failed to create UI command items
Reply #5 - Oct 26th, 2012 at 6:50pm
Print Post  
Not sure what you mean by a clean arduino.exe installation, I pointed it at the location of \arduino-1.0.1\arduino.exe



« Last Edit: Oct 26th, 2012 at 6:58pm by Lakes »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #6 - Oct 26th, 2012 at 7:05pm
Print Post  
Okay that is a clean install of 1.0.1 (un-modded)

Thanks for the picture it shows that you have added some additional board/hardware (such as ATtiny45) to the default arduino list. This is fully supported but we obviously have the following issue.

These additional boards will be located in one of two places "sketchfolder/hardware" or "arduinoide/hardware"...

The problem will be that a board has an "invalid" character in it such as a dash. When I say invalid, I mean invalid for visual studio macro names which vm will be trying to create when you get the error.

Visual micro is supposed to handle this conflict in the background. If we can establish what the "invalid" board name I can make a new release with a fix for the character we find and for other combinations that might fail.

I would like to make this work and keep the compatibility with vs macros simply because it allows people to assign shortcuts and tool bars that use the macros such as switching board or serial port.

If you can zip and email your two hardware folders as stated above then I will find the problem.

Thanks

PS: The error is happening when vm tries to create the Tools>Arduino>Boards menu list not the combo box on the tool bar. The combobox system in vs doesn't use macros which is why you can see all the boards in the list.
« Last Edit: Oct 26th, 2012 at 7:09pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Lakes
Junior Member
**
Offline


Posts: 19
Joined: Oct 26th, 2012
Re: VS 2010 Install - Error Failed to create UI command items
Reply #7 - Oct 26th, 2012 at 7:40pm
Print Post  
The hardware folder is 41Mb zipped which exceeds the attachment size for gmail.

I`ve sent you the AtTiny folder on its own. (AtTiny85 is the only board I`ve added myself).

There is no arduinoide/hardware folder.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #8 - Oct 26th, 2012 at 8:12pm
Print Post  
Yes that will be fine thanks. The email hasn't arrived yet, can you point me to where you downloaded the board(s) files from. Thanks

or just paste the contents of the boards.txt in the tiny folder into a [code] block in this thread
« Last Edit: Oct 26th, 2012 at 8:13pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #9 - Oct 26th, 2012 at 8:14pm
Print Post  
Got your email
« Last Edit: Oct 26th, 2012 at 9:08pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #10 - Oct 26th, 2012 at 8:21pm
Print Post  
Erm. The problem will be the dashes in the board names in boards.txt. This was fixed in the last version of visual micro (few days ago)

Can you check your vm version in tools>options>visual micro>version. it should be 1210.24. 

If not please close vs and run the install from our download site on codeplex. 

Thanks
« Last Edit: Oct 26th, 2012 at 9:08pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Lakes
Junior Member
**
Offline


Posts: 19
Joined: Oct 26th, 2012
Re: VS 2010 Install - Error Failed to create UI command items
Reply #11 - Oct 26th, 2012 at 10:03pm
Print Post  
That fixed that error.

But, this is what I see sometimes when opening an existing sketch.

Its there, compiles and uploads fine, but its not displayed in the editor.

Here is the same sketch in the editor window.

« Last Edit: Oct 26th, 2012 at 10:45pm by Lakes »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #12 - Oct 26th, 2012 at 11:17pm
Print Post  
Until you have some usage without issue let's remove one of the projects so that you are working with single project solutions. 

Each project can retain it's own board and for new users it is easier just to say one project per solution to start with. Until it is reliable for you, then if you move to two projects and it breaks we will know what caused it.

Once you have removed the 2nd project please switch between boards and back again. Hopefully the intellisense then works correctly and stays working correctly. Don't forget to click "Yes" to save changes when you shutdown/restart VS.

It is possible the recent changes for VS 2012 have affected things but I haven't had any reports from other users of the intellisense failing. So hopefully this way of working gets you up and running.

If the problem persists please zip and email one of the sketches where the intellisense is failing and all files in the "Visual Micro" folder that will have automatically been created below the sketch.

Let me know how you get on.

ps: To remove a project from a Visual Studio solution, right click a project name in the solution explorer and click "Remove"
« Last Edit: Oct 26th, 2012 at 11:57pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #13 - Oct 27th, 2012 at 12:01am
Print Post  
Forgot to say my last msg was in reference to your second screen shot.

The first screen shot shows an IDE with an open project but all code files closed. 

You can double click a .ino file from the right hand side of the screen and the source file will open. When you close and reopen the solution, vs will remember which files you last had open. If no files were open then you will see what we see in your first screen shot above. If the .ino was open it will be re-opened automatically.
  
Back to top
IP Logged
 
Lakes
Junior Member
**
Offline


Posts: 19
Joined: Oct 26th, 2012
Re: VS 2010 Install - Error Failed to create UI command items
Reply #14 - Oct 27th, 2012 at 12:04am
Print Post  
Yup, that sorted it.

I never expected to get a reply this late! Smiley

I`ll probably have some more questions tomorrow, but thats enough for now! Cheesy

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2010 Install - Error Failed to create UI command items
Reply #15 - Oct 27th, 2012 at 12:09am
Print Post  
Great well done for persisting. It was more fun than watching some boring chick flick with my gf  Smiley

Feel free to start new threads with questions. It's easier in small threads.

Your questions have shown me the sort of thing that will confuse new vs users. It's difficult for me to picture it sometimes because I have started as vs for too many years.

I will make a youtube video for new vs users!

« Last Edit: Oct 27th, 2012 at 12:09am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint