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 Error in vsarduino.h??? (Read 3673 times)
n
Junior Member
**
Offline


Posts: 52
Joined: Mar 29th, 2016
Error in vsarduino.h???
Jun 22nd, 2016 at 6:20am
Print Post  
I have just re-installed VS and am using the latest version of vm downloaded today. I have a sea of red intellisense errors throughout my project although the project still compiles as it always did.

On investigation, I believe there may be a problem in the vm maintained file called .ESP.vsarduino.h. Here are a few lines in the problem area...

Code (C++)
Select All
#undef F
#define F(string_literal) ((const PROGMEM char *)(string_literal))
#undef PSTR
#define PSTR(string_literal) ((const PROGMEM char *)(string_literal))")#include <ESP.ino>
#include <Command.ino>
 



If I edit the file so that it reads

Code (C++)
Select All
#undef F
#define F(string_literal) ((const PROGMEM char *)(string_literal))
#undef PSTR
#define PSTR(string_literal) ((const PROGMEM char *)(string_literal))
#include <ESP.ino>
#include <Command.ino> 



then all the intellisense errors disappear. 

Unfortunately my correction to the .h file is overwritten and the error returns after compiling..

Am I doing something wrong here - or are you?

Thanks

Neil

VS2015, Arduino 1.6, Core 2.2, Generic ESP8266 Module
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error in vsarduino.h???
Reply #1 - Jun 22nd, 2016 at 12:02pm
Print Post  
Thanks for the report. I just published an update with the fix
  
Back to top
IP Logged
 
n
Junior Member
**
Offline


Posts: 52
Joined: Mar 29th, 2016
Re: Error in vsarduino.h???
Reply #2 - Jun 22nd, 2016 at 8:44pm
Print Post  
Thanks - much better but still not quite right.

The offending lines now read :

Code (C++)
Select All
#undef F
#define F(string_literal) ((const PROGMEM char *)(string_literal))
#undef PSTR
#define PSTR(string_literal) ((const PROGMEM char *)(string_literal))")

#include <ESP.ino>
#include <Command.ino> 



and this still gives intellisense errors in PSTR calls.

Thanks

Neil
« Last Edit: Jun 22nd, 2016 at 8:45pm by n »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error in vsarduino.h???
Reply #3 - Jun 22nd, 2016 at 9:26pm
Print Post  
Oh thanks, I didn't spot the rogue ") in your first report.

Please try .9  just published
  
Back to top
IP Logged
 
n
Junior Member
**
Offline


Posts: 52
Joined: Mar 29th, 2016
Re: Error in vsarduino.h???
Reply #4 - Jun 22nd, 2016 at 9:35pm
Print Post  
Excellent - looks good now.

Thanks for the quick fix

Neil
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint