In my platformio.ini
i’m using build_flags to control integration of certain configuration files during compile time:
build_flags =
-include "src/hal/${PIOENV}.h"
-include "src/paxcounter.conf"
In c_cpp_properties.json
this causes a json error:
"compilerPath": "C:/Users/FooBar/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc.exe -Wno-old-style-declaration -include src\hal\lopy4.h -include src\paxcounter.conf -w -mfix-esp32-psram-cache-issue -Os -Wall -nostdlib -Wpointer-arith -Wno-error=unused-but-set-variable -Wno-error=unused-variable -mlongcalls -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -Wno-error=deprecated-declarations -Wno-error=unused-function -Wno-unused-parameter -Wno-sign-compare -fstack-protector -fexceptions"
}
[json] Invalid escape character in string. [261]
Besides that the generated c_cpp_properties.json
has no property version which results to another error.