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
Locked Topic VisualStudio Intellisense error with PSTR (Read 7833 times)
pm
Newbies
*
Offline


Posts: 5
Joined: Apr 24th, 2015
VisualStudio Intellisense error with PSTR
May 3rd, 2015 at 2:29pm
 
Hi, I'm using VS2013, Arduino IDE 1.6.3 and latest candidate release of VisualMicro.
Intellisense keeps marking PSTR() macro as error.
The program then compiles and runs without problem.
It's not blocking, just annoying: I read you made changes to intellisense and I was hoping in a solution for this, but evidently not.
Thanks all the same for the awesome VisualMicro and for your top class support that I recently experienced.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualStudio Intellisense error with PSTR
Reply #1 - May 3rd, 2015 at 8:26pm
 
Hi,

I only get to know about intellisense issues when the are reported. This one might have been and maybe I forgot Smiley

I have added that to the next release due today or tomorrow.

Please do report anything like that I am trying to build a list of intellisense redefines.

You can also add a .h to your projects and add #defines for anything that annoys prior to reporting.

For example this will fix the PSTR error. It's wrapped in a check to ensure Visual Studio is processing the file. When Visual Micro compiles it does not set the std Visual Studio compiler defs so the code will be ignored by Visual Micro and the Arduino Ide.

Code
Select All
#if defined(_MSC_VER)
#undef PSTR
#define PSTR(string_literal) ((const PROGMEM char *)(string_literal))
#endif
 

« Last Edit: May 3rd, 2015 at 8:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualStudio Intellisense error with PSTR
Reply #2 - May 3rd, 2015 at 9:48pm
 
Please try 1505.03 Sp1 which is available from the downloads page

Thanks
  
Back to top
IP Logged
 
pm
Newbies
*
Offline


Posts: 5
Joined: Apr 24th, 2015
Re: VisualStudio Intellisense error with PSTR
Reply #3 - May 4th, 2015 at 8:09am
 
Everything is fine now: once again, thanks a lot!!
  
Back to top
 
IP Logged
 
Serenifly
Junior Member
**
Offline


Posts: 20
Joined: Jun 20th, 2013
Re: VisualStudio Intellisense error with PSTR
Reply #4 - May 11th, 2015 at 2:10am
 
Thanks for fixing this. This was starting to drive me nuts. Ok, exaggerating a bit, but it was annoying.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualStudio Intellisense error with PSTR
Reply #5 - May 11th, 2015 at 8:52am
 
Please report these things when you find them. It doesn't help to comment after they are fixed  Smiley
  
Back to top
IP Logged
 
Serenifly
Junior Member
**
Offline


Posts: 20
Joined: Jun 20th, 2013
Re: VisualStudio Intellisense error with PSTR
Reply #6 - May 11th, 2015 at 1:32pm
 
I thought this was one of of things that couldn't be fixed it. It was always something along the lines of "VM understands VS Intellisense, but not AVR C and there is only so much I can do about that"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualStudio Intellisense error with PSTR
Reply #7 - May 11th, 2015 at 1:37pm
 
Oh I see. Yes sorry I didn't explain I found a way to fix things by re-defining them for intellisense only. Each issue can be addressed individually when discovered.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VisualStudio Intellisense error with PSTR
Reply #8 - Nov 20th, 2016 at 2:24am
 
« Last Edit: Nov 20th, 2016 at 2:26am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint