Skip to content

Dart LSP fails to initialize #77

@StrongTheDev

Description

@StrongTheDev
Caused by:
    Server reset the connection
2026-04-03T10:48:37+03:00 INFO  [lsp] starting language server process. binary path: "C:\\Users\\adhue\\scoop\\apps\\flutter\\current\\bin\\dart.bat", working directory: "C:\\Users\\adhue\\Documents\\Projects\\Flutter\\appainter", args: []
2026-04-03T10:48:39+03:00 ERROR [crates/lsp/src/lsp.rs:531] cannot read LSP message headers
2026-04-03T10:48:39+03:00 ERROR [lsp] Server reset connection for a request "initialize" id 0
2026-04-03T10:48:39+03:00 ERROR [lsp] Shutdown request failure, server dart (id 26): server shut down
2026-04-03T10:48:39+03:00 ERROR [crates/lsp/src/lsp.rs:558] The pipe is being closed. (os error 232)
2026-04-03T10:48:39+03:00 ERROR [project::lsp_store] Failed to start language server "dart": initializing server dart, id 26

That's the log. it has been so for ages - i think since the year started. I thought there would be a fix immediately but i think it has really taken so long, so i'm making the issue now.

i'm using:

> flutter --version
Flutter 3.38.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision a0e9b9dbf7 (5 months ago) • 2025-11-11 15:00:09 -0600
Engine • hash 9ba28611ee8004751cbf039b10d0720ab4ebe521 (revision cb467e31a5) (4 months ago) • 2025-11-11 19:15:58.000Z
Tools • Dart 3.10.0 (build 3.10.0-290.4.beta) • DevTools 2.51.1

> dart --version
Dart SDK version: 3.10.0-290.4.beta (beta) (Thu Oct 30 11:12:42 2025 -0700) on "windows_x64"

In case of extra information i can provide, let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions