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 Why won't my Intellisense work? (Read 7385 times)
fitch
Newbies
*
Offline


Posts: 9
Joined: Apr 21st, 2015
Why won't my Intellisense work?
Apr 21st, 2015 at 10:31pm
Print Post  
Hello,
I am trying to help out fixing Marlin firmware for my 3D printer.  I found VisualMicro and thought it would help me poke through the code.  I am very familiar with Visual Studio and have VS 2013 Professional.

But I must be a complete dummy.  I have Arduino 1.6.3, have installed the latest Beta of VisualMicro.  I am able to navigate the code, but I get no highlighting of #ifdef blocks, I do not get values of #defines when I hover on them.  Since Marlin is built for many flavors of printers and many different processors, the code is a nightmare to decipher without being able to identify parts that are conditionally compiled.  And I was hoping VisualMicro would help.

So, what am I doing wrong?

I tried your released version with Arduino 1.6.1 but saw no difference.

And by the way, I can build the code fine with Arduino, but it won't compile with VisualMicro.  But I would still like to just have helpful Intellisense so that I can navigate it to figure out what is going on.

Thanks in advance.
  
Back to top
 
IP Logged
 
fitch
Newbies
*
Offline


Posts: 9
Joined: Apr 21st, 2015
Re: Why won't my Intellisense work?
Reply #1 - Apr 21st, 2015 at 10:42pm
Print Post  
Well, I may have answered my own question.  The board I have is a Printrboard and that uses the same MCU as a Teensy++ 2.0.  If that is the processor I select, I get no highlighting.  But if I switch the processor to something like Mega 2560 then the highlighting works.

So, is this a bug in TeensyDuino or are you guys aware of it?  Any solution?

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Why won't my Intellisense work?
Reply #2 - Apr 22nd, 2015 at 10:29am
Print Post  
You mean it compiles in the modified Teensy/Arduino Ide?

Please see our Teensy page for Teensy info.

http://www.visualmicro.com/page/Teensy-for-Microsoft-Visual-Studio.aspx

Currently we support the Arduino 1.0.x version of Teensy but not the Arduino 1.6.x version. Teensy are making some improvements at the moment that will make supporting it in 1.6.3 easier.
  
Back to top
IP Logged
 
fitch
Newbies
*
Offline


Posts: 9
Joined: Apr 21st, 2015
Re: Why won't my Intellisense work?
Reply #3 - Apr 22nd, 2015 at 3:45pm
Print Post  
OK, I guess I did not understand that you do not support the current Teensyduino.  Your web site referred to 1.21 which did not support Arduino 1.6.3 but the latest Teensyduino does.  I thought I was OK using that combination.

To answer your question, no it does not compile with my setup.  However, my biggest need was just to navigate the code, and by setting the device to Mega 2560 I can do that.  If you get the teensy thing fixed, I may even buy your version with the debugger Smiley.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Why won't my Intellisense work?
Reply #4 - Apr 22nd, 2015 at 4:01pm
Print Post  
Hi,

Yes there are a lot of significant version changes by all Ide suppliers at the moment so it is difficult for people to work out what is current.

Visual Micro does now support Arduino 1.6.3 and all custom hardware however Teensy currently breaks a few Arduino 1.6 rules and we have not had time to implement them yet. I also hear that teensy are driving some changes to the Arduino ide which will make it easier for them to produce more standard sources. So we will wait and watch for a couple of months before wasting any time with teensy for 1.6.1.

Teensy 121 and 122 work well with Visual Micro and the Arduino Ide 1.0.6. There is no benefit to you using 1.6.3

Thanks
  
Back to top
IP Logged
 
fitch
Newbies
*
Offline


Posts: 9
Joined: Apr 21st, 2015
Re: Why won't my Intellisense work?
Reply #5 - Apr 22nd, 2015 at 4:14pm
Print Post  
Thanks.  I will try 1.0.6.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Why won't my Intellisense work?
Reply #6 - Apr 22nd, 2015 at 4:32pm
Print Post  
Great just grab the zip. Don't bother with the installer. Then point the teensy 1.0 entry in the Visual Micro apps list to wherever you unzip teensy. Then use the teensy 1.0 option prior to selecting a board for your project.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Why won't my Intellisense work?
Reply #7 - Apr 30th, 2015 at 10:57pm
Print Post  
Big intellisense update when using 1.6.3 in the latest beta release
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint