platformio/platformio-core
在 GitHub 查看Invalid escape character in c_cpp_properties.json
Open
#4,440 创建于 2022年10月11日
help wantedintegration
仓库指标
- Star
- (7,329 star)
- PR 合并指标
- (平均合并 109天 16小时) (30 天内合并 5 个 PR)
描述
VSCode is suddenly unhappy with c_cpp_properties.json. My platformio.ini file contains the build flag
-DTEMPLATE_PLACEHOLDER="\'\~\'"
which yields to the following in c_cpp_properties.json:

with the message "Invalid escape character in string. jsonc(261)"
Everything compiles just fine but I have to manually fix c_cpp_properties.json in order for Intellisense to work properly. I did not have this problem before but I'm not sure what caused it. Any help appreciated!