[BUG] JetBrains plugin: "Cannot launch Claude Code" error

Status Closed — not planned
Maintainer reply None cached
Activity 9 comments · opened Aug 19, 2025 · closed Feb 1, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.84 (Claude Code)
  • Operating System: 15.6 (24G84)
  • Terminal: n/a

Bug Description

When the claude is launched with CLAUDE_CONFIG_DIR env var, the JetBrains plugin complains that it cannot launch Claude Code, and the claude command itself can't locate the IDE as well.

Steps to Reproduce

  1. Make a shell script that proxies the real claude:
#!/usr/bin/env bash

claude=~/.local/bin/claude  # Native install location
cwd_abs=$(pwd -P)

for d in \
  ~/work \
; do
  d_abs=$(cd "$d" && pwd -P)
  if [[ $cwd_abs = $d_abs || $cwd_abs = "$d_abs"/* ]]; then
    export CLAUDE_CONFIG_DIR=~/.claude-work
    exec "$claude" "$@"
  fi
done
exec "$claude" "$@"
  1. Add the script file to the PATH to override the original claude.
  2. Specify the script file path to the JetBrains IDE Settings > Tools > Claude Code [Beta] > General > Claude command
  3. Change the working directory to where the custom CLAUDE_CONFIG_DIR is active.

Expected Behavior

  • When executing the claude from within the IDE integrated terminal, it can detect the IDE
  • When executing the claude from within the external terminal and running /ide, it can detect the IDE.

Actual Behavior

  • It can't detect the IDE.
  • Launching Claude Code from the IDE button (top-right), "Cannot launch Claude Code" is shown.

<img width="315" height="101" alt="Image" src="https://github.com/user-attachments/assets/9215dfd3-a5a9-49fd-98c3-88311dfca2c3" />

Additional Context

The Claude Code is installed with curl -fsSL https://claude.ai/install.sh | bash.

View original on GitHub ↗

9 Comments

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

zzJinux · 8 months ago

Still occurs

aalamri-mngdp · 8 months ago

I am facing the same issue for some weeks now!

github-actions[bot] · 7 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

marcindulak · 7 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

weidongpo · 7 months ago
我已经遇到同样的问题好几周了!

Brother, has this problem been resolved?

weidongpo · 7 months ago
至今仍存在

has this problem been resolved?

zzJinux · 6 months ago

@weidongpo I don't know. I no longer use jb plugin for claude code anymore

github-actions[bot] · 6 months ago

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.