[Bug] Error on startup: "Failed to parse /models response from CAPI"

未关闭
#511 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 内容生成。

描述

bug

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/copilot-for-eclipse 的其他 Issue

查看 microsoft/copilot-for-eclipse 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。