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 visual studio 2015 intellisense problem (Read 4047 times)
Red Baron
Member
***
Offline


Posts: 112
Location: Germany
Joined: Jul 29th, 2015
visual studio 2015 intellisense problem
Mar 30th, 2016 at 2:25pm
Print Post  
Hi,
the appended picture "intellisense.png" shows the problem. Intellisense does not recognize that print() is a member function WifiClient. Compiling the project works fine without an error.

WifiClient inherits from Client (with a suspicious error message (see picture "client.png")) inherits from Stream inherits from Print which has a member print().

I'm using:
- Microsoft Visual Studio Community 2015
  Version 14.0.24720.00 Update 1
- Visual Micro Version 1.1603.20
- ESP8266 Version 2.1.0
- Arduino 1.6.8

The Code from a fresh test project:
-------------------------------------------------
#include <WiFiUdp.h>
#include <WiFiServer.h>
#include <WiFiClientSecure.h>
#include <WiFiClient.h>
#include <ESP8266WiFiType.h>
#include <ESP8266WiFiSTA.h>
#include <ESP8266WiFiScan.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266WiFiGeneric.h>
#include <ESP8266WiFiAP.h>
#include <ESP8266WiFi.h>
void setup()
{ WiFiClient wc;
   wc.print("");
}

void loop()
{
}


  

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


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual studio 2015 intellisense problem
Reply #1 - Mar 31st, 2016 at 5:13pm
Print Post  
I've seen similar before. 

I am not sure what we have to do to make the Visual Studio intellisense recognize inheritance when defined in that way or how to switch off the error check.

  • How is print inherited for the Client class? 
  • Does pressing F12 on Client take you to the Client class?

Thanks
  
Back to top
IP Logged
 
Red Baron
Member
***
Offline


Posts: 112
Location: Germany
Joined: Jul 29th, 2015
Re: visual studio 2015 intellisense problem
Reply #2 - Apr 2nd, 2016 at 8:27am
Print Post  
Hi Tim,

I don't understand your first question. All inheritance is public. Is that the answer you want?
- class WiFiClient : public Client, ...
- class Client: public Stream ...
- class Stream: public Print ...

F12 (pressed wit selected Client.println at the .ino-file) shows the correct definiton. See Attachment.

Kind regards
« Last Edit: Apr 2nd, 2016 at 8:28am by Red Baron »  

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


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual studio 2015 intellisense problem
Reply #3 - Apr 2nd, 2016 at 11:55am
Print Post  
No what I mean is I don't know why vs intellisense doesn't want to play ball  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint