Skip to content

SourceKit Language Server stops response everytime after seconds of use #646

Closed
@MiKayule

Description

@MiKayule

Describe the bug
Everytime I open a Swift code file, vscode-swift start running, after a few seconds of typing codes, the SourceKit Language Server won't response anymore. Only kill the sourcekit-lsp.exe with Task Manager, change LSP settings to restart the language server or restart VSCode can fix it for a moment, then it get unresponsive again.

Even during the period it runs normally, I often feel it laggy, which feels like it got unresponsive and recovered by itself after one or two seconds, but finally it will get completely unresponsive.

To Reproduce
Steps to reproduce the behavior:

  1. Open an one-file Swift source
  2. Type some code, use the auto completion like usual
  3. Everything get stucked, e.g. the red line won't disappear even after being fixed
  4. In trace window, there's only a lot of message of "Sending notification" and "Sending request", but no "Received" messages anymore

Expected behavior
Work normally just like language servers for other languages

Environment

  • OS: Windows 11 23H2 (22631.2715)
  • Swift version (output of swift --version): Swift version 5.9.1 (swift-5.9.1-RELEASE) Target: x86_64-unknown-windows-msvc
  • Visual Studio Code version: 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e)
  • vscode-swift version: v1.7.0

Additional context
I set "swift.sourcekit-lsp.trace.server" to "messages", here's a screenshot of the situation
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsourcekit-lspSourceKit-LSP issuewindowsIssue specific to Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions