microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.13k stars 29.27k forks source link

Failed to parse Unexpected token (in JSON at posistion ...) #175301

Closed ohms90 closed 1 year ago

ohms90 commented 1 year ago

Type: Bug

The extension fails to parse the following line in the JSON properties file causing other functionality like F12 goto definition to fail. Removal of the backslash helps in parsing the file but F12 still does not work. Steps: press F12 or choose goto definition on a cpp funtion will report no definition found.

".../.platformio/packages/framework-arduinoststm32/variants/STM32F4xx/F411C(C-E)(U-Y)",

VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:35:30.018Z) OS version: Linux x64 5.15.0-67-generic Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz (8 x 3892)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|0, 1, 1| |Memory (System)|31.10GB (23.87GB free)| |Process Argv|--unity-launch --crash-reporter-id 0f89cf70-8c16-4278-8ef9-f42311b2b99c| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|cinnamon| |XDG_CURRENT_DESKTOP|X-Cinnamon| |XDG_SESSION_DESKTOP|cinnamon| |XDG_SESSION_TYPE|x11|
Extensions (48) Extension|Author (truncated)|Version ---|---|--- golangwithdidi|ald|0.0.1 project-manager|ale|12.7.0 cpp-helper|ami|0.3.1 code-gnu-global|aus|0.2.2 vscode-linux-binary-preview|bet|2.4.0 pep8-asm|dea|0.0.1 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|9.10.4 go|gol|0.37.1 better-cpp-syntax|jef|1.17.2 cmake-language-support-vscode|jos|0.0.9 vscode-esp8266fs|kas|1.1.0 kconfig|luv|1.0.3 linux-arm-none-eabi|met|0.1.2 linuxkerneldev|mic|0.5.1 Arduino|moo|0.0.4 vscode-dotnet-runtime|ms-|1.6.0 isort|ms-|2022.8.0 python|ms-|2023.2.0 vscode-pylance|ms-|2023.2.40 jupyter|ms-|2023.1.2010391206 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.14 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.275.1 remote-ssh|ms-|0.96.0 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.75.3 cmake-tools|ms-|1.13.45 cpptools|ms-|1.14.3 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.6.0 remote-explorer|ms-|0.2.0 vscode-serial-monitor|ms-|0.8.0 gremlins|nho|0.26.0 platformio-ide|pla|3.0.0 devicetree|plo|0.1.1 quicktype|qui|12.0.46 tabnine-vscode|Tab|3.6.38 cmantic|tde|0.9.0 python|tht|0.2.3 cmake|twx|0.0.17 jinja|who|0.0.8 clang-format|xav|1.9.0 json|Zai|2.0.2 html-css-class-completion|Zig|1.20.0 vscode-proto3|zxh|0.5.5 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vscaac:30438847 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyonecf:30548226 pyindex848:30662994 nodejswelcome1:30587005 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 vsctsb:30662444 vscodedisable:30660115 ```
aeschli commented 1 year ago

Can you provide the JSON file?

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!