Environment
- Platform (select one):
- 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_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.
Additional Context
The Claude Code is installed with curl -fsSL https://claude.ai/install.sh | bash.
Environment
Bug Description
When the
claudeis launched withCLAUDE_CONFIG_DIRenv var, the JetBrains plugin complains that it cannot launch Claude Code, and theclaudecommand itself can't locate the IDE as well.Steps to Reproduce
claude:claude.CLAUDE_CONFIG_DIRis active.Expected Behavior
claudefrom within the IDE integrated terminal, it can detect the IDEclaudefrom within the external terminal and running/ide, it can detect the IDE.Actual Behavior
Additional Context
The Claude Code is installed with
curl -fsSL https://claude.ai/install.sh | bash.