stripe / vscode-stripe

Stripe for Visual Studio Code
MIT License
123 stars 32 forks source link

Does not appear to be working with WSL. #137

Closed didinele closed 3 years ago

didinele commented 3 years ago

Consistently getting

Cannot activate the 'Stripe' extension because it depends on the 'Git' extension, which is not loaded. Would you like to reload the window to load the extension?

Reloading the Window does not fix the issue.

This appears to be because the extension is installed "locally", and cannot be installed into the WSL remote, as highlighted in the VSCode WSL documentation:

image

bbangert commented 3 years ago

Also doesn't work in Remote: SSH for the same reason.

nfm commented 3 years ago

I'm hitting this too in Remote: Containers.

GavinRay97 commented 3 years ago

I get this as well -- This extension looks really amazing but since I do all development within WSL for unix-tooling compatibility purposes (developing on Windows is painful), I don't seem to able to use it 🙁

Would be grateful for a fix

image

edicristofaro commented 3 years ago

I have this issue as well. Getting Cannot activate the 'Stripe' extension because it depends on the 'Git' extension, which is not loaded. Would you like to reload the window to load the extension? when installing locally - vscode january 2021 stable, wsl2. I also tried to work around by installing on the remote with wget https://github.com/stripe/vscode-stripe/releases/download/v1.7.0/vscode-stripe-1.7.0.vsix && code --install-extension vscode-stripe-1.7.0.vsix but it complains about not being installed locally. Doing that loops back to the original issue. Happy to do some logging if its useful.

imedadel commented 3 years ago

I get the same issue when using the remote extension on Ubuntu, so it's not just limited to WSL.

AgentIvan commented 3 years ago

Please explain in documentation how to use your extension in windows

didinele commented 3 years ago

Just tested today. Uncertain when it was fixed but I can confirm that it does work under WSL2 now!

If it also works for the folks that had trouble with it in SSH and containers (@bbangert, @nfm respectively) I can safely close this.

NicholasG04 commented 3 years ago

Fixed by #159 which removed dependency on VSCode Git extension.

vcheung-stripe commented 3 years ago

@didinele, thanks for confirming this in WSL! I'm glad it's fixed for you.

@bbangert @nfm and any folks still experiencing issues in SSH and containers, could you try again on the latest version?

nfm commented 3 years ago

Thanks @vcheung-stripe - I can now load and activate the extension under devcontainers!

I'm hitting a new issue now (getting a Failed to start 'stripe listen' process when clicking "Start streaming events", despite having stripe installed, authed and working from a VSCode terminal) but this might be misconfiguration on my part - will dig into it an open a new issue if I can't figure it out.

bbangert commented 3 years ago

@vcheung-stripe Just tried it, it works great via SSH now. Thanks!

lbragile commented 2 years ago

I can't seem to trigger new default event using the extension in VSCode WSL2:

image

Even though I see that it is properly listening: image

Also, events do get passed to it, so communication/connection is present.

Text for better accessibility:

Warning: Failed to retrieve supported triggered event list dynamically: Error: 14 UNAVAILABLE: No connection established
Triggering event checkout.session.completed...

Failed to trigger event: checkout.session.completed. No connection established

I would like to trigger events to avoid having to manually go through the process during development for every update.

Extension is enabled in WSL.

Any ideas?

EDIT:

Using the CLI stripe trigger checkout.session.completed appears to work as well (so it seems to be an extension related issue):

Setting up fixture for: checkout_session
Running fixture for: checkout_session
Setting up fixture for: payment_page
Running fixture for: payment_page
Setting up fixture for: payment_method
Running fixture for: payment_method
Setting up fixture for: payment_page_confirm
Running fixture for: payment_page_confirm
Trigger succeeded! Check dashboard for event details.