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 Cannot "Go to definition" of arduino library classes (Read 914 times)
UtterlyEngaged
Newbies
*
Offline


Posts: 2
Joined: May 17th, 2019
Cannot "Go to definition" of arduino library classes
May 17th, 2019 at 6:17am
Print Post  
Hi,

I have an annoying problem that is causing much debugging headache right now.

I have the following in a project (.ino) imported to vMicro:

#include <SPI.h>

Resolves to C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src\SPI.h

Now if I write

SPI.begin();

I am able to right click begin() and select "Go to declaration" which brings me to the h-file.
If I, however, select "Go to definition" it is unable to pull up the cpp-file. I have checked and it is actually located in the very same folder as the .h-file.

Is anyone aware of how I can change this to make Visual studio aware of the cpp-files of included arduino drivers?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot "Go to definition" of arduino library classes
Reply #1 - May 17th, 2019 at 1:11pm
Print Post  
Click vMicro>Toggle Hidden Files so that the lib and core source short cuts are in the project.
  
Back to top
WWW  
IP Logged
 
UtterlyEngaged
Newbies
*
Offline


Posts: 2
Joined: May 17th, 2019
Re: Cannot "Go to definition" of arduino library classes
Reply #2 - May 17th, 2019 at 1:13pm
Print Post  
Wow that was significantly easier than expected. Many thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint