Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Installation & Troubleshooting >> Cannot "Go to definition" of arduino library classes
https://www.visualmicro.com/forums/YaBB.pl?num=1558073826

Message started by UtterlyEngaged on May 17th, 2019 at 7:17am

Title: Cannot "Go to definition" of arduino library classes
Post by UtterlyEngaged on 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?

Title: Re: Cannot "Go to definition" of arduino library classes
Post by Visual Micro on May 17th, 2019 at 2:11pm
Click vMicro>Toggle Hidden Files so that the lib and core source short cuts are in the project.

Title: Re: Cannot "Go to definition" of arduino library classes
Post by UtterlyEngaged on May 17th, 2019 at 2:13pm
Wow that was significantly easier than expected. Many thanks!

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.