Skip to content

InfoView stops updating afer "Lean 4: Resstart Server" command #58

Closed

Description

@lovettchris

Steps:

  1. install vscode lean4 extension v0.0.39
  2. load a lean4 folder
  3. check everything works fine, including the infoview.
  4. run Lean 4: Resstart Server" command
  5. now move caret around the .lean file and check the infoview still works.

Someones you see this output:

Watchdog error: cannot find open document 'file:///d%3A/Temp/lean_examples/Foo/Foo.lean'
[Error - 11:57:39 AM] Connection to server got closed. Server will not be restarted.

and the infoview stops updating.

I'm wondering if this needs to be re-initialized after client restart since the initializeResult will be different after server restart...

await webviewPanel.api.initialize(this.client.initializeResult, this.getLocation(editor))

Activity

  1. gebner commented on Oct 25, 2021

    @gebner
    Member

    Alex Bentkamp has reported a similar issue on zulip:

    Any ideas where this message could come from?

    Cannot send message to unknown document 'file:///home/alex/Projects/verified-optimization/code/DCP/DCP/Syntax/ProblemMacroMData.lean':
    {"params":{"uri":"file:///home/alex/Projects/verified-optimization/code/DCP/DCP/Syntax/ProblemMacroMData.lean","sessionId":"7188571717961512369"},"method":"$/lean/rpc/keepAlive","jsonrpc":"2.0"}
    

    I am on lean4:nightly-2021-10-18, VSCode, Ubuntu. These messages pop up constantly in VSCode's "Output" panel.

  2. lovettchris commented on Oct 25, 2021

    @lovettchris
    Author

    Interesting, I wonder if my fix to await webviewPanel.api.initialize in my PR helps with this at all...

  3. Vtec234 commented on Nov 16, 2021

    @Vtec234
    Member

    Looks like this has been fixed in our recent changes. If anyone is still observing the issue, please reopen.

  4. lovettchris commented on Nov 16, 2021

    @lovettchris
    Author

    Agreed

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions