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) Wrong Intellisense with Blink Led Example (Read 3732 times)
Luigi
Newbies
*
Offline


Posts: 6
Location: Italy
Joined: Sep 11th, 2018
Wrong Intellisense with Blink Led Example
Oct 1st, 2018 at 9:04pm
Print Post  
These are my first experiment with Visual Micro after the installation and registration of the license.
I had some problems with my project, problems not related the Visual Micro, and some visualization problems related the intellisense.
For this reason I have started a new project by selecting the "Blink Led Example" from the projects window.
The build and upload works fine, the led blink Smiley
My question is related the intellisense that marks the arduino instructions as unknown.

I have set some settings as explained in the main page of the Visual Micro home page wihtou success.
If I press F12 to go to the definition of the 'pinMode', for example, the VS is able to open the Arduino.h e show the definition of the method.

There are some additional settings to do?

I'm using "Visual Studio 2017 Enterprise", the selected, and used, board is an Arduino Uno and the code is exactly the code created from the 'Projects' page of Visual Studio (Blink Led Example, I have changed only the number of the digital output from 13 to 2 where I have a led).

« Last Edit: Oct 1st, 2018 at 9:05pm by Luigi »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Wrong Intellisense with Blink Led Example
Reply #1 - Oct 2nd, 2018 at 12:06pm
Print Post  
What arduino ide version are you using?

Please switch on "vmicro>compiler>show build properties". then build and post output as .txt file or email to info[at]visualmicro.com with link to this thread
  
Back to top
IP Logged
 
Luigi
Newbies
*
Offline


Posts: 6
Location: Italy
Joined: Sep 11th, 2018
Re: Wrong Intellisense with Blink Led Example
Reply #2 - Oct 2nd, 2018 at 2:31pm
Print Post  
I'm using the last version of the Arduino IDE (1.8.7)

I'm preparing the email with the output information.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Wrong Intellisense with Blink Led Example
Reply #3 - Oct 2nd, 2018 at 2:52pm
Print Post  
Please zip and email your test project including sub folders below the project

Thanks
  
Back to top
IP Logged
 
Luigi
Newbies
*
Offline


Posts: 6
Location: Italy
Joined: Sep 11th, 2018
Re: Wrong Intellisense with Blink Led Example
Reply #4 - Oct 2nd, 2018 at 3:15pm
Print Post  
Mail sent.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Wrong Intellisense with Blink Led Example
Reply #5 - Oct 2nd, 2018 at 4:09pm
Print Post  
Thanks, all looks good.

I think this is a Visual Studio C++ issue. We use the VS C++ for intellisense but not for build and upload.

Please try to create a new empty c++ project not an Arduino project.

Does intellisense work in the standard c++ project?

What is your exact version of visual studio in help>about.
  
Back to top
IP Logged
 
Luigi
Newbies
*
Offline


Posts: 6
Location: Italy
Joined: Sep 11th, 2018
Re: Wrong Intellisense with Blink Led Example
Reply #6 - Oct 2nd, 2018 at 4:33pm
Print Post  
Ok, first of all thanks for the support.
I'm not a c++ developer (I'm C# dev), for this reason I'm not a very expert of the C++

I have created a new VC++ Console Project where I have added an easy method to multiply the argument to 2, and in the main I have called this method and output the value on the console.
The application works and also the IntelliSense.

The version of VS is:
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Wrong Intellisense with Blink Led Example
Reply #7 - Oct 2nd, 2018 at 5:50pm
Print Post  
One thing that Microsoft screwed up and promised to fix is that right click the project and "Platform Toolset" should be empty. That means we use the default VC++ intellisense. The bug is that in recent VS2017 versions they got this wrong.

Try setting a Platform toolset from the list. Any toolset.
  
Back to top
IP Logged
 
Luigi
Newbies
*
Offline


Posts: 6
Location: Italy
Joined: Sep 11th, 2018
Re: Wrong Intellisense with Blink Led Example
Reply #8 - Oct 2nd, 2018 at 6:12pm
Print Post  
Ok! Now, without change anything, all works fine.
Probably the creation of a 'standard' C++ project has initialized some configuration of Visual Studio and now works fine.

Now I will try with my original project.

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