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 If intellisense is not working correctly in version 1211.04 (Read 2811 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
If intellisense is not working correctly in version 1211.04
Nov 12th, 2012 at 7:30pm
Print Post  
After initial install if intellisense is not working then first think to try switch to a different arduino board and then back to your preferred board.

If that fails then please set this option to true...

"Tools>Options>Visual Micro>Intellisense>Always Re-Add Header" = True

If you have had this problem and have used this setting then please add a reply to this thread saying that you have had to use the setting. Thanks
« Last Edit: Nov 13th, 2012 at 2:09am by Tim@Visual Micro »  
Back to top
IP Logged
 
michael hyde
Newbies
*
Offline


Posts: 3
Location: San Francisco
Joined: Nov 29th, 2012
Re: If intellisense is not working correctly in version 1211.04
Reply #1 - Nov 30th, 2012 at 2:06am
Print Post  
Hello Tim

(warning I am new to Visual Studio 2012)

I have Visual Micro installed and tested. 

In looking at the Blink example for instance, simple Arduino commands like pinMode, and digitalWrite are underlined as "identifier undefined".

When I try to use Intellisense by typing "pin"... it is not offering me pinMode or typing "digital"... not offering me digitalWrite, etc.

Am I doing something wrong or expecting something I should not?

UPDATE - 

When I created a new arduino file, the intellisense worked as expected.   
Perhaps when I open an example arduino file, I should perform some step inside Visual Studio for intellisense to work as expected?

Thank you for the exciting opportunity to use VS with Arduino!
« Last Edit: Nov 30th, 2012 at 2:16am by michael hyde »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: If intellisense is not working correctly in version 1211.04
Reply #2 - Nov 30th, 2012 at 4:37pm
Print Post  
Hi,

You have 3 methods to open an example. If you simply click an ino (or pde) of an example you will not see intellisense because this is just a simple code file without project.

If you copy or open an example by clicking the name of the example then a project will be opened containing the entire example. This should show intellisense correctly.

Please confirm that this makes sense and which method you have used to open an example.

Then if we still have a problem I can help you some more

Thanks

« Last Edit: Nov 30th, 2012 at 4:37pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Fabien
Junior Member
**
Offline


Posts: 13
Location: Redmond, WA
Joined: Nov 23rd, 2012
Re: If intellisense is not working correctly in version 1211.04
Reply #3 - Dec 5th, 2012 at 3:37am
Print Post  
Hi Tim,

In VS 2010 Pro, Intellisense does not appear to work properly with 1.1211.04 even using the "Always re-include headers" option and I always see the same 10 errors:

     1      IntelliSense: expected a '{'      c:\arduino-1.0.2\hardware\tools\avr\avr\include\stdlib.h      106      13      
     2      IntelliSense: unexpected parenthesis after declaration of function "div" (malformed parameter list or invalid initializer?)      c:\arduino-1.0.2\hardware\tools\avr\avr\include\stdlib.h      152      49      
     3      IntelliSense: unexpected parenthesis after declaration of function "ldiv" (malformed parameter list or invalid initializer?)      c:\arduino-1.0.2\hardware\tools\avr\avr\include\stdlib.h      158      53      
     4      IntelliSense: expected a '{'      c:\arduino-1.0.2\hardware\tools\avr\avr\include\stdlib.h      278      13      
     5      IntelliSense: expected a '{'      c:\arduino-1.0.2\hardware\tools\avr\avr\include\stdlib.h      290      14      
     6      IntelliSense: expected a '{'      c:\arduino-1.0.2\hardware\tools\avr\avr\include\stdlib.h      319      14      
     7      IntelliSense: expected a '{'      c:\arduino-1.0.2\hardware\tools\avr\avr\include\stdlib.h      338      14      
     8      IntelliSense: expected an identifier      c:\arduino-1.0.2\hardware\tools\avr\avr\include\avr\interrupt.h      110      23      
     9      IntelliSense: explicit type is missing ('int' assumed)      c:\arduino-1.0.2\hardware\tools\avr\lib\gcc\avr\4.3.2\include\stdarg.h      43      27      
     10      IntelliSense: first parameter of allocation function must be of type 'size_t'      c:\arduino-1.0.2\hardware\arduino\cores\arduino\new.h      10      8      Test

Cheers,
-Fabien.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: If intellisense is not working correctly in version 1211.04
Reply #4 - Dec 5th, 2012 at 1:47pm
Print Post  
Ignore the intellisense list in VS. The red squiggles should work correctly and as you type the code completion should be correct?

Close the vs intellisense reports as it is useless for arduino and no required.
  
Back to top
IP Logged
 
Fabien
Junior Member
**
Offline


Posts: 13
Location: Redmond, WA
Joined: Nov 23rd, 2012
Re: If intellisense is not working correctly in version 1211.04
Reply #5 - Dec 5th, 2012 at 6:30pm
Print Post  
The red squiggles should work correctly and as you type the code completion should be correct?

FR> Yup. That works Smiley

Close the vs intellisense reports as it is useless for arduino and no required.

FR> Sure. Will these errors eventually be filtered out?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: If intellisense is not working correctly in version 1211.04
Reply #6 - Dec 5th, 2012 at 6:37pm
Print Post  
I doubt it. I don't think the vs intellisense system will ever be able to understand some of the deeper arduino syntax. 

The errors in that report are normally in the arduino core which we know is correct and not something we need to alter. That's why I recommend closing the window. 

You will find that the F12 and SHIFT+F12 system will take you to the correct source so it's only the low level intellisense reporting that doesn't recognize some arduino syntax.

Having said that I won't stopping looking to improve it  Smiley
« Last Edit: Dec 5th, 2012 at 6:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint