leanprover / leanprover/vscode-lean4

Error loading webview: Error: Could not register service workers: InvalidStateError

Open
#206 2 comments 0 reactions 1 assignee View on GitHub

@marianaalanis93 is already working on this.

Since Aug 18, 2022.

Dominant language
TypeScript
Stars
313
Forks
104
Avg merge
1h 56m
Merged PRs (30d)
1

Description

  1. clone https://github.com/leanprover/lean4-samples
  2. cd HelloWorld
  3. code .

Wait for infoview to populate with the correct messages. Close VS code and run code . again quickly. THe second invocation of VS code often fails with this error:

image

Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

This happens on Windows, not sure if it happens on other platforms. But it seems to be reported quite a bit in VS code issues, and I see some people also reporting similar issues on Linux, see https://github.com/microsoft/vscode/issues/125993#issuecomment-912439561 but vscode is not claiming ownership of this type of issue. So, I wonder if our extension can do anything better to make the webview more robust ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.