[BUG] Cannot launch Claude Code on Windows 10 + WSL2 - PhpStorm plugin 0.1.14-beta
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The Claude Code PhpStorm plugin (0.1.14-beta) fails to integrate with
the IDE on Windows 10 + WSL2. The floating toolbar does not appear on
code selection, and CLAUDE_CODE_SSE_PORT is never injected into the
WSL terminal, meaning /ide finds no IDE.
The plugin appears to perform a Windows-native check for the claude
command at startup, bypassing the WSL PATH entirely. Since it cannot
find claude as a Windows-native executable, it never starts the SSE
server, causing a cascade of failures:
- CLAUDE_CODE_SSE_PORT never injected into the terminal
- /ide command finds no IDE
- Floating toolbar on code selection does not appear
What Should Happen?
The plugin should detect the claude command available in the WSL
environment, start the SSE server, inject CLAUDE_CODE_SSE_PORT into
the terminal, and enable the floating toolbar and /ide integration.
Error Messages/Logs
Steps to Reproduce
- Install Claude Code CLI in WSL2 (Ubuntu-20.04)
- Install Claude Code plugin 0.1.14-beta in PhpStorm on Windows 10
- Open a project located in WSL2 filesystem
- Open a PHP file and select code
- Observe: floating toolbar does not appear
- In the integrated WSL terminal: echo $CLAUDE_CODE_SSE_PORT
- Observe: returns empty — SSE server never started
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.114
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
Everything tried without success:
- "Claude command" field set to: claude, wsl claude,
wsl /home/my_username/.local/bin/claude, /usr/local/bin/claude,
C:\bin\claude.bat
- Windows .bat wrapper in C:\bin\ added to Windows PATH
- WSL wrapper at /usr/local/bin/claude (chmod +x) pointing to
/home/my_username/.local/bin/claude
- /home/my_username/.local/bin added to ~/.bashrc PATH
- WSL localhost path changed to \\wsl.localhost\Ubuntu-20.04
- Full Windows restart between each attempt
claude --version works correctly from both cmd.exe and WSL terminal.
Claude Code works fine when launched manually from WSL terminal —
only the PhpStorm IDE integration is broken.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗