Skip to content

Pyrefly locks Neovim after type checking is complete. #1265

Closed as not planned

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

Activity

  1. changed the title [-]Pyrefly locks Neovim after type checking is done.[/-] [+]Pyrefly locks Neovim after type checking is complete.[/+] on Oct 8, 2025
  2. indiv0 commented on Oct 15, 2025

    @indiv0

    Seeing this as well in VS Code.

  3. yangdanny97 commented on Nov 4, 2025

    @yangdanny97
    Collaborator

    Sorry this somehow slipped by - could you please share a bit more info about what Pyrefly version you're on & what projects you're checking?

    I'm curious to know if this still repros. We did ship a fix to reduce indexing time & improve perf in recent weeks, not sure if that fixed it.

  4. added
    language-serverIssues specific to our IDE integration rather than type checking
    and removed on Dec 15, 2025
  5. yangdanny97 commented on Feb 4, 2026

    @yangdanny97
    Collaborator

    Closing due to lack of repro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    language-serverIssues specific to our IDE integration rather than type checkingperformancequestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions