Skip to content

Infoview does not update while processing #162

Closed

Description

@gebner

When a file is still processing, the infoview only shows the unhelpful "Processing file..." message. It should show the available diagnostics and tactic state for already-processed regions.

Activity

  1. rish987 commented on Oct 9, 2021

    @rish987
    Collaborator

    From #165:

    AFAICT it's an upstream Lean 4 server issue. It seems to not be responding to our Lean.Widget.getInteractiveDiagnostics RPC calls until the file is fully processed, so many of our async calls are left hanging indefinitely.

    One workaround we could use is to put a timer on util.a_request after which it calls the handler with error, and let it fall back to the plain diagnostics. But a server fix, at least to respond error rather than not respond at all, is certainly needed.

  2. gebner commented on Oct 9, 2021

    @gebner
    CollaboratorAuthor

    Thanks for debugging that! Would it be enough if the getInteractiveDiagnostics command would return once Lean is done with the corresponding line (but not necessarily the whole file)? Or would the infoview still get stuck?

  3. rish987 commented on Oct 9, 2021

    @rish987
    Collaborator

    We don't send the request at all if we detect the line is processing. So as long as it's responsive after fileProgress indicates that line is done processing, that will work. Though ideally it seems it should always be responsive regardless.

  4. added
    bug
    infoview
    on Oct 11, 2021
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

    buginfoview

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions