-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just Can't Solve includePath errors #1750
Comments
Your posted config does now have an |
Don't know why that didn't come thru. But, yes I have the includPath above the browse/path. Let me post again. Thanks for the reply.
|
My apologies, but when I copy and paste the code over, it only put half of it into the gray box. When I figure this issue out, I'll post the full c_cpp_properties.json file. New to GitHub |
use 3 backticks (`) when marking multiple lines of "code". I will edit your comments so that they show up properly. |
Try setting the |
I tried 3 back ticks and it still didn't show all. Thanks. I changed the intellisensenMode to clang-x64 and these are the files unable to find,
It's not finding any libraries. |
Where do those files live in your filesystem? Are those paths included in the |
Oh wait, I missed something. Your include path appears to be missing spaces in |
OK, now I'm getting somewhere. You were correct. I was missing spaces in those C://Program Files (x86) Added spaces and still have errors but they have Cannot open source file "stdlib.h" (dependency of "SPI.h") I have the SPI.h library path added to the includePath and the browse path The files live in the paths that are shown in the above posts. If I understand your question correctly. |
ok, if it can't find stdlib.h, then it probably means the If you would rather wait for the final release, you can run |
I'll wait for the final release. Thanks for the help. |
OK, forget the above post. Everything is working. No Errors. This article was helpful, Why I couldn't find that a couple of days ago .... : ) Thank you Bob for your help. |
Oh, it's interesting that that article says to set |
I was have a similar issue--embedded project using ARM GCC tools and libraries with many associated headers. Setting In my case I had a directory
I'm pretty happy now but is this a bug? It now seems to be finding symbols that are defined deep in that |
@razed11 did you try setting the "compilerPath" property to point to your ARM GCC compiler? That should pick up the system include path and defines necessary to make the |
@razed11 Also, the includePath used by the "Default" intelliSenseEngine is not recursive (yet), if your missing includes were under your |
[issue moved to #3512] |
@redquartista, I moved your comment to a new issue. Please use that instead of this one. |
I'm writing Arduino sketches and trying to switch over to VS Code for the de-bugging features. I can get the blink example to load and get NO errors.
When I load my own sketch that located in the C:/Users/ directory, then I get the "cannot open source file" error. I have read everything concerning this issue, but just can't solve it.
Any help is greatly appreciated. I've banged my head long enough.
Here are my versions,
VS Code - 1.21.1
Windows10
Arduino Extension 0.2.11
C/C++ Extension 0.15.0
Here's the error,
#include errors detected. Please update your includePath. IntelliSense features for this translation unit (C:\Users\Greg\Projects\2018\Humidity Sensor\Source Code\HT18\HT18.ino) will be provided by the Tag Parser.
And lastly, here is my c_cpp_properties.json file,
The text was updated successfully, but these errors were encountered: