Skip to content

Formatter timeout #149

@rtorralba

Description

@rtorralba

PHPantom version

v0.8.0-dirty: PHP 8.3

Installation method

Other (describe in Additional Context)

Operating system

Linux x86_64

Editor

VS Code

Bug description

When I try to format document it doens't make and shows the following error:

[Error - 8:20:04 AM] Formatting failed: Formatter timed out after 10000ms [Error - 8:20:04 AM] Request textDocument/formatting failed. Message: Formatting failed: Formatter timed out after 10000ms Code: -32603 �[2m2026-06-05T08:20:10.480315Z�[0m �[31mERROR�[0m �[2mtower_lsp::transport�[0m�[2m:�[0m failed to decode message: unable to parse JSON body: expected value at line 1 column 1 [Info - 8:20:10 AM] Connection to server got closed. Server will restart.

Steps to reproduce

Just open a php file and select format document from contextual menu or Ctrl+Shift+f

Error output or panic trace

[Error - 8:20:04 AM] Formatting failed: Formatter timed out after 10000ms
[Error - 8:20:04 AM] Request textDocument/formatting failed.
  Message: Formatting failed: Formatter timed out after 10000ms
  Code: -32603 
�[2m2026-06-05T08:20:10.480315Z�[0m �[31mERROR�[0m �[2mtower_lsp::transport�[0m�[2m:�[0m failed to decode message: unable to parse JSON body: expected value at line 1 column 1
[Info  - 8:20:10 AM] Connection to server got closed. Server will restart.

.phpantom.toml

default / no config file

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions