-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON parsing errors #57045
Comments
@qwertymodo Can you check if this comes from a different extension? |
Likely related to #56193 |
I didn't change any extensions between when it was working and when it started failing, the only change was a VS Code update. I just tested on my other computer running v1.25.1, and the problem does not occur. I will try updating this computer to v1.26.1 and see if I can reproduce, and if so I'll try with extensions disabled and report back. |
I'm not sure, but it's probably related to this issue: Togusa09/vscode-tmlanguage#14 |
Marking as duplicate of https://github.com/Togusa09/vscode-tmlanguage |
Agreed, that looks pretty much identical to what I'm dealing with here. |
Issue Type: Bug
One of the recent updates has caused several valid JSON files to begin displaying parsing errors. Many of these errors make no sense, sometimes the red syntax error indicator underlines a single character in a string (in that case, I confirmed the offending character to be a standard ASCII 'r', no weird Unicode going on or anything like that, the rest of the string was apparently fine).
Perhaps related, Intellisense doesn't seem to be properly updating, because the syntax highlighter still indicates errors even when the offending lines are removed, even to the point where I removed a line, saved the file, closed VS code, reopened, and the hovertext on the syntax error referenced the text which I had removed from the file (and which no longer existed anywhere else in the file).
First noticed the issue in v1.26.0, still exists in v1.26.1
Here is a short example file:
And here is what I see in VS Code when I open it:
Here's the mouseover text I get for the first "error" (the comma at the end of line 2), the others are similar.
VS Code version: Code 1.26.1 (493869e, 2018-08-16T18:38:57.434Z)
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (15)
The text was updated successfully, but these errors were encountered: