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 on VS2012 (Read 7838 times)
davidcoward
Junior Member
**
Offline


Posts: 56
Joined: Oct 5th, 2012
Intellisense on VS2012
Oct 9th, 2013 at 4:51pm
Print Post  
Hi

I used Visual Micro happily with VS2008 but have now plunged into VS2012. Both versions are still on my machine.

If I open a project in VS2008, I have zero errors. If I open the same project in VS2012, although I can build it, I get the maximum 100 errors, all of which look something like:

     99      IntelliSense: identifier "TIMER3C" is undefined

Is there something else I should do in the land of VS2012?

I have checked the associations for ino and pde to VC++ and that's fine.

David
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense on VS2012
Reply #1 - Oct 9th, 2013 at 5:36pm
Print Post  
Hi David,

When you enter code are the intellisense prompts correct? For example do you see the correct list of Serial ports when you type "Ser"?

Is "Go To Definition/F12" working?

Thanks
  
Back to top
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 56
Joined: Oct 5th, 2012
Re: Intellisense on VS2012
Reply #2 - Oct 9th, 2013 at 9:17pm
Print Post  
Hi Tim

Yes, the intellisense prompts are correct.

Yes, "Goto definition is fine"

I do not know what F12 should do. It seems a bit random.

I have just realised that a lot of the errors are in "pins_arduino.h" if that helps. If I double click an error, it takes me somewhere random. If I double click the same error again, it takes me somewhere else random.


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense on VS2012
Reply #3 - Oct 9th, 2013 at 9:30pm
Print Post  
Hi David,

We normally suggest people close the intellisense errors list and ignore it. the list differs in the various VS versions. It attempts to report MS C++ syntax errors, some of the Arduino core and some sketch code can use slightly different syntax.
  
Back to top
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 56
Joined: Oct 5th, 2012
Re: Intellisense on VS2012
Reply #4 - Oct 9th, 2013 at 9:32pm
Print Post  
Oh. OK.

Is there a way to filter out intellisense errors so that you can see the real errors?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense on VS2012
Reply #5 - Oct 9th, 2013 at 9:59pm
Print Post  
Probably or maybe. Sorry I haven't tinkered with it directly.

Future versions of vm will certainly provide more flexibility in this area.

  
Back to top
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 56
Joined: Oct 5th, 2012
Re: Intellisense on VS2012
Reply #6 - Oct 9th, 2013 at 10:16pm
Print Post  
But how come it hasn't come up before?

I'm sure I'm not the first to use VS2012 with a project with TIMER3 etc and why the random jumping about and strange things like:

     8      IntelliSense: expected a ';'      

Surely, if that was a real error it would not compile. 

Anyway, a right click reveals a checkitem "Show intellisense errors" and so they can be removed. Odd, though.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense on VS2012
Reply #7 - Oct 10th, 2013 at 12:38pm
Print Post  
It has come up before in all VS versions. Everyone just closes the intellisense error list.

I would be nice if it worked. When there is time we will experiment with some more vs settings and if required vm can add more gcc defines that VS will understand. Other than that we would need to write a gcc language system for VS so that we avoid the standard VS C++ stuff.

Atmel Studio is a better in this area because it is designed for the Arduino chips, however Atmel has other weaknesses compared to VS so I think 2012 is the best option for now. Having said that VS2008 opens so quickly that it always seems like a breath of fresh air  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint