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
Hot Topic (More than 8 Replies) intelliSense problems (Read 13684 times)
bakkertje
Newbies
*
Offline


Posts: 5
Location: Netherlands
Joined: Mar 19th, 2012
intelliSense problems
Mar 21st, 2012 at 12:59pm
Print Post  
Hello everyone,

After installing Visual Micro I got error messages from IntelliSense.
These are the errors after the opening of Blink.

1      IntelliSense: first parameter of allocation function must be of type 'size_t'       .h      10      8      
2      IntelliSense: this declaration has no storage class or type specifier      .h      13      1      
3      IntelliSense: expected a ';'      .h      13      15      
4      IntelliSense: identifier "__guard" is undefined      .h      15      36      
5      IntelliSense: expected an expression      .h      15      45      
6      IntelliSense: incomplete type is not allowed      .h      16      17      
7      IntelliSense: identifier "__guard" is undefined      .h      16      38      
8      IntelliSense: expected an expression      .h      16      47      
9      IntelliSense: incomplete type is not allowed      .h      17      17      
10      IntelliSense: identifier "__guard" is undefined      .h      17      36      
11      IntelliSense: expected an expression      .h      17      45      
12      IntelliSense: linkage specification is incompatible with previous "setup" (declared at line 9 of arduino.h")      uino.h      116      6      
13      IntelliSense: linkage specification is incompatible with previous "loop" (declared at line 10 of arduino.h")      uino.h      117      6      


Further it starts normal and I get no other error messages.
Maybe someone knows what I'm doing wrong.
« Last Edit: Mar 21st, 2012 at 12:59pm by bakkertje »  
Back to top
 
IP Logged
 
bakkertje
Newbies
*
Offline


Posts: 5
Location: Netherlands
Joined: Mar 19th, 2012
Re: intelliSense problems
Reply #1 - Mar 21st, 2012 at 1:02pm
Print Post  
Ow I forgot to say that i´m using visual studio 2010 pro and arduino 1.0
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: intelliSense problems
Reply #2 - Mar 21st, 2012 at 3:47pm
Print Post  
hi, is the system compiling and uploading correctly?
  
Back to top
WWW  
IP Logged
 
bakkertje
Newbies
*
Offline


Posts: 5
Location: Netherlands
Joined: Mar 19th, 2012
Re: intelliSense problems
Reply #3 - Mar 21st, 2012 at 6:55pm
Print Post  
No, when i try it with blink i got this error.


Error      1      
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is nf"

         Using Port                    : \\.\COM3
         Using Programmer              : stk500v1
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Recv: 
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.            

  
Back to top
 
IP Logged
 
bakkertje
Newbies
*
Offline


Posts: 5
Location: Netherlands
Joined: Mar 19th, 2012
Re: intelliSense problems
Reply #4 - Mar 21st, 2012 at 7:14pm
Print Post  
Just fixed the uploading error. I set Upload Using programmer on false and that works. But i still got the intellisense error's.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: intelliSense problems
Reply #5 - Mar 21st, 2012 at 11:23pm
Print Post  
It's compiling and uploading okay so a few questions for you.

Select the "Arduino Uno" board and inside the void loop() enter "Ser"
Code
Select All
void loop()
{
    Ser
}
 



With the cursor position on "Ser", press CTRL+J do you see "Serial" in the intellisense suggestions list?

If you then switch to mega 2560 and press CTRL+J on the "Ser" do you see "Serial1","Serial2","Serial3" in the intellisense suggestions list?

--------------------------------------

Note: Some intellisense errors can be ignored, they are false.

At the moment, Vm does include prototypes for setup() and loop() headers because it uses a copy of the arduino source code which does the same. I notice in arduino 1.0 they also added them to the core so we will see an intellisense warning about that. It's not a problem. 

+ There are a few arduino dataypes I have yet to figure out how to map into visual studio but again these should not cause general problems except some false intellisense warnings.
  
Back to top
WWW  
IP Logged
 
bakkertje
Newbies
*
Offline


Posts: 5
Location: Netherlands
Joined: Mar 19th, 2012
Re: intelliSense problems
Reply #6 - Mar 22nd, 2012 at 7:24am
Print Post  
When I select the uno first I didn't get it. After clikking on Ser I can see Serial. But with the mega 2560 I didn't get Serial. 

btw i'm using the arduino mega 1280 and when I select that one it does the same as for the mega 2560.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: intelliSense problems
Reply #7 - Mar 22nd, 2012 at 5:45pm
Print Post  
yes 1280 and 2560 should be the same. when you switch board sometimes in intellisense takes a few moments to update.

pleas email the vsarduino.h file that vm automatically created in your sketch folder and also email screen shot of your vm options thanks

email to info[at]visualmicro.com
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: intelliSense problems
Reply #8 - Mar 23rd, 2012 at 1:46pm
Print Post  
Hi, i have your files and they look good except that maybe we have a problem with the . in the examples path you are using 1.

Please try following the how to test a new install guide by creating your own sketch or using a sketch from outside of the examples folder. the arduino examples is also readonly which might be causing more problems.

http://www.visualmicro.com/post/2011/10/04/How-to-test-a-new-installation-of-Ard...
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint