[BUG] Error installing VS Code extension: 1: ENOENT Please restart your IDE and try again.

Resolved 💬 3 comments Opened Jun 23, 2025 by jaym Closed Jun 23, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.30 (Claude Code)
  • Operating System: Arch Linux
  • Terminal: Alacritty

Bug Description

The visual studio extension does not work when claude is wrapped in a script. For example, I wanted claude to be launched with flags, so I wrapped it with a bash script:

❯ cat $(which claude)
#!/nix/store/00zrahbb32nzawrmv9sjxn36h7qk9vrs-bash-5.2p37/bin/bash
set -o errexit
set -o nounset
set -o pipefail

export PATH="/nix/store/fq7cjyvn3pq9yyy58mfrgv8iyq6xha8f-claude-code-1.0.30/bin"

exec claude --mcp-config ~/.config/claude/servers.json "$@"

Expected Behavior

Claude is able to detect when its being run in visual studio code

Actual Behavior

Claude cannot detect it is being run in visual studio code

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗