Hi, I've been trying to get VS code to detect my arduino libraries for 2 weeks now and it still won't work. I've tried pretty much everything from changing the default C compiler to the include path JSON settings. I'll attach some photos so you can see the issue.
Hi @murrconn0361. I don't have any experience with the Arduino support for VS Code, so I won't be able to provide assistance, but I think the other forum helpers will benefit from knowing which of the various VS Code extensions you are using to add Arduino support to your VS Code.
I use Arduino support in VS code and I don't have any problem with libraries.
First, you need a regular Arduino installation to use Arduino VS extension . And you have to install a library in your Arduino libraries folder.
Perhaps it is the issue.
You must install the libraries in Arduino libraries folder, not in workspace
Ok, I had copied my libraries from the Arduino folder into the workspace folder in an attempt to make it work, and it didn't make a difference. I'll try uninstalling the libraries and reinstalling them.
Ok, so I reinstalled the library and changed the include statement, but it's still giving me errors. The first error is #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\conno\Documents\Grade 11 Summative Project\WeatherStation\WeatherStation.ino).C/C++(1696) and the second error is cannot open source file "Adafruit_BMP280.h"C/C++(1696)
I also deleted the copy of the library folder from the workspace. The Libraries seem to be installing themselves in the 'Arduino' folder in 'Documents'