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 Problem with intellisense (Read 3522 times)
Red Baron
Member
***
Offline


Posts: 106
Location: Germany
Joined: Jul 29th, 2015
Problem with intellisense
Jun 17th, 2016 at 7:59pm
Print Post  
Hi,

I tried to use the http://pubsubclient.knolleary.net/index.html library. Doing this I get error messages fron intellisense. The program compiles without any problems.

After I deleting the problematic definition for MQTT_CALLBACK_SIGNATURE and using the definition for non ESP8266 system 
"#define MQTT_CALLBACK_SIGNATURE void (*callback)(char*, uint8_t*, unsigned int)" intellisense does not grumble anymore.

I hope there will be a fix, so that is possible to use the original code.

Software Versions
Visual Studio Community 2015, Version 14.0.25123.00 Update 2
vMicro: 1.1603.20, Minor 427

Kind regards
Red Baron
« Last Edit: Jun 17th, 2016 at 8:03pm 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: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with intellisense
Reply #1 - Jun 17th, 2016 at 10:20pm
Print Post  
Hi,

the Visual Studio C++ system struggles with some Gcc syntax. 

We will shortly move to using the new Clang intellisense system that Microsoft released for VS2015+ and will get much better results.

You can make intellisense only changes in a .h file that you add to the project. The .h does not need to be #included in any code.

#if _MSC_VER

#endif

_MSC_VER is only defined when editing code, not when compiling


more here http://www.visualmicro.com/page/Extending-Visual-Studio-Intellisense.aspx

« Last Edit: Jun 17th, 2016 at 10:23pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with intellisense
Reply #2 - Jun 19th, 2016 at 5:11am
Print Post  
I think you will find this is fixed in the latest release. The intellisense cplusplus version was wrong.

Thanks for the report
  
Back to top
WWW  
IP Logged
 
Red Baron
Member
***
Offline


Posts: 106
Location: Germany
Joined: Jul 29th, 2015
Re: Problem with intellisense
Reply #3 - Jun 23rd, 2016 at 5:30pm
Print Post  
Problem is solved. Thank you.

There is still a problem with class "Client". I really don't know why. I mentioned a similar case in this post http://www.visualmicro.com/forums/YaBB.pl?num=1459347945/2 (still unsolved).

Now there is a member '_client'
Code
Select All
class PubSubClient {
private:
   Client* _client;
... 



Class Client is the Arduino class Client from 'Client.h'

When accessing _client in a member function, e.g.
Code
Select All
boolean PubSubClient::connect(const char *id, ...
...
result = _client->connect(this->domain, this->port);
... 



_client is marked and there is the error message "pointer to incomplete class type is not allowed", The code compiles without any error.
Do you have any idea how to solve this problem?


Update: Is solved with the newest version too. I just installed it.

Kind regards
« Last Edit: Jun 23rd, 2016 at 5:36pm by Red Baron »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with intellisense
Reply #4 - Jun 23rd, 2016 at 6:11pm
Print Post  
Great thanks very much for the post
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint