Skip to content

docs: Antigravity IDE environmentVariables 导致扩展激活失败的警告 - #2

Open
chiyv-bot wants to merge 1 commit into
1939869736luosi:mainfrom
chiyv-bot:main
Open

chiyv-bot wants to merge 1 commit into
1939869736luosi:mainfrom
chiyv-bot:main

Conversation

@chiyv-bot

Copy link
Copy Markdown

问题描述

在 Antigravity IDE(Google 基于 VS Code 的 fork)中,即使使用了正确的对象格式 {},在 IDE 设置中配置 claudeCode.environmentVariables 仍会触发 V is not iterable 错误(TypeError at YB / hQ constructor),导致 Claude Code 扩展完全无法激活(所有命令未注册)。

复现步骤

  1. 在 Antigravity IDE 的 settings.json 中添加:
    json claudeCode.environmentVariables: { ANTHROPIC_BASE_URL: https://... }
  2. 重启 Antigravity
  3. 扩展激活失败,command 'claude-vscode.editor.openLast' not found

解决方案

移除 IDE 设置中的 environmentVariables,改为在 ~/.claude/settings.json 中配置所有 API 相关参数。

修改内容

在 §5 VS Code 扩展设置的 environmentVariables 格式警告后,新增 Antigravity IDE 专属警告。

…re in Antigravity IDE

Even with correct object format {}, configuring claudeCode.environmentVariables
in Antigravity IDE settings triggers 'V is not iterable' TypeError at YB/hQ
constructor, preventing the extension from activating (no commands registered).

Recommended: configure all API settings in ~/.claude/settings.json only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant