Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

unable to find header files or recognize paths to header files #1721

Open
dss010101 opened this issue Mar 9, 2024 · 0 comments
Open

unable to find header files or recognize paths to header files #1721

dss010101 opened this issue Mar 9, 2024 · 0 comments

Comments

@dss010101
Copy link

I have the following files at the at

C:\Users\myusername\AppData\Local\Arduino15\libraries\ESP32Servo\src\ESP32_Servo.h
C:\Users\myusername\AppData\Local\Arduino15\libraries\ESP32Servo\src\ESP32_Servo.cpp

In code i have the following which the vscode extension is not finding:

// include files
#include <ESP32_Servo.h>

I have added the path of the header file in c_cpp_properties.json as

            "forcedInclude": [
                "C:\\Users\\myusername\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.11\\cores\\esp32\\Arduino.h",
                "C:\\Users\\myusername\\AppData\\Local\\Arduino15\\libraries\\ESP32Servo\\src\\ESP32_Servo.h"
            ],

I have also tried adding the folder to "includePath"...but to no avail.
Furthermore, each time i do a verify or an upload, this file is overwritten by the extension it seems, so i loose any chances. As such it doesn't seem to be the correct place for these configurations.

Any assistance in solving this would be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant