claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Claude COde doesn't work on WSL2, WHY ??????????

Open younes-io opened this issue 11 months ago • 8 comments

I am on WSL2, VS Code/Cursor, and I cannot get this to work !!!!

Image

younes-io avatar May 28 '25 18:05 younes-io

@bcherny , @8enmann : could you please help on this?

younes-io avatar May 28 '25 18:05 younes-io

Yes it was working before the auto update

andrewlewinphsa avatar May 28 '25 18:05 andrewlewinphsa

This has just stopped working for me also, it linked fine with 1.0.0, but now in 1.0.4 it refuses to relink after I changed some things.

PinkishCow avatar May 28 '25 21:05 PinkishCow

I have this issue too. I see it "connected" when looking at /status but when using /ide the IDE doesn't appear. tried this in cursor and windsurf, neither work.

The IDE integration features don't work at all now. using WSL2 btw.

this happened in 1.0.4 @ashwin-ant

AnrokX avatar May 29 '25 03:05 AnrokX

@ltawfik @np-anthropic : could you please help on this blocking issue??

younes-io avatar May 29 '25 06:05 younes-io

same problem here

opus131 avatar May 29 '25 08:05 opus131

I just installed it and yeah it does not work, the extension is installed properly and visible within Cursor, but it says there's no available IDEs detected within claude.

AlanAltonchi avatar May 29 '25 08:05 AlanAltonchi

Dupe here w/ some additional details: https://github.com/anthropics/claude-code/issues/1399

mrcodechef avatar May 29 '25 13:05 mrcodechef

Thanks for the report, and sorry for the inconvenience! We have found the issue and submitted a fix, should be available in the next release!

hackyon-anthropic avatar May 29 '25 15:05 hackyon-anthropic

And it's fixed everybody !!!

Image

New version is out => https://www.npmjs.com/package/@anthropic-ai/claude-code?activeTab=versions

younes-io avatar May 29 '25 17:05 younes-io

still happens in windows with wsl2 @hackyon-anthropic

thorizer avatar Jun 23 '25 03:06 thorizer

still happens in windows with wsl2 @hackyon-anthropic

Same for me. Using Cursor 1.1.5, Claude Code 1.0.31 with WSL

scriptless avatar Jun 23 '25 21:06 scriptless

still happens in windows with wsl2 @hackyon-anthropic

Same here

Hartha-aloufi avatar Jul 05 '25 13:07 Hartha-aloufi

  1. Connect to WSL: Use the shortcut Ctrl+Shift+P and click Connect to WSL, or enter code .. in the WSL terminal to launch the IDE. Your IDE will then connect to WSL, and you'll see WSL: Ubuntu displayed in the bottom-left corner.

  2. Install Claude Code Extension: In the IDE's extensions panel, install Claude Code for VS Code for WSL (not locally). Once installed, you'll see the Claude icon in the top-right corner. Click the icon to automatically open Claude Code and connect it to the IDE.

moll33er avatar Jul 08 '25 01:07 moll33er

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 14 '25 14:08 github-actions[bot]