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 Intellisense Question/Problem (Read 1677 times)
Arnd
Newbies
*
Offline


Posts: 5
Location: Europe & Caribbean
Joined: Jan 12th, 2019
Intellisense Question/Problem
Jan 12th, 2019 at 9:23am
Print Post  
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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Question/Problem
Reply #1 - Jan 12th, 2019 at 12:27pm
Print Post  
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: 5
Location: Europe & Caribbean
Joined: Jan 12th, 2019
Re: Intellisense Question/Problem
Reply #2 - Jan 12th, 2019 at 1:36pm
Print Post  
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++)
Select All
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.
« Last Edit: Jan 12th, 2019 at 1:47pm by Arnd »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense Question/Problem
Reply #3 - Jan 14th, 2019 at 7:42pm
Print Post  
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 TopicPrint