-
Notifications
You must be signed in to change notification settings - Fork 236
Intellisense errors for #define values in .C files #1364
Comments
I have the same problem, in different variations.
to c_cpp_properties.json resolved some of them for me. But, using DxCore , I still see any calls to In addition to that, when verifying the sketch, I get: Here's my
If anyone has IntelliSense working well without these issues, could you share your Edit: I don't think this is unique to .c files. I see it in .ino, .h, and .cpp files as well. |
I've now done a complete reinstall of the Arduino IDE, making sure that all board packages and libraries were deleted before reinstalling, removed and reinstalled the Arduino VS Code extension, and setup my project directory from scratch. I installed the DxCore board package from the Board Manager within VS Code. I verified my sketch so that the build process created ardino.json and c_pp_properties.json on its own. I added Going through that process did get rid of the VS Code:
Extension version: v0.4.8 |
Intellisense, in my environment, does not seem to fully see constants defined in a header using #define. This is the same symptoms as described in #969 and is still an issue with VS 0.4.5 (I had to back down from 0.4.6 for a non-related issue it created). I am not 100% sure but it seems to be only a problem if the consumer source file is .c and not a .cpp file. It should be noted that an enum or const defined in that same .h file does not exhibit any Intellisense issues.
If anyone has a c_cpp_properties.json based work around, please share.
Thanks,
Greg
The text was updated successfully, but these errors were encountered: