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) VS2017 installation, not possible to create new arduino project (Read 12425 times)
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
VS2017 installation, not possible to create new arduino project
Jan 11th, 2017 at 5:45pm
Print Post  
Hi,
My sequence was  :
- Installed arduino plugin in existing VS2015
- Using 1.6.1 Arduino installation
- Installed VS2017
- Installed arduino plugin (did not ask any config data so must be using the previous

---> worked correct, compiles, downloads OK

- downloaded Arduino 1.8.1
- uninstalled VS2015
- uninstalled VS2017
- installed VS2017
- installed arduino plugin (did not ask config details)

Situation now : 
- can create "normal c++ projects"
- when creating arduino project i get the message in the attachment
- the project directory is created, when opening the project it looks ok
- when opening the included ino file I get the same message

Questions :
- Anyone seen this message and/or knows a solution
- Is there a way to completely remove all plugin info

  
« Last Edit: Jan 11th, 2017 at 5:59pm by herman »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 installation, not possible to create new arduino project
Reply #1 - Jan 11th, 2017 at 7:05pm
Print Post  
Hi,

Can you please confirm what option you click to create a project?

Are you using the "vMicro>New Arduino Project", or clicking the Visual Micro template in the C++ section of the File>New>Project>Wizard?

Please zip and email all the test files from the project to info[at]visualmicro.com

Can you also create a c++ project and zip and email that too.

Final question and probably a silly one. Have you run the arduino ide once since installing it?

Thanks
  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 installation, not possible to create new arduino project
Reply #2 - Jan 11th, 2017 at 8:13pm
Print Post  
Hi,

Have send the email.

For others reading this thread :
- I used both methods of creating new project
- The 1.8.1 arduino IDE works as expected.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 installation, not possible to create new arduino project
Reply #3 - Jan 11th, 2017 at 8:28pm
Print Post  
Thanks, 

1)
Can you please confirm the extension is working okay in VS2015?

2)
If you download the arduino 1.6 zip, unpack to a folder then point visual micro to it do the files open correctly.

3)
What path is shown in arduino 1.8 in file>preferences>sketchbook

4)
Does the project compile okay with visual micro if you do not open the .ino file? If so can you email build output with "vmicro>compiler>show build properties" switched on

5)
What path is displayed in tools>options>visual micro>version>assembly?


Thanks very much
« Last Edit: Jan 11th, 2017 at 8:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 installation, not possible to create new arduino project
Reply #4 - Jan 11th, 2017 at 10:27pm
Print Post  
Answers : 

2) Using Arduino 1.6.13 gives the same error message

3) C:\Users\Herman\Documents\Arduino

4) Yes it compiles : 
build.vm.build.optimised=1
roject\esp8266_d1_mini\Debug

Compiling debug version of 'vmicro_newarduiniproject' for 'WeMos D1 R2 & mini'
Program size: 224.969 bytes (used 22% of a 1.044.464 byte maximum) (15,97 secs)
Minimum Memory Usage: 31912 bytes (39% of a 81920 byte maximum)

5) C:\Program Files (x86)\Microsoft Visual udio.Arduino.15.dll

For 1) I need some more time, need to download/install VS2015. Will do asap and report results.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 installation, not possible to create new arduino project
Reply #5 - Jan 11th, 2017 at 10:44pm
Print Post  
Thanks for all the info.

It is possible (I am not 100% sure) this is caused by another extension. Here is some information

1) I checked the visual micro code. It shows the error when it attempts to open and/or activate .ino code editor window. This is just a c++ code window as far as visual micro is concerned and the code to do this is old and has worked for years (same code in all vs versions). The error is shown if visual studio throws an exception when visual micro attempts to open/activate. 

So something has prevented the operation. Visual micro shows the error that comes back from visual studio

2)

I asked about the visual micro install folder because that is the only folder, under vs extensions, that visual micro can know about. Please note that the path is different from that reported in your error message which suggests another extension is at work here.

Can you please follow the path shown in the error messages you posted and see if you can see a .manifest file in the folder. It might indicate what the extension/folder is.

Thanks

  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 installation, not possible to create new arduino project
Reply #6 - Jan 11th, 2017 at 10:53pm
Print Post  
On 2) the fna5......nq3 directory underneath the Extensions does not exist
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 installation, not possible to create new arduino project
Reply #7 - Jan 11th, 2017 at 11:02pm
Print Post  
Thanks

from help about it is possible to see a text file of all extensions and package that are installed

Can you email it or attach as .txt please
  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 installation, not possible to create new arduino project
Reply #8 - Jan 11th, 2017 at 11:03pm
Print Post  
Did a quick install of VS2015.
Strange was that the vsmicro installer mentioned that it was already installed.

Creating a new product succeeded. Compiling too.
Not uploaded to device yet.
  
Back to top
 
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 installation, not possible to create new arduino project
Reply #9 - Jan 11th, 2017 at 11:08pm
Print Post  
Is this what you want from help->about ? 
Microsoft Visual Studio Community 2017 RC
Version 15.0.26020.0 D15REL
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Community

Visual Basic 2017 RC   00369-50000-00000-AA298
Microsoft Visual Basic 2017 RC

Visual C# 2017 RC   00369-50000-00000-AA298
Microsoft Visual C# 2017 RC

Visual C++ 2017 RC   00369-50000-00000-AA298
Microsoft Visual C++ 2017 RC

Arduino for Visual Studio   1.0
Arduino extension for Visual Studio. For more information please see docs, faq and forum at http://www.visualmicro.com

ASP.NET and Web Tools 2016   15.0.21206.0
ASP.NET and Web Tools 2016

JavaScript Language Service   2.0
JavaScript Language Service

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 installation, not possible to create new arduino project
Reply #10 - Jan 11th, 2017 at 11:23pm
Print Post  
Yes that's it thanks

I can only guess the problem is the "tools for cmake 1.0" but I am sorry if I am wrong.

I say this because below is what is installed on a test server for visual micro.

The server hasn't got the "tools for cmake" installed, I think they are new.

The Android, IoS and Cross Platform tools are all C++

What I can say is that Visual Micro doesn't prevent the ino code from opening when you click to manually open the file. It only attempts to auto open when the project opens. So visual micro isn't able to prevent the problem because it is happening elsewhere. If it is the cmake system it is a bug that I am sure other will report. You could try change the visual studio file type of the .ino from c++ to document. (F4 properties). Then see if you can click and open it. If you can we can have a setting that switches all .ino file types to "document" as  a workaround. VS doesn't care what the file type is intellisense will continue to work.


note: visual micro works with the basic vc++ package. The test server has others installed for testing purposes only. If you can build a win32 c++ project that's all we need for intellisense to work. (Compile is not managed by visual studio)

Code
Select All
Microsoft Visual Studio Community 2017 RC
Version 15.0.26020.0 D15REL
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Community

Visual Basic 2017 RC   00369-50000-00000-AA346
Microsoft Visual Basic 2017 RC

Visual C# 2017 RC   00369-50000-00000-AA346
Microsoft Visual C# 2017 RC

Visual C++ 2017 RC   00369-50000-00000-AA346
Microsoft Visual C++ 2017 RC

Visual F# 4.1   00369-50000-00000-AA346
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.4.01118.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2016   15.0.21206.0
ASP.NET and Web Tools 2016

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   4.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

TypeScript   2.1.3.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   15.0.26004.01
Visual C++ for Cross Platform Mobile Development (Android)

Visual Studio Tools for Universal Windows Apps   15.0.26009.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.3.0.459 (7c3dcf2)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.1.0.13 (72366f7)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.4.0.33 (d93ae7e)
Visual Studio extension to enable development for Xamarin.iOS. 

« Last Edit: Jan 11th, 2017 at 11:26pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 installation, not possible to create new arduino project
Reply #11 - Jan 12th, 2017 at 1:25pm
Print Post  
Hi,

Did further investigation.
- I uninstalled all VS versions I had on the system.
- Installed VS2017 -> issue remains
- uninstalled VS2017
- Installed VS2017 without the "tools for cmake" -> issue remains.

When installing vsmicro on one of the VS versions, it never asks for config details (directories etc)
But in my VS2017, the config is present with my local values included.

How can I remove vsmicro completely from my system. 
Would like to go completely from scratch.

Remark :  VS2017 + vsmicro did work correctly on my first try. 
Issue came when I started to remove old VS version. 
That is the reason for try to work from scratch.

Other observations : 
- When I rename the .ino file to .cpp, the file is opened in the editor correctly.
  But then the compile fails, that looks for an .ino file.

- Changing the .ino type to document -> same issue

- My default program for .ino was notepad++, updated that to VS -> when opening a .ino file -> same issue.

- new help->about value 
Code
Select All
Microsoft Visual Studio Community 2017 RC
Version 15.0.26020.0 D15REL
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Community

Visual Basic 2017 RC   00369-50000-00000-AA298
Microsoft Visual Basic 2017 RC

Visual C# 2017 RC   00369-50000-00000-AA298
Microsoft Visual C# 2017 RC

Visual C++ 2017 RC   00369-50000-00000-AA298
Microsoft Visual C++ 2017 RC

Arduino for Visual Studio   1.0
Arduino extension for Visual Studio. For more information please see docs, faq and forum at http://www.visualmicro.com

JavaScript Language Service   2.0
JavaScript Language Service

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package
 


« Last Edit: Jan 12th, 2017 at 1:29pm by herman »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 installation, not possible to create new arduino project
Reply #12 - Jan 12th, 2017 at 2:23pm
Print Post  
Okay thanks for the testing I will experiment some more. The file type in the IDE > F4 properties is not related to the file association so notepad++ shouldn't affect it.

The visual micro settings are in regedit.exe HK_CURRENTUSER/software/visual micro. Visual micro doesn't store knowledge of where it is installed.

One other things to check is "tools>options>text editor>file extension". Make sure the .ino file extension is associated to C++. 

This affects which editor visual studio attempts to open when you edit code and now that I think about it is probably the issue. If no extensions are in the "tools>options>text editor>file extension" list then add .ino (with the leading .) and select C++

« Last Edit: Jan 12th, 2017 at 2:24pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 installation, not possible to create new arduino project
Reply #13 - Jan 12th, 2017 at 4:25pm
Print Post  
Hi,

I have it working with these steps.

- cleaned vsmicro from registry
- uninstalled all VS versions
- installed VS2017 (no vsmicro)
 
- opening existing .ino file -> error message
- adding in text editors .ino to c++ -> opens correctly
- removed .ino from text editors -> open gives error message
- installed vsmicro -> open gives error message
- removed & re-added .ino text editor -> working (build, upload,....)

FYI, opening any file with unknown extension -> error message

Still i do not understand completely.
If you want me to do more testing just let me know

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 installation, not possible to create new arduino project
Reply #14 - Jan 12th, 2017 at 4:30pm
Print Post  
Excellent thanks. Very interesting!

Maybe of interest: VS2017 starts faster than previous versions and also loads extensions later. Normally visual micro always tries to add the .ino extension mapping. So it's strange it's not working. 

Maybe some sort of VS2017 RC bug but I am very interested to hear what you find. I will also try to replicate and have altered the error notice that visual micro displays with a hint about the tools file extension mapping
« Last Edit: Jan 12th, 2017 at 4:31pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint