VS Arduino | |
>> >> Intellisense Question/Problem
https://www.visualmicro.com/forums/YaBB.pl?num=1547285012 Message started by Arnd on Jan 12th, 2019 at 9:23am |
Title: Intellisense Question/Problem Post by Arnd on 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? |
Title: Re: Intellisense Question/Problem Post by Visual Micro on Jan 12th, 2019 at 12:27pm
pls state which hardware you are using? it's important to know for intellisense discussion
|
Title: Re: Intellisense Question/Problem Post by Arnd on 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++):
And the "UINT8_MAX" is squiggly-underlined as documented in the initial post yet the sketch compiles without a problem. |
Title: Re: Intellisense Question/Problem Post by Visual Micro on 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. |
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2024. All Rights Reserved. |