`/ide` command fails with "onInstall is not defined" error
Status Fixed / completed
Reported on v2.1.21
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 11 comments · opened Jan 28, 2026 · closed Mar 10, 2026
Description
Running the /ide command in Claude Code fails with the error onInstall is not defined.
Steps to Reproduce
- Open Claude Code in terminal
- Run
/idecommand - Error occurs immediately
Error Message
ERROR onInstall is not defined
file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:4084:2901
- Su2 (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:4084:2901)
- m6 (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:62981)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76041)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76830)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76020)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
- WAA (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:76020)
- u$ (file:///Users/terry/.nvm/versions/node/v22.14.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:597:75921)
Environment
- Claude Code version: 2.1.21 (latest)
- Node.js version: v22.14.0
- OS: macOS (Darwin 25.2.0)
- Installation method: npm global install
Expected Behavior
The /ide command should successfully connect Claude Code to the JetBrains IDE.
Actual Behavior
Command fails immediately with onInstall is not defined error.
Workaround
Using Cmd+Esc from within the JetBrains IDE works as an alternative to connect Claude Code with IDE integration.
11 Comments
same problem on Linux
same problem too
same problem
I also found that clicking the Claude Code icon in VS Code showed the command 'claude-vscode.editor.openLast' not found. Reinstalling the Claude Code extension fixed it. After restarting VS Code, the icon worked normally again, and /ide in the Claude Code terminal also worked (I also manually updated the Claude Code in the terminal)
I also found that clicking the Claude Code icon in VS Code showed the command 'claude-vscode.editor.openLast' not found. Reinstalling the Claude Code extension fixed it. After restarting VS Code, the icon worked normally again, and /ide in the Claude Code terminal also worked (I also manually updated the Claude Code in the terminal)
Same problem with VS Code on Mac
Same issue on ubuntu with node v22
Same issue with VSCode on Ubuntu 22.04. Solved after connecting to IDE first inside vscode's integrated terminal.
@millaker thanks - this fixed it! too bad they don't allow contributions, this doesn't seem like a super hard patch
This is still happening when using
/idefrom the terminal outside of the IDE. Happening in Windows with VSCode.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.