`/ide` command fails with "onInstall is not defined" error

Status Fixed / completed
Reported on v2.1.21
Maintainer reply None cached
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

  1. Open Claude Code in terminal
  2. Run /ide command
  3. 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.

View original on GitHub ↗

11 Comments

RZ-Q · 6 months ago

same problem on Linux

Awj2021 · 6 months ago

same problem too

ayushkumarshah · 6 months ago

same problem

RZ-Q · 6 months ago
same problem too

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)

RZ-Q · 6 months ago
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)

LostInBrittany · 6 months ago

Same problem with VS Code on Mac

farhadzaidi · 6 months ago

Same issue on ubuntu with node v22

millaker · 5 months ago

Same issue with VSCode on Ubuntu 22.04. Solved after connecting to IDE first inside vscode's integrated terminal.

farhadzaidi · 5 months ago

@millaker thanks - this fixed it! too bad they don't allow contributions, this doesn't seem like a super hard patch

divmgl · 5 months ago

This is still happening when using /ide from the terminal outside of the IDE. Happening in Windows with VSCode.

github-actions[bot] · 5 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.