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) Unable to use VM with newest version of Visual Studio Community 2015! (solved c++/vs install issue) (Read 9368 times)
jnorre
Newbies
*
Offline


Posts: 9
Joined: Sep 16th, 2014
Unable to use VM with newest version of Visual Studio Community 2015! (solved c++/vs install issue)
May 9th, 2016 at 8:11am
Print Post  
Two different persons has followed instructions on the "download" page (http://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx?from=bar) on two different machines.

When opening an Arduino project, it comes up empty (no files in "Solution"). Visual Micro does not kick in (no VM build or build/debug in toolbar).

When creating an Arduino Project with "File, New, Arduino Project" and entering a project name, the error "Unable to create new sketch" with error 0x80070057 is displayed. C++ IS installed on both machines and running the setup again also has a checkmark in "Visual C++" (and all three sub-items). On one machine we have tried to repair the installation, and remove C++, restart, install C++ restart and still we can't open or create an Arduino Project as mentioned above.

If creating the new project with "File, New, project, Arduino project" or "File, New, Project, Visual Micro, ..." it creates a project and Visual Micro options kicks in and build/debug is available.

We have used VM for Atmel Studio 6.2 and 7.0 (while supported) in the past, without any problems.

Visual Studio Community 2015 version 14.0.25123.00 Update 2
VisualMicro 1605.6.0 (and 1604.28)

Please help!
« Last Edit: May 14th, 2016 at 3:24pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #1 - May 9th, 2016 at 10:55am
Print Post  
Hi,

You need to install the C++ option for Visual Studio. You can do this after install via control panel>add or remove programs>visual studo 2015>change.

There are notes about the need for C++ in the gallery and on the visual micro downloads page but I will add a better error message in the next release.

Thanks


  
Back to top
IP Logged
 
jnorre
Newbies
*
Offline


Posts: 9
Joined: Sep 16th, 2014
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #2 - May 9th, 2016 at 11:35am
Print Post  
As mentioned in the original post: C++ is installed

I can not add C++ in "Control panel>Add or remove programs>visual studio 2015>change" (which for the newest Visual Studio is "Control Panel>Add or remove programs>Microsoft Visual Studio Community 2015 with Update 2>Modify") because it already has been added. As mentioned above, I have even tried to remove C++ and add it again. 

Please try with the newest VS community 2015 on a clean machine!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #3 - May 9th, 2016 at 11:49am
Print Post  
Sorry I missed the c++ install you have made.

Can you please try to create a new empty win32 c++ project using the standard visual studio File>New>project command?

The error you see happens when visual micro attempts to run the empty win32 c++ template in background.

Visual micro projects are simply c++ projects but with an .ino of the same name. So there is nothing special (i hope)

You should still see c++ as an option in control panel>add/remove/vs/change>customize

Thanks
« Last Edit: May 9th, 2016 at 11:50am by Tim@Visual Micro »  
Back to top
IP Logged
 
jnorre
Newbies
*
Offline


Posts: 9
Joined: Sep 16th, 2014
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #4 - May 9th, 2016 at 12:09pm
Print Post  
Creating a win32 project, results in a "Creating project 'Win32Project1'... project creation failed."

> You should still see c++ as an option in control panel>add/remove/vs/change>customize

I do see the option, but it is already checked, so all I can do is uncheck it.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #5 - May 9th, 2016 at 1:02pm
Print Post  
Okay if you can see the win32 project creation in the new project window this means that c++ is installed but the install if broken or more likely to be a permissions problem.

I found a similar article here about the issue. It's unrelated to any of the visual micro install. Obviously vs2015 is version 14 of visual studio not vs2012 version 11 as discussed in the article. 

http://superuser.com/questions/740142/visual-studio-2012-project-creation-failed

Did you try running visual studio as admin to see if that proves a permissions issue or not?
« Last Edit: May 9th, 2016 at 1:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
jnorre
Newbies
*
Offline


Posts: 9
Joined: Sep 16th, 2014
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #6 - May 9th, 2016 at 1:26pm
Print Post  
Tried the suggestion from the link above (change permissions recursively using psexec.exe), as well as running as administrator. Unfortunately, it did not work.

I'll will try with Atmel Studio 7 and the unsupported plug-in. Or how about AS 6.2 - is the plug-in still maintained for newer Arduino versions?

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #7 - May 9th, 2016 at 2:12pm
Print Post  
Hi,

The problem is that Visual Studio 2015 does not support the older add-in system which Visual Micro used for 6.2 and vs2010. Atmel 7 is VS2015 so it suffers the same issue and required a new front-end code base.

Atmel 7 is supported but comes with some issues so for most users it is better they use VS2015. Especially considering that atmel 7 uses an older version of vs2015 and installing both vs and atmel can cause frustrations.

Furthermore the atmel gallery only supports the older visual studio extension format which as superseded for in 2012. So I have to create a new old format extension installer before atmel can be published to the atmel gallery.

Atmel 7.0 adds additonal cpp code files to projects automatically which can be deleted but cause confusion and compiler breakages for less experienced users.

So Visual Studio 2015 has been the best option. It's unfortunate that you appear to have a problem with the C++ new project templates. 

I would ask on the https://connect.microsoft.com/ and try to stick with vs 2015 but it is up to you. 

AS7 is currently on arduino 1.6.6 a new release of visual micro will be created for it over the next few months but arduino made huge changes in the last 6 months of last year so there was only so many hours in the day.




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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #8 - May 9th, 2016 at 2:14pm
Print Post  
Another thought is that because you have the problem on two machines it might be confusion about which c++ options to tick.

Can you please show a screen shot of the visual studio installer options you have selected

Thanks
  
Back to top
IP Logged
 
jnorre
Newbies
*
Offline


Posts: 9
Joined: Sep 16th, 2014
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #9 - May 10th, 2016 at 6:27am
Print Post  
Here's how it looks right now:



F# and Python, as well as some Common Tools was enabled to try and fix the problem.


Regarding contacting Microsoft: We can not use any more time on this - we downloaded at 5th of may and did not get it to work, and I fear what my boss will say, when he see that two persons has used close to 10 hours on this. Luckily we've fixed the problem we needed VM for in another way. Maybe I will try at my home computer - it is Windows 10 english version (x64), while the machines at work ar Win7(x64) danish.

PS: Have you at VM tried to download and install the newest vs2015 according to your own instructions?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #10 - May 10th, 2016 at 8:26am
Print Post  
Please keep in mind that you are unable to create a new visual studio cpp.project NOT using visual micro.

This shows you clearly that your visual studio installations are at fault.

When you can create a cpp project in visual studio then visual micro will also work.

Sorry to hear of the problem but you can.clearly see the issue is unrelated to visual micro.

I can confirm that many people are using visual micro with the same version of visual studio

ps: Please expand the c++ section of the image you have posted.
« Last Edit: May 10th, 2016 at 11:44am by Tim@Visual Micro »  
Back to top
IP Logged
 
jnorre
Newbies
*
Offline


Posts: 9
Joined: Sep 16th, 2014
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #11 - May 12th, 2016 at 10:45am
Print Post  
Found a program called "tweaking.com windows_repair" and it fixed the problem on both computers. So we are now able to use VS2015 and Visual Micro Smiley

We used the portable version and did the following:

  • "Step 2: (optional)": "Open pre-scan", "Start scan" and if errors are found "Repair Reparse Points" or "Repair Environment variables" as needed.
  • "Step 5: Backup": "Backup" registry and "Create" system-restore.
  • "Repairs": "Open repairs", "Start repairs" and be patient (a couple of hours).
  • Restart computer, check installation of VS2015 (is C++ still installed - if not, reinstall it) and check that a Win32 C++ project can be created.
  • Install "Visual micro" (if needed) and check that a Arduino project can be created and that an existing project can be opened.



> ps: Please expand the c++ section of the image you have posted.

When the "V" is present next to "C++", all sub-items are also selected (else it displays a "Square" like next to "Common tools".
« Last Edit: May 12th, 2016 at 11:00am by jnorre »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to use VM with newest version of Visual Studio Community 2015!
Reply #12 - May 12th, 2016 at 1:46pm
Print Post  
Thanks very much for the useful fix report. Sorry I forgot the difference between ticks and squares Smiley

Great to hear it is working. I still have no idea what the issue was with windows and why you had the same issue on two machines.

Thanks for persisting.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint