Skip to content

[Bug]: SyntaxError: Unexpected end of JSON input #309

@SyedMuradAliShah

Description

@SyedMuradAliShah

Extension Version

1.0.1

PHP Binary

Local PHP

Operating System

Windows

What happened?

Whenever I format document, a blade file, or a controller and it has any syntax (sometimes), I see the error notification "Unexpected end of JSON input."

2025-03-07 15:05:36.611 [error] SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at c:\Users\adsit\.vscode\extensions\laravel.vscode-laravel-1.0.1\dist\extension.js:41916:17
2025-03-07 15:05:36.617 [error] SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at c:\Users\adsit\.vscode\extensions\laravel.vscode-laravel-1.0.1\dist\extension.js:41916:17

Developer tool console log:

Image

Debug Info
{
"os": "win32",
"arch": "x64",
"php_version": "8.3.0",
"laravel_version": "10.48.28",
"php_command": "php"
}

SyntaxError: Unexpected end of JSON input

Mimimal Code Sample

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions