Skip to content

phpantom_lsp 0.7.0 in Zed times out on go-to-definition and diagnostics #86

@Emilvooo

Description

@Emilvooo

PHPantom version

0.7.0

Installation method

Zed extension (auto-downloaded)

Operating system

macOS aarch64 (Apple Silicon)

Editor

Zed

Bug description

This happens in a private Laravel project opened in Zed. cmd-click / go-to-definition sometimes stops working, and diagnostics stop updating until the language server is restarted. It seems easier to trigger when I jump to definitions repeatedly in a short time. Zed is using the phpantom_lsp 0.7.0 extension binary.

Steps to reproduce

  1. Open a Laravel project in Zed with the phpantom_lsp extension enabled.
  2. Use a normal Composer / PSR-4 autoload setup, for example:
{
  "autoload": {
    "psr-4": {
      "App\\": "app/"
    }
  }
}
  1. Open a PHP file with references to application classes, methods, or functions.
  2. Use cmd-click / go-to-definition repeatedly, especially several times in quick succession.
  3. After some time, go-to-definition stops working and diagnostics stop updating.
  4. Restarting the language server makes it work again temporarily.

Error output or panic trace

2026-04-14T14:44:34+02:00 INFO [lsp] starting language server process. binary path: "/Users//Library/Application Support/Zed/extensions/work/phpantom/phpantom_lsp-0.7.0/phpantom_lsp"
2026-04-14T14:48:45+02:00 ERROR [lsp] Cancelled LSP request task for "textDocument/diagnostic" id 487 which took over 120s
2026-04-14T14:48:45+02:00 WARN [project::lsp_store] Get diagnostics via phpantom_lsp failed: Request timed out
2026-04-14T14:48:45+02:00 ERROR [lsp] Cancelled LSP request task for "workspace/diagnostic" id 488 which took over 120s
2026-04-14T14:48:45+02:00 ERROR [project::lsp_store] Timeout during workspace diagnostics pull
2026-04-14T14:48:47+02:00 ERROR [lsp] Cancelled LSP request task for "textDocument/definition" id 515 which took over 120s
2026-04-14T14:48:47+02:00 WARN [project::lsp_store] Get definition via phpantom_lsp failed: Request timed out
2026-04-14T14:48:47+02:00 ERROR [project::lsp_store] Error handling response for request GetDefinitions { position: PointUtf16 { row: 59, column: 37 } }: Get definition via phpantom_lsp failed: Request timed out
2026-04-14T14:50:26+02:00 ERROR [lsp] Cancelled LSP request task for "textDocument/documentHighlight" id 1091 which took over 120s
2026-04-14T14:50:26+02:00 WARN [project::lsp_store] Get document highlights via phpantom_lsp failed: Request timed out
2026-04-14T14:50:27+02:00 ERROR [lsp] Cancelled LSP request task for "textDocument/codeAction" id 1092 which took over 120s
2026-04-14T14:50:27+02:00 WARN [project::lsp_store] Get code actions via phpantom_lsp failed: Request timed out
2026-04-14T14:52:18+02:00 ERROR [lsp] Cancelled LSP request task for "textDocument/references" id 1213 which took over 120s
2026-04-14T14:52:18+02:00 WARN [project::lsp_store] Find all references via phpantom_lsp failed: Request timed out
2026-04-14T14:58:40+02:00 WARN [project::lsp_store] Get definition via phpantom_lsp failed: Server reset the connection
2026-04-14T14:58:40+02:00 WARN [project::lsp_store] Get diagnostics via phpantom_lsp failed: Server reset the connection

.phpantom.toml

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions