[Bug] Error on startup: "Failed to parse /models response from CAPI"
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 54/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java
调研方向
Start by locating the code that handles the Copilot Language Server's /models response and compare its accepted capability types with the reported value decisions at /data/18/capabilities/type. Check related parsing tests and reproduce the startup log if possible. Done means the response is handled without this parse error and the existing model parsing tests pass; the report says no functionality loss is apparent.
由索引模型根据 Issue 内容生成。
描述
Environment
- OS: RHEL 9.6
- Eclipse Version: 4.38, 4.42
- Plugin Version: 0.21.0.202610121610_nightly, 0.21.0.202611041610_nightly
Describe the bug
Since some time (2 -3 days?) I see error reported on Eclipse startup in the log (see stack below).
Except the error entry, I don't see any functionality lost, but of course there could be something I didn't noticed.
eclipse.buildId=4.38.8.v20260910-1358
java.version=25
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
org.eclipse.lsp4e
Error
Thu Nov 05 09:13:28 CET 2026
[LS:GitHub Copilot Language Server][Error] [default] Failed to parse /models response from CAPI: AssertError: Expected union value
at AssertValue (/snapshot/copilot-language-server-internal/dist/main.js:1755:1717)
at Assert (/snapshot/copilot-language-server-internal/dist/main.js:1755:1796)
at /snapshot/copilot-language-server-internal/dist/main.js:1755:28462
at /snapshot/copilot-language-server-internal/dist/main.js:1755:29070
at Array.reduce (<anonymous>)
at ParseValue (/snapshot/copilot-language-server-internal/dist/main.js:1755:28967)
at Object.Parse (/snapshot/copilot-language-server-internal/dist/main.js:1755:29317)
at t.parseModelsResponse (/snapshot/copilot-language-server-internal/dist/main.js:1755:30267)
at t.fetchImpl (/snapshot/copilot-language-server-internal/dist/main.js:1755:30882)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {
error: {
type: 62,
schema: { anyOf: [Array], [Symbol(TypeBox.Kind)]: 'Union' },
path: '/data/18/capabilities/type',
value: 'decisions',
message: 'Expected union value',
errors: [
[ValueErrorIterator],
[ValueErrorIterator],
[ValueErrorIterator]
]
}
}
- 主要语言
- Java
- 星标
- 129
- 派生
- 70
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 15
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/copilot-for-eclipse 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 48/100
microsoft/copilot-for-eclipse#513 ·
维护者通常 2 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
microsoft/copilot-for-eclipse#512 ·
维护者通常 2 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 48/100
microsoft/copilot-for-eclipse#510 ·
维护者通常 2 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 20/100
microsoft/copilot-for-eclipse#508 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 43/100
microsoft/copilot-for-eclipse#500 · 1 条评论 ·
维护者通常 2 天内回复
查看 microsoft/copilot-for-eclipse 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
NationalSecurityAgency/ghidra#10149 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
yegor256/antlr2ebnf-maven-plugin#155 ·
维护者通常 1 天内回复
-
account bug exercise lecture programming user interface
难度 2/5 1-3 小时 新手友好度 72/100
ls1intum/Artemis#14512 · 1 条评论 ·
维护者通常 1 天内回复
-
kind:bug priority:major
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
swiftlang/swift-java#955 ·
维护者通常 1 天内回复