platformio/platformio-core

Invalid escape character in c_cpp_properties.json

Open

#4.440 geöffnet am 11. Okt. 2022

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (791 Forks)batch import
help wantedintegration

Repository-Metriken

Stars
 (7.329 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 109T 16h) (5 gemergte PRs in 30 T)

Beschreibung

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:

image

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!

Contributor Guide