[BUG] JetBrains plugin cannot launch Claude Code on Windows when username contains spaces

Resolved 💬 3 comments Opened Apr 26, 2026 by Clemenssss Closed Apr 30, 2026

Preflight Checklist

  • [x] I have searched existing issues for similar behavior reports
  • [x] This report does NOT contain sensitive information (API keys, passwords, etc.)

Type of Behavior Issue

Other unexpected behavior

What You Asked Claude to Do

Environment:

  • OS: Windows 10
  • PyCharm: 2025.2.4
  • Claude Code: 2.1.114
  • Plugin version: latest

Problem:
Username contains a space ("Clemens Li"). When clicking the Claude button,
PowerShell opens and executes:

"C:\Users\Clemens Li\.local\bin\claude.exe"

PowerShell treats this as a string (echoes the path) instead of executing it.
Result: "Cannot launch Claude Code" popup appears.

Related to: #13041 (same root cause, invalid path handling on Windows)

What Claude Actually Did

I don't know. After clocking calude code icon, a claude code powershell ist opened.
After manually CD and execute, claude starts:
Lernen Sie das neue plattformübergreifende PowerShell kennen – https://aka.ms/pscore6

PS C:\Users\Clemens Li\PycharmProjects\ARVFahrtenbuchTermine> "C:\Users\Clemens Li\.local\bin\claude.exe"
C:\Users\Clemens Li\.local\bin\claude.exe
PS C:\Users\Clemens Li\PycharmProjects\ARVFahrtenbuchTermine> cd "C:\Users\Clemens Li\.local\bin\"
PS C:\Users\Clemens Li\.local\bin> claude.exe

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ Welcome back Clemens! │ Run /init to create a CLAUDE.md file with instructions for Claude │
│ │ ───────────────────────────────────────────────────────────────── │
│ ▐▛███▜▌ │ Recent activity │
│ ▝▜█████▛▘ │ No recent activity │
│ ▘▘ ▝▝ │ │
│ Sonnet 4.6 · API Usage Billing · Clemens‘s │ │
│ Individual Org │ │
│ ~\.local\bin │ │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯ 
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
? for shortcuts

Expected Behavior

claude should start automatically without error popup

Files Affected

Permission Mode

Accept Edits was ON (auto-accepting changes)

Can You Reproduce This?

Yes, every time with the same prompt

Steps to Reproduce

start pycharm. Click claude button

Claude Model

Sonnet

Relevant Conversation

Impact

Critical - Data loss or corrupted project

Claude Code Version

2.1.114 (Claude Code)

Platform

Anthropic API

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗