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 errors shown in VisualStudio that are not in my code when using ESP8266 (Read 1830 times)
Chris_yesyes
Newbies
*
Offline


Posts: 3
Joined: Aug 17th, 2018
errors shown in VisualStudio that are not in my code when using ESP8266
Aug 17th, 2018 at 3:46pm
Print Post  
Hi,
I've been using Visual Micro for a while to code for Arduinos. Now I'm moving to ESP8266 modules for my projects.

I have installed ESP8266 Core 2.4.2 (from the Arduino IDE).

I'm seeing errors being displayed n the Visual Studio error list that are not from my code but seem to be from ESP8266 libraries / code files. I can still compile and upload without problems, but these errors are a bit annoying (in the way of seeing my own errors) and they also seem to throw off Intellisense.

I have attached a screenshot showing these errors.

Any idea how I can get rid of them? I'm hesitant to just go and "correct" them. They seem to be in lower level code that I don't really understand.

Visual Studio 2017 Community
Visual Micro 1807.8.0
ESP8266 2.4.2
Arduino IDE 1.8.4
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: errors shown in VisualStudio that are not in my code when using ESP8266
Reply #1 - Aug 17th, 2018 at 4:25pm
Print Post  
Hi,

VS intellisense isn't perfect and struggles with some gcc syntax. If you change the combo box from "Build + Intellisense" to "Build Only" then you will see a accurate list after each build.
  
Back to top
IP Logged
 
Chris_yesyes
Newbies
*
Offline


Posts: 3
Joined: Aug 17th, 2018
Re: errors shown in VisualStudio that are not in my code when using ESP8266
Reply #2 - Aug 19th, 2018 at 11:20am
Print Post  
Hmmm, this is a bit disappointing. Setting it to "Build Only" means I don't see errors as I type. 

Isn't there a way to "teach" Intellisense this syntax?

Also, when I code in C# in the same Visual Studio I can rename a variable and VS offers me to rename that variable in the whole project. I don't see that option offered when coding for Arduino / ESP8266 with Visual Micro. Is this intentional?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: errors shown in VisualStudio that are not in my code when using ESP8266
Reply #3 - Aug 19th, 2018 at 11:39am
Print Post  
Any reason why you have not used the other combo box to set the errors list to your project code only?
  
Back to top
IP Logged
 
Chris_yesyes
Newbies
*
Offline


Posts: 3
Joined: Aug 17th, 2018
Re: errors shown in VisualStudio that are not in my code when using ESP8266
Reply #4 - Aug 19th, 2018 at 12:22pm
Print Post  
OK, "Current Project" still shows these errors but with "Current Document" it works. Not ideal when using multiple files in a project but good enough. Wink
Thanks!!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint