Skip to content

Pyrefly locks Neovim after type checking is complete. #1265

@stephenprater

Description

@stephenprater

Describe the Bug

  1. Use Pyrefly in Neovim via any method.
  2. In another terminal open top or equivalent
  3. Verify that Neovim has started a Pyrefly subprocess.
  4. The type check will run and you should see a spike in CPU usage for pyrefly.
  5. Navigate around the code base to a file with an error - within a few seconds the UI will freeze for a few seconds.
  6. Sometimes the UI will hang unrecoverable.

You can do LspRestart pyrefly repeatedly until you hit problem 6.

This seems specific to the Pyrefly LSP. "Basedpyright" reports more extensive errors, but does not lock the UI.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

Using LSP mode via nvim-lspconfig

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions