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

Not working with WSL #337

Open
davidwparker opened this issue Jul 24, 2021 · 5 comments
Open

Not working with WSL #337

davidwparker opened this issue Jul 24, 2021 · 5 comments

Comments

@davidwparker
Copy link

I just installed the Stripe Extension.

On the sidebar, it asks me to sign in to the Stripe CLI.

I have the Stripe CLI installed within WSL (Ubuntu). I am logged in there.

But the sidebar is not showing anything other than asking me to sign in, or to set a custom path.

What should I be doing?

Thanks!

@gracegoo-stripe
Copy link
Contributor

gracegoo-stripe commented Aug 2, 2021

Hey @davidwparker, sorry for the late response. Do you have the Stripe extension installed client side or the the WSL-side?

Alternatively, if you know the path at which the CLI Is located within WSL, you can set that as your custom path in the panel.

@davidwparker
Copy link
Author

@gracegoo-stripe - It's on the WSL (ubuntu) side.

> which stripe
\usr\local\bin\stripe

I don't seem to be able to set it correctly- what should the proper custom path be? Thanks

@christopherliedtke
Copy link

christopherliedtke commented Feb 13, 2022

@gracegoo-stripe - It's on the WSL (ubuntu) side.

> which stripe
\usr\local\bin\stripe

I don't seem to be able to set it correctly- what should the proper custom path be? Thanks

Same problem for me. Any solution yet?

@christopherliedtke
Copy link

christopherliedtke commented Feb 15, 2022

@gracegoo-stripe - It's on the WSL (ubuntu) side.

> which stripe
\usr\local\bin\stripe

I don't seem to be able to set it correctly- what should the proper custom path be? Thanks

Ok, I may have found a solution. If you start vscode through wsl (e.g. in terminal navigate to your project and code .) the stripe extension is working without a problem.

@jprivett
Copy link

jprivett commented Feb 21, 2024

If you have Stripe installed in WSL and you can navigate to /usr/local/bin and you have a stripe file there then this will work for you. In the Local-Installed Extensions window of vscode click the settings icon for Stripe (the gear/cog icon). Then click the Edit in settings.json; this will open a new tab with you settings.json file. Find the line in your settings json file that reads "stripe.cliInstallPath". I am running Ubuntu 20.04 in wsl so my line looks like this "stripe.cliInstallPath": "//wsl.localhost/Ubuntu-20.4/usr/local/bin", then back on the settings tab for stripe in vscode make sure the field under Stripe:Cli Install Path (modified in User) is blank.

This should get it working for you. Hope this helps. If you have any questions let me know and I will try my best to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants