Skip to content

Help wanted: Not sure if this is a bug with blink.cmp or Pyrefly #2098

@michaelfortunato

Description

@michaelfortunato

Hi, I apologize for not having debugged further but this issue is really troubling me and I would like to know if others have had it.


In general, if I am in insert mode, my LSP will offer suggestions. However, if I go to normal mode and then go back to insert mode, my LSP will offer more sugggetsions. In other wrods, it seems like my lsp Pyrefly offers additional completions if I leave insert mode to normal mode, and go back to insert mode, than the completions Pyrefly offered the first time I was in insertmode.

In insert mode, (when I have auto completion on), I type in an identifier like Tenso, and expect pyrefly to suggest the full Tensor symbol and add the from torch import Tensor line.

However, such a completion happens only after I leave insert mode and Pyrefly observes that Tenso is not defined.

Screen.Recording.2025-07-31.at.9.40.48.PM.mov

facebook/pyrefly#806

The issue persists even if I re-request completion manually with ctrl-space--though doing so sometimes reveals new completions that my LSP computed.

How can I configure my LSP to properly update its state without leaving insert mode--so that it can give me new suggetions (ctrl-space did not work)

Possibly relates to #1491 and #2022

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