win-claude-code icon indicating copy to clipboard operation
win-claude-code copied to clipboard

Cannot write file with vscode ide

Open sligter opened this issue 1 year ago • 1 comments

OS:Win11 Terminal: PowerShell

Welcome to Claude Code! │ │ │ │ /help for help, /status for your current setup │ │ │ │ cwd: C:\Users\xxx\newer\AIGC\claudepro\demo │ │ │ │ ─────────────────────────────────────────────── │ │ │ │ Overrides (via env): │ │ │ ╰───────────────────────────────────────────────────╯

※ Tip: Want Claude to remember something? Hit # to add preferences, tools, and instructions to Claude's memory

/ide ⎿  Connected to Visual Studio Code.

新建一个名为run.py的一键启动脚本

● Write(run.py)

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ Opened changes in Visual Studio Code ⧉ │ │ │ │ Do you want to make this edit to run.py? │ │ > 1. Yes │ │ 2. Yes, and don't ask again this session (shift+tab) │ │ 3. No, and tell Claude what to do differently (esc) │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Total cost: $0.0397 Total duration (API): 10.5s Total duration (wall): 44.3s Total code changes: 0 lines added, 0 lines removed Usage by model: claude-3-5-haiku: 95 input, 21 output, 0 cache read, 0 cache write claude-sonnet: 12.0k input, 232 output, 0 cache read, 0 cache write node:internal/process/promises:394 triggerUncaughtException(err, true /* fromPromise */); ^

Error: cannot open _claude_fs_right:c%3A%5CUsers%5Cxxx%5Cnewer%5CAIGC%5Cclaudepro%5Cdemo%5Crun.py. Detail: 无法解析具有相对文件路径"_claude_fs_right:c:\Users\xxx\newer\AIGC\claudepro\demo\run.py"的文件系统提供程序 at cN2 (file:///C:/Users/xxx/soft/node-v22.17.0-win-x64/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:1375:13672) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async ZR6 (file:///C:/Users/xxx/soft/node-v22.17.0-win-x64/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:1958:12070) at async J (file:///C:/Users/xxx/soft/node-v22.17.0-win-x64/node-v22.17.0-win-x64/node_modules/@anthropic-ai/claude-code/cli.js:1958:10781)

Node.js v22.17.0

sligter avatar Jul 11 '25 04:07 sligter

The issue was found to be caused by an error in the VSCODE extension mcp call, which throws an exception.

let G2 = await A34.callTool({ name: Q3, arguments: D }, Mm, { signal: I, timeout: hJ6() });

I'm working on a workaround, but it's tight :)

somersby10ml avatar Jul 11 '25 23:07 somersby10ml