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 Misleading errors in Intellisense and error list but project builds ok (Read 2766 times)
Sam S
Newbies
*
Offline


Posts: 1
Joined: Jun 21st, 2016
Misleading errors in Intellisense and error list but project builds ok
Jun 21st, 2016 at 1:28pm
Print Post  
Hello.

When I use noInterrupts() or __disable_irq() with an Arduino Due (Programming Port) selected, both are underlined in red, saying __disable_irq is undefined in the error list. This doesn't happen in Atmel Studio. It's frustrating, though, because at first glance, my VS solution is broken and I now don't know 'immediately' when I've made a typo. Anybody know of a fix for this?

Visual Micro (Visual Studio): 1606.8.0
Visual Studio: 2015 Professional (14.0.23107.0 D14REL)
Target: Arduino Due
Arduino configuration: 1.6
Actual Arduino IDE version: 1.6.9

Smiley
« Last Edit: Jun 21st, 2016 at 1:40pm by Sam S »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Misleading errors in Intellisense and error list but project builds ok
Reply #1 - Jun 21st, 2016 at 3:50pm
Print Post  
Thanks I will look into it. You can always add a temporary workaround for intellisense yourself by adding a .h to your project and then using the #if _MSC_VER

The .h does not need to be #included in any code

Code
Select All
#if _MSC_VER
  //add some defines that are used by intellisense but will not affect compile
 
#endif 



The _MSC_VER constant is only defined when editing code in VS

By the way, Atmel helped me fix the Atmel Studio 7 installer. Yesterday the Arduino IDE for Atmel Studio 7 was released into the Atmel Gallery

« Last Edit: Jun 21st, 2016 at 3:50pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Misleading errors in Intellisense and error list but project builds ok
Reply #2 - Jun 24th, 2016 at 3:01pm
Print Post  
1606.17 SP10 has been release and contains additional intellisense for the types defined in the Arduino die/SAM  wiring_constants.h

That includes _disable_irq so hopefully it's okay now
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint