mhutchie / vscode-git-graph

View a Git Graph of your repository in Visual Studio Code, and easily perform Git actions from the graph.
https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph
Other
1.89k stars 243 forks source link

extension not working #818

Open LaveshChaudhari opened 2 months ago

LaveshChaudhari commented 2 months ago

Bug Description: In VsCode git graph extension when i try to open the extension it is not opening. i tried to enable and disable the extension multiple times but still getting the same issue . even after uninstalling and installing the extension several times again still getting the same issue at least provide a good understandable error message if something is wrong from my side .

Steps to reproduce the behaviour:

  1. Go to 'Git graph extension open it'
  2. see error message : " Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.."

Expected Behaviour: should open after enabling and disabling multiple times

Environment

⚠ Please make sure you complete all of the required sections of this template. Without this required information, it will be harder to replicate this bug, and cause additional delays in resolving it.

ssteinerx commented 1 month ago

I have been having this issue on and off for a while.

Whatever causes it also seems to leave orphan VSCode code chunklets running that will make sure it doesn't work and also helpfully leaves behind dysfunctional cached code chunks that will make sure it will continue to not work, even if you reboot!

In Ubuntu, this fixes it for me. I don't use Windows or OS X.

Check for Leftovers:

$ pgrep -l code-insider
612285 code-insiders
612294 code-insiders
...and so forth, on and on.

$ killall code-insiders

$ sudo killall code-insiders

GOTO Check for Leftovers.

No Leftovers:

$ rm -r ~/.config/Code/CachedData

END.

clegendre commented 1 month ago

Thank you! Happened to me today, on Windows: Cache location: ~\AppData\Roaming\Code\CachedData

ssteinerx commented 1 month ago

Thank you! Happened to me today, on Windows: Cache location: ~\AppData\Roaming\Code\CachedData

And killing the stray processes and removing the cached data worked on Windows?

clegendre commented 1 month ago

Thank you! Happened to me today, on Windows: Cache location: ~\AppData\Roaming\Code\CachedData

And killing the stray processes and removing the cached data worked on Windows?

Yep, killing all code processes first, then removing the cached data, worked on Windows 👍

ssteinerx commented 1 month ago

@mhutchie Would you like a pull request to add a markdown file with these instructions tweaked up for Linux and Windows if @clegendre could help with that part?

I don't use OS X any more, so, even though it's pretty Linux compatible-ish, I can't test the instructions there.