Skip to content

"LSP server (ruff) exited with status 2" and "LSP server (ty) exited with status 2" problem #735

@savagejin-dev

Description

@savagejin-dev

I'm using the lsp plugin, and both ruff and ty are working fine. However, when the path of the opened file contains non-ASCII characters, error messages such as "LSP server (ruff) exited with status 2" and "LSP server (ty) exited with status 2" appear, and both ruff and ty stop working. This problem only occurs in the windows11 system, and everything works normally in archlinux.

I initially guessed that this might be a system encoding issue, as my Arch Linux is set to UTF-8, while Windows 11 uses CP936. I tried enabling UTF-8 support in Windows 11, but the problem persists. Could any friends provide a solution or insight to resolve this issue? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions