vscode-chatgpt: Doesn't work with VSCode under WSL2
Set my Chromium path to /mnt/c/Program Files/Google/Chrome/Application/chrome.exe, and after hitting login button I get:

I believe in such case tmp path should be on mounted C drive, maybe make it configurable?
I do realize it might be an exotic way to use VS Code for you, but it’s the only way I use it and your extension seems to be the only way to use ChatGPT from inside VS Code at all 😛
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
Commits related to this issue
- Update readme addressing issues: #25, #115, #68, #70, #88 — committed to gencay/vscode-chatgpt by gencay a year ago
I also tried this extension today in WSL (Debian) and it works perfectly via built-in X11. I just installed Google Chrome in WSL using these commands:
sudo apt install wgetwget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.debsudo apt install ./google-chrome-stable_current_amd64.debAnd then just set the ‘Chromium Path’ in VSCode (ChatGPT extension) to ‘google-chrome’ (without quotes!)
__
It’s even easier than I described in #39 for a Remote (SSH) extension.
Can confirm the solution is working now! Closing the issue, thanks to everyone in the comments, and especially to the amazing extension author ❤️.
Thanks for your comments again @EzYDark. if somebody else could confirm your solution, I will add it to Readme. 🙏🏼
After restarting my laptop, everything seems to work fine right now. I list the detailed steps right here:
this is my environmental solution:
win10(VcXsrv Windows X Server) + ubuntu20.04(LXDE Linux desktop + google-chrome)
On win10:
INSTALL THE VCXSRV WINDOWS X-SERVER pls get the installer right here,https://sourceforge.net/projects/vcxsrv/files/latest/download
RUNNING THE X-SERVER DESKTOP
On Ubuntu(WSL2):
wsl-vpnkitv0.3 script uses gvisor-tap-vsock to provide network connectivity to the WSL 2 VM while connected to VPNs on the Windows host. This requires no settings changes or admin privileges on the Windows host. pls find the detailed info behind the following linkhttps://github.com/sakai135/wsl-vpnkit
Don’t forget set the proxy in WSL extension settings:
For me, installing Chrome on Ubuntu Server 22.04.1 inside WSL2 on Windows 11 worked. Thanks for the tip, I didn’t know it was possible to run Chrome on Ubuntu Server WSL2 without a GUI!