#includes are not always found
Posted: Tue Jan 16, 2024 1:25 am
I'm using vs code v 1.85.1 with Espressif IDF v 1.6.5 running under Windows 11. Also, there's MS C/C++ IntelliSense v 1.18.5 along with C/C++ Extension Pack.
I'm having ongoing problems with #includes. Every time I try running new code that I've received from a colleague, I run into these problems. Up until the latest version of his code, I was able to get the includes to show up and all would work, only after hours of trial and error while scouring the web for similar problems. I haven't been able to get his most recent code to work after hours of trying all the things I've done before.
He's running under Linux and uses a cli to build and flash fw, so he's unable to help me figure out this Windows problem.
Here's what's happening:
I copy his project directory to the root of my data drive.
I adjust his c_cpp_properties.json file to point to my local directories (see attachments).
I get squigglies under the #includes (see attachments).
I have created an environment variable in Windows named "IDF_PATH", which points to "C:\Users\rvice\esp\esp-idf\components"
I'm not sure if there's anything wrong with the setup or code, or if the problem is a bug. I see lots of references to #include problems online, but haven't found one that leads me to a solution.
Can someone recommend which direction I should take this?
Thanks,
robin
I'm having ongoing problems with #includes. Every time I try running new code that I've received from a colleague, I run into these problems. Up until the latest version of his code, I was able to get the includes to show up and all would work, only after hours of trial and error while scouring the web for similar problems. I haven't been able to get his most recent code to work after hours of trying all the things I've done before.
He's running under Linux and uses a cli to build and flash fw, so he's unable to help me figure out this Windows problem.
Here's what's happening:
I copy his project directory to the root of my data drive.
I adjust his c_cpp_properties.json file to point to my local directories (see attachments).
I get squigglies under the #includes (see attachments).
I have created an environment variable in Windows named "IDF_PATH", which points to "C:\Users\rvice\esp\esp-idf\components"
I'm not sure if there's anything wrong with the setup or code, or if the problem is a bug. I see lots of references to #include problems online, but haven't found one that leads me to a solution.
Can someone recommend which direction I should take this?
Thanks,
robin