[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
- 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" "$@"
- Add the script file to the PATH to override the original
claude. - Specify the script file path to the JetBrains IDE Settings > Tools > Claude Code [Beta] > General > Claude command
- Change the working directory to where the custom
CLAUDE_CONFIG_DIRis active.
Expected Behavior
- When executing the
claudefrom within the IDE integrated terminal, it can detect the IDE - When executing the
claudefrom 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.
9 Comments
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.
Still occurs
I am facing the same issue for some weeks now!
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.
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.
Brother, has this problem been resolved?
has this problem been resolved?
@weidongpo I don't know. I no longer use jb plugin for claude code anymore
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.