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 Can't find #include <VL53L1X.h> file? (Read 1854 times)
FrankP
Senior Member
****
Offline


Posts: 251
Joined: Oct 19th, 2011
Can't find #include <VL53L1X.h> file?
Apr 12th, 2023 at 10:53pm
Print Post  
I have a sketch that uses #include <VL53L1X.h>.  The sketch compiles and runs fine on a Teensy 3.5, but when I right-click on #include <VL53L1X.h> and select 'Go to document...', the file cannot be found, although it is obviously in use.  In the past when I have had this problem, saving and closing VS2022 and re-opening it has often cured the problem.  Not this time though.

Any idea what I'm doing wrong here?   

I have the latest release version (2.2023.0220 minor version 5) - at least according to VS2022's Extension manager.

TIA,

Frank
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2707
Joined: Feb 13th, 2019
Re: Can't find #include <VL53L1X.h> file?
Reply #1 - Apr 13th, 2023 at 8:51am
Print Post  
Thanks for the report.

Can you attach the full build output with the options set as shown at the top of the page, and also confirm where the VL53L1X library is from? (Pololu?)

An alternative way to see the source of the library is to enable the vMicro > Show/Hide Hidden Files, which will then include shortcuts to the library source in the solution explorer.
  
Back to top
IP Logged
 
FrankP
Senior Member
****
Offline


Posts: 251
Joined: Oct 19th, 2011
Re: Can't find #include <VL53L1X.h> file?
Reply #2 - Apr 13th, 2023 at 8:36pm
Print Post  
Hmm, thought I had posted this already, but it doesn't seem to be showing.  Ah, well, here it is again.

I have attached VL53L1X_Demo.zip,  containing the entire VL53L1X library folder, and the entire project folder, including the Verbose compile output (with build properties included).  Hope it makes it this time

frank
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
FrankP
Senior Member
****
Offline


Posts: 251
Joined: Oct 19th, 2011
Re: Can't find #include <VL53L1X.h> file?
Reply #3 - Apr 13th, 2023 at 11:14pm
Print Post  
FWIW, I started over again with a brand-new 'Arduino Project' and with the Adafruit VL53L1X library, and this time when I right-clicked on '#include Adafruit_VL53L1X.h' and selected 'go to document....' it worked fine.  Go figure....  Shocked
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't find #include <VL53L1X.h> file?
Reply #4 - Apr 13th, 2023 at 11:33pm
Print Post  
Possible the vs intellisense db was wrong. Ig it happens again, close the solution and delete the ".vs" folder from below it. Then reopen.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint