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 Arduino syntax not recognised in Visual Studio (Read 3717 times)
Fabio Cuomo
Newbies
*
Offline


Posts: 2
Location: Italy
Joined: Jan 25th, 2017
Arduino syntax not recognised in Visual Studio
Jan 26th, 2017 at 6:42pm
Print Post  
Hi, I'm using Arduino ide 1.7.11 and Visual Studio 2015 on Windows 10 OS.
After installing Visual Micro plugin for Visual Studio I tried to open a new project but Arduino commands are not recognised (all commands are underlined as errors).
So I tried to open an existing example. When doing this, Visual Studio asks to be restarted with higher privileges. After restart the sketch opens correctly in the editor, but all Arduino commands are underlined as errors (see attached figure). The sketch is not compiled and all included header files (.h) are not found.
Can you provide any help for identifying the problem?
I also tried to uninstall and reinstall the plug-in several times but always got the same result.

Thank you.
« Last Edit: Jan 26th, 2017 at 6:44pm by Fabio Cuomo »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Fabio Cuomo
Newbies
*
Offline


Posts: 2
Location: Italy
Joined: Jan 25th, 2017
Re: Arduino syntax not recognised in Visual Studio
Reply #1 - Jan 26th, 2017 at 6:45pm
Print Post  
Hi, I'm using Arduino ide 1.7.11 and Visual Studio 2015 on Windows 10 OS.
After installing Visual Micro plugin for Visual Studio I tried to open a new project but Arduino commands are not recognised (all commands are underlined as errors).
So I tried to open an existing example. When doing this, Visual Studio asks to be restarted with higher privileges. After restart the sketch opens correctly in the editor, but all Arduino commands are underlined as errors (see attached figure). The sketch is not compiled and all included header files (.h) are not found.
Can you provide any help for identifying the problem?
I also tried to uninstall and reinstall the plug-in several times but always got the same result.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino syntax not recognised in Visual Studio
Reply #2 - Jan 27th, 2017 at 12:40pm
Print Post  
Hi,

The name of the project in the solution explorer should be "Blink" not "Sketch".

Please rename from Sketch to Blink

We will investigate how you ended up with an incorrect project name.

The project name, folder name and an .ino name must match otherwise visual micro goes to sleep
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino syntax not recognised in Visual Studio
Reply #3 - Feb 6th, 2017 at 2:36am
Print Post  
note: 

The cause of the project name reverting to "sketch" is click cancel when prompted to save the project as it closes. 

In the next release of visual micro the project is auto saved immediately after creation so that this issue should not be possible to repeat.

Ensuring the project name is the same as the .ino and containing folder is how visual micro knows it is working with an Arduino variety of a C++ project.

Thanks for the report.

There is a link to the next release at the top of this post if you want to try it.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint