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 Editor shows error (Read 1382 times)
Roman Gavrilov
Newbies
*
Offline


Posts: 2
Joined: Nov 12th, 2016
Editor shows error
Apr 2nd, 2017 at 12:43pm
Print Post  
Hello. I can not understand why when using the latest version of the ArduinoJson library, the editor shows errors.

https://youtu.be/WIf-yYQbRNc

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Editor shows error
Reply #1 - Apr 2nd, 2017 at 1:50pm
Print Post  
The .hson library has always had it's way of doing things Smiley

I don't think visual studio c++ intellisense likes the use of "namespace".

Microsoft are making good headway moving towards better support for the gcc/c++ system. We will try to make use of that during the coming months which will help.

In the meantime you might find atmel stdio and visual micro a better solution

or do something lame a make intellisense dummies for the json functions. 

In Visual Studio the _MSC_VER constant is only defined for intellisense purposes, not for arduino compile, so you can put your own headers in a .h along with #pragma once

In your sketch you can include your own local header instead of the real library, the compiler will use the real library but your intellisense will use your dummies.

Code
Select All
#ifdef _MSC_VER
	#include <ArduinoJson_IntellisenseOnly.h>
#else
	#include <ArduinoJson.h>
#endif
 



This might not be practical with arduinoJson because of its complexity.
« Last Edit: Apr 2nd, 2017 at 1:50pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint