Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension not working #818

Open
LaveshChaudhari opened this issue May 7, 2024 · 5 comments
Open

extension not working #818

LaveshChaudhari opened this issue May 7, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@LaveshChaudhari
Copy link

LaveshChaudhari commented May 7, 2024

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

  • Git Graph Extension Version: 1.13.0
  • Visual Studio Code Version: 1.37.1
  • Operating System: macOs

⚠ 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.

@LaveshChaudhari LaveshChaudhari added the bug Something isn't working label May 7, 2024
@ssteinerx
Copy link

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.

  • NOTE: I'm using the code-insider version. If you're using just code, use that below, but make sure you're not killing other code things that aren't VSCode things.

  • NOTE: You could just reboot and GOTO No Leftovers, but seeing the orphan chunklets confirms that the problem is the same-ish as the one that appears to be causing the issue for me.

  • Quit VSCode -- all the way out.

Check for Leftovers:

$ pgrep -l code-insider
612285 code-insiders
612294 code-insiders
...and so forth, on and on.
  • If there are none, GOTO No Leftovers.

  • Kill them all:

$ killall code-insiders

  • If you've tried a couple of times and they just won't die:

$ sudo killall code-insiders

  • If sudo killall still didn't kill them still...reboot. Desperate times and all that. GOTO No Leftovers.

GOTO Check for Leftovers.

No Leftovers:

  • Remove the webbish cache with the broken chunks:

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

  • Open VSCode, go to Git (Ctrl-Shift-G), press the Git Graph icon and marvel at the beauty that is Git Graph.

  • Keep Calm and Carry On.

END.

@clegendre
Copy link

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

@ssteinerx
Copy link

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
Copy link

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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants