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 Intellisense question (Read 4790 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Intellisense question
Jan 14th, 2014 at 4:05pm
Print Post  
Now have VS 2013 plus the latest VS installed.  I'm working on some timer code, and I entered a standard Interrupt handler like this:
Code
Select All
ISR(TIMER1_COMPA_vect) {


} 



Intellisense is marking that opening '{' red, saying "Error: Expected a declaration" - but the code Builds/Compliles fine.

What is happening? Do I have a syntax error elsewhere or WTF???   Cheesy

=Alan R.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense question
Reply #1 - Jan 14th, 2014 at 5:39pm
Print Post  
Hi,

Visual Studio expects Microsoft C++ and doesn't like some Arduino code. It will only ever be a 99% solution for this reason. 

We can improve things because Visual Micro intellisense and compiler are two different things. So if you find how to re-define ISR in a way that Visual C++ will like we can tweak the intellisense.

Sorry.
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Intellisense question
Reply #2 - Jan 14th, 2014 at 5:52pm
Print Post  
No prob - so if I do a BUILD operation in VS and it compiles ok,(as it is) I'll assume then that any strange Intellisense warnings are bogus.� �Wink

=Alan R.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense question
Reply #3 - Jan 14th, 2014 at 5:58pm
Print Post  
Yep, compiler is 100% accurate and uses the tools provided with the Arduino Ide (No VS)
« Last Edit: Jan 14th, 2014 at 5:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense question
Reply #4 - Jan 20th, 2014 at 5:07pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint