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 Intellisens problems (Read 5454 times)
Acuario
Full Member
***
Offline


Posts: 233
Location: Spain
Joined: Aug 28th, 2015
Intellisens problems
Sep 13th, 2015 at 8:04am
Print Post  
Hi,

Using VS2015 and Arduino 1.6 + latest VisualMicro version.

I have a project that uses the UIPEthernet library from github.com/ntruchsess/arduino_uip. Intellisens marks anything to do with print on the client as an error. The project, however, compiles and runs correctly.

I have a similar problem when using an MQTT library, I can post some code if you need it.

I have attached a test sketch that shows the problem:

Acuario
  

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: Intellisens problems
Reply #1 - Sep 13th, 2015 at 2:07pm
Print Post  
Hi,

Does this help? ...

If you switch on "Visual Micro>Compiler Warnings" you will see the following:-

Code
Select All
IPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]
UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 



Double click each warning and it takes you to an "#import" statement which the warning says is invalid with the updated toolchain of the latest Arduino Ide releases.

So suggests the library was written pre-latest tool chain. I think you can simply change all #import statements to #include.

Sometimes Arduino code does produce other warnings which is why the warnings are Off by default in the Arduino Ide and in Visual Micro.

In this case changing the #imports might resolve all intellisense errors but there will be occasions when they can't be resolved due to a difference between Visual Studio C++ and Arduino's Gcc compiler. There are quite a few settings in Visual Studio 2015 that allow control over various aspects of intellisense reporting such as tools>options>text editor>c++ and also by right clicking the "View>Errors List" tool window

« Last Edit: Sep 13th, 2015 at 2:27pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint