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

docs: Add bug report for VSCode extension installation regressionBrowse files
Documents the "1: 1" error that occurs when using /ide command
in Homespace environments. The error appears to be caused by
incorrect parsing of subprocess execution results where the
error field receives the exit code instead of the actual error
message from stderr.

Includes:
- Root cause analysis of the error pattern
- Timeline of when the regression was introduced
- Temporary workaround for affected users
- Required fix description

Slack: https://anthropic.slack.com/archives/C07VBSHV7EV/p1765922691961929
Claude authored on Dec 16, 2025 parent c27c6f4 · commit 4e52b7ac217e
1 changed file+81 -0compared with c27c6f4
Adocs/bugs/vscode-extension-regression-1-1-error.md
@@ -1,0 +1,81 @@
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+
9+Users 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+```
14+IDE: ✘ Error installing VS Code extension: 1: 1
15+ Please restart your IDE and try again.
16+```
17+
18+## Steps to Reproduce
19+
20+1. Run Claude Code in a Homespace environment
21+2. Execute `/ide` command
22+3. Observe initial success message
23+4. Wait a few seconds - error popup appears
24+5. Run `/status` to confirm the error
25+
26+## Root Cause Analysis
27+
28+### Error Pattern Analysis
29+
30+The error message `1: 1` follows the pattern from the extension installation error handling:
31+
32+```javascript
33+throw Error(`${result.code}: ${result.error} ${result.stderr}`)
34+```
35+
36+For "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+
43+The 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+
58+If experiencing this issue, try:
59+
60+1. 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+
66+2. After manual installation, restart your IDE and try `/ide` again
67+
68+## Related Changes in CHANGELOG
69+
70+Potentially 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+
79+The fix needs to address how subprocess execution results are parsed, specifically ensuring that:
80+1. The `error` field contains the actual error message (from stderr), not the exit code
81+2. Proper error handling for when VS Code CLI fails in containerized environments