VSC 1.42.0, Platfomio Home 3.0.1, Core 4.1.0, Mac OS-X 10.13.6
Installed extensions C/C++ Intellisense 0.26.3, C++ Intellisense 0.2.2 and Platformio IDE 1.10.0.
(Both the above Intellisenses are recommended, does that mean I need both?)
I have an Atmel 2560 project, about 10,000 lines spread over 22 source and 25 include files. Developing on Arduino Mega (and Veroboard!), also have final 2561 version on custom PCB.
The project compiles and runs (both CPUs).
When I open one particular file (just happens to be the largest) I get 11 “Problems” for 3 identiers, all are of the type 'identifier “LCD_LINE_LEN”. “LCD_LINE_LEN” occurs 180 times in this file
Intellisense does all the right things, I can goto Definitions, Declarations etc., even for the light bulbed ‘undefined’ identifiers.
I have a top level workspace with a .vscode dir, projects opened from Platformio Home open in the top level workspace, with their own .vscode dir. The c_cpp_properties.json files appear to be set up to compile for Mac, that confuses me a bit.
I’ve tried many things suggested in the forum, adding build flags, adding include lines to Intellisense config, but can’t get rid of the 11 problems.
Can anyone help with this?
Thanks in advance, Ken