Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Cannot "Go to definition" of arduino library classes (Read 228 times)
UtterlyEngaged
Newbies
*
Offline



Posts: 2
Cannot "Go to definition" of arduino library classes
May 17th, 2019 at 7:17am
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10473
United Kingdom
Re: Cannot "Go to definition" of arduino library classes
Reply #1 - May 17th, 2019 at 2:11pm
 
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
Re: Cannot "Go to definition" of arduino library classes
Reply #2 - May 17th, 2019 at 2:13pm
 
Wow that was significantly easier than expected. Many thanks!
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print