spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / docs / bugs / vscode-extension-regression-1-1-error.md
81 lines · 2.7 KBPreviewCodeRaw
1# VSCode Extension Installation Regression: "1: 1" Error
2
3**Reported**: 2025-12-16
4**Status**: Under Investigation
5**Slack Thread**: https://anthropic.slack.com/archives/C07VBSHV7EV/p1765922691961929?thread_ts=1765922103.768169&cid=C07VBSHV7EV
6
7## Description
8
9Users are unable to use the VSCode IDE integration when running Claude Code in a Homespace (containerized environment). The `/ide` command initially reports success, but a few seconds later an error appears.
10
11### Error Message
12
13```
14IDE: ✘ Error installing VS Code extension: 1: 1
15 Please restart your IDE and try again.
16```
17
18## Steps to Reproduce
19
201. Run Claude Code in a Homespace environment
212. Execute `/ide` command
223. Observe initial success message
234. Wait a few seconds - error popup appears
245. Run `/status` to confirm the error
25
26## Root Cause Analysis
27
28### Error Pattern Analysis
29
30The error message `1: 1` follows the pattern from the extension installation error handling:
31
32```javascript
33throw Error(`${result.code}: ${result.error} ${result.stderr}`)
34```
35
36For "1: 1" to appear, the values must be:
37- `result.code` = 1 (exit code from VS Code CLI)
38- `result.error` = "1" (incorrectly set to the exit code instead of error message)
39- `result.stderr` = "" (empty)
40
41### Regression Hypothesis
42
43The async execution result object is incorrectly populating the `error` field with the numeric exit code instead of the actual error message from stderr. This appears to be a regression in subprocess output parsing.
44
45### Timeline
46
47- **Working**: Last week (user confirmed)
48- **Broken**: Current version (2.0.59+)
49- **Likely introduced**: Between versions 2.0.59-2.0.70
50
51## Environment
52
53- Running in Homespace (containerized environment)
54- VSCode Remote development setup
55
56## Temporary Workaround
57
58If experiencing this issue, try:
59
601. Manually install the Claude Code extension in VS Code:
61 - Open VS Code Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
62 - Type "Extensions: Install Extension"
63 - Search for "Claude Code" (by Anthropic)
64 - Install manually
65
662. After manual installation, restart your IDE and try `/ide` again
67
68## Related Changes in CHANGELOG
69
70Potentially relevant recent changes:
71- 2.0.64: VSCode: Fixed extension not working on Windows ARM64
72- 2.0.62: Fixed IDE diff tab not closing when rejecting file changes
73- 2.0.61: Reverted VSCode support for multiple terminal clients
74- 2.0.60: VSCode: Added support for multiple terminal clients
75- 2.0.59: VS Code: Fixed .claude.json config file being read from incorrect location
76
77## Fix Required
78
79The fix needs to address how subprocess execution results are parsed, specifically ensuring that:
801. The `error` field contains the actual error message (from stderr), not the exit code
812. Proper error handling for when VS Code CLI fails in containerized environments