Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Intellisense Question/Problem (Read 192 times)
Arnd
Newbies
*
Offline



Posts: 3
Europe & Caribbean
Intellisense Question/Problem
Jan 12th, 2019 at 9:23am
 
I've been living with a small issue with Visual Studio 2017 and VisualMicro for while that I thought might be easily solved by someone here.

When I use some Arduino constants, for example "UINT8_MAX" in my programs, Intellisense put red squiggles underneath them and when I hover over the text I get the message "Identifier "UINT8_MAX" is undefined". Yet when I right-click on the identifier to "peek definition" I get a window with the definition in "stdint.h"

Programs compile, load and run without any issues, the error is restricted to the Visual Studio ide display.

Can anyone suggest what can I do to get rid of this problem or what might be causing it?
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9677
United Kingdom
Re: Intellisense Question/Problem
Reply #1 - Jan 12th, 2019 at 12:27pm
 
pls state which hardware you are using? it's important to know for intellisense discussion
Back to top
 
WWW  
IP Logged
 
Arnd
Newbies
*
Offline



Posts: 3
Europe & Caribbean
Re: Intellisense Question/Problem
Reply #2 - Jan 12th, 2019 at 1:36pm
 
I've tried it with "Arduino/Genuino micro", "Arduino/Genuino Uno" and with "ATmega168". Unfortunately all show the same problem.

I just set the IDE to "Arduino/Genuino Uno" and created the following sketch:

Code (C++):
void setup()
{
  uint8_t  deviceNumber = UINT8_MAX; ///< Device Number to use in example, init used for detection loop
}
void loop()
{
} 



And the "UINT8_MAX" is squiggly-underlined as documented in the initial post yet the sketch compiles without a problem.
Back to top
« Last Edit: Jan 12th, 2019 at 1:47pm by Arnd »  
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 9677
United Kingdom
Re: Intellisense Question/Problem
Reply #3 - Jan 14th, 2019 at 7:42pm
 
Thanks, those boards are all the same. They use the AVR tools.

I will look into it during the next week.

You can apply a temporary workaround by extending the Visual Studio intellisense if you want to.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print